lime!
- 1 Post
- 188 Comments
no, linux is a unix-like. macos is an actual unix.
yeah yeah, cosmological approximations and all that, but there’s still a bit of difference between “planetoid” and “gas giant” :P
i think you did the weight approximation in the wrong order, 1024 is a lot bigger than 6×1023. so you can probably double the final weight.
i don’t know if you’re being ironic but that does make me sad to hear. took me like 25 minutes and i still messed it up, but i had fun writing it all out and i hoped others would find it fun to. that my writing is apparently that soulless is disheartening.
fwiw i would never post llm output unmarked. i don’t think people deserve that.
i see what you’re up to here. you’ve created your whole post without words that start with that particular letter. i do disagree that it’s hard to express yourself without it however; it’s perfectly possible, i’d say simple, actually, to completely erase the letter from your vocabulary. i’m able to get by perfectly well without a sole use of it, all with perfect legibility. yes, i’d go as far as to say that it’s probably close to the bottom of the list of letters
whenif ordered by value. get rid of it, i say. to optimize the alphabet is to get our speech closer to the speed of thought. after that, wecanwill start to chip at the big boys; your time has come, S!
i think we’re talking about different things. you use enforce to mean “validate”, i used it to mean “coerce”. one of the cases was a command line argument parser that consisted of a single decorator, so you could write
@command def foo(bar: int, baz: float): print(baz * 2 + bar * 3)
and call it with
$ myfile.py foo --bar 3 --baz 2.2
and it would print 13.4another was about creating working protocol buffers from an excel sheet, nested types and enums and oneofs and everything. we used it to parameterize tests of our bluetooth protocol.
i mean, i’m all for rejiggering the internals. i’ve personally written at least two libraries that uses type annotations in reverse to force arguments into the correct type, and i feel like that should probably be a separate mechanism to “just call the annotation”
the problem is that the language doesn’t and can’t support one single way to use type annotations without changing fundamental functionality. you can absolutely hook up mypy to your editor for newbies, but once you get on the intermediate level, fighting with mypy takes more code than actually solving the problem.
also there was that proposed update to mypy that was put on held when it turned out that the maintainers didn’t know how annotations are used in the wild.
no, the linked table shows how python also returns the first non-falsey result of an
a or b
expression rather than just giving a boolean. it’s useful for initialising optional reference args:def foo(a: list = None) a = a or []
works with
and
as well.
lime!@feddit.nuto linuxmemes@lemmy.world•Dualboot_irl (Art by 𝚞𝚜𝚎𝚕𝚎𝚜𝚜𝚆𝚘𝚕𝚏𝚍𝚛𝚊𝚐𝚘𝚗)English13·18 days agoish. if your boot priority is set to windows first and it decides it needs to repair the bootloader it can wipe other oses from the boot order.
lime!@feddit.nuto linuxmemes@lemmy.world•You install Linux to escape the user-tracking consumerism hellosphere corporate Matrix. I install Linux to install this neat lil' Audio Player that plays Animal Crossing music. We are not the same.English4·19 days agofull circle: the screenshot is in swedish
yeah but rednax wasn’t.
only if you design it using llvm. llvm is pretty new.
it can also not be.
none of these are race conditions, they’re just runtime errors. python only parses code when it is about to run that block so you can absolutely get a crash from bad indentation.
in my experience, the js world’s focus on developer ergonomics has absolutely yielded some insane situations where running an installed script has caused it to start downloading more dependencies. however, this has unfortunately started happening in python too lately.
oh?