978 karma · joined Jun 19, 2021 (5y ago) · 435 submissions
comment 5mo ago · link · parent
That’s crazy. It’s still better than the UX’s that game engine designers think work. Sure bro, show me your File Open/Save Dialog and tree view. Show me your text editor (nicely done, zed)
comment 5mo ago · link · parent
To answer directly, I would credit the PSF and python community with having the best structure that has outlasted my weirdest expectations.
comment 5mo ago · link · parent
That makes me very suspicious of wasiv3. Funny enough, I already implemented a bunch of the promises (pun not intended) and think that freestanding wasm with custom integrations is the more likely future.
The promise of wasi components has not been fulfilled. The market wants to hotload and link artifacts dynamically. The wasi project requires insider wizardry to use it that way: the offering has been statically linking components before you ship. Defeating 99% of the use cases.
I do not like that this has been worked on in the shadows.
comment 5mo ago · link · parent
They have a light rail, but it only goes between downtown and a few suburbs. Your other option is several bus transfers.
If you’re thinking of cities like New York or London, public transport is more practical in many cases.
comment 5mo ago · link · parent
Honestly all of this drives me back towards nvim or notepad sometimes.
I have had a jetbrains subscription since pycharm came out, and the killer feature was always the visual debugger. Seems nearly quaint now.
What specific things do you like about zed?
comment 5mo ago · link · parent
It annoyed me this week because I only had a few minutes to try elixir 1.20 after the announcement, and brew lagged behind. You can install erl and elixir by other means (I prefer to run my own toolchains) but it wasn’t worth doing in that moment.
Brew has or used to have a source option for some recipes and that basicallllly solves it too, if you squint.
comment 5mo ago · link · parent
I don’t think I’m exceptional at all. I was always behind and that probably reflected pretty poorly on me. But all it took to teach was preparing interesting examples and then spending time with subgroups and individuals.
I bet a lot of people think I’m catastrophically wrong, probably just got lucky.
comment 5mo ago · link · parent
For others who did not get the joke, Kindall was kind of a big deal:
https://computerhistory.org/blog/fifty-years-of-the-personal...
comment 5mo ago · link · parent
Some confuse this with LDS-OS, which makes the user weirdly and unquestionably `nice` by only accepting inputs from protected mode.
comment 5mo ago · link · parent
Arenas are great for avoiding allocations per tick/request/frame/layer. No symmetric free() to bracket lifetimes! They have a purpose, and we always knew that.
But by definition, your program is over-allocating as a tradeoff. Makes a ton of sense in certain use cases. However, we didn’t invent garbage collection and borrow-checking and realloc() just to publish papers ;)
Half of my time programming zig is spent considering allocation strategies. That’s a feature. “Where are the bytes?”
comment 5mo ago · link · parent
If only the guy who was destined to close a disk operating system deal with IBM hadn’t been goofing around with his plane that fateful day.
We would all be using lisp machines, running smalltalk on microkernels that put the HURD to shame. Just imagine: instead of backslashes and drive letters, we’d have parens. Endless, syntactically-valid parens.
Or CP/M, probably that. But can it run doom?
comment 9mo ago · link · parent
If a loom had a jump instruction, would you change your mind? (They did not.)
And yet we still have IDE defaults of 80 characters because of FORTRAN punchcards. That’s the heritage being invoked.
EDIT: I think all of these early devices also helped us to understand how to build multiplexers, which are the basic building block of any CPU. Given this instruction, I do a different thing.
comment 9mo ago · link · parent
(Just experienced this multiple times in Phoenix. It’s impressive at navigating and braking, but not rational planning or flocking.)
comment 9mo ago · link · parent
So. Am I the only one who kind of likes watching the commercials more than the game when my family or friends make me watch football? They are entertaining when you only see them every now and then.
Now, banner ads are not in the same category. But above is a real use-case for enjoyment of ads.
comment 10mo ago · link · parent
I still write my code in all the places I care about, but I don’t get stuck on “looking up how to enable websockets when creating the listener before I even pass anything to hyper.”
I do not care to spend hours or days to know that API detail from personal pain, because it is hyper-specific, in both senses of hyper-specific.
(For posterity, it’s `with_upgrades`… thanks chatgpt circa 12 months ago!)
comment 10mo ago · link · parent
> There should be a TaskManager that stores Task objects in a sorted set, with the deadline as the sort key. There should be methods to add a task and pop the current top task. The TaskManager owns the memory when the Task is in the sorted set, and the caller to pop should own it after it is popped. To enforce this, the caller to pop must pass in an allocator and will receive a copy of the Task. The Task will be freed from the sorted set after the pop.
> The payload of the Task should be an object carrying a pointer to a context and a pointer to a function that takes this context as an argument.
> Update the tests and make sure they pass before completing. The test scenarios should relate to the use-case domain of this project, which is home automation (see the readme and nearby tests).
comment 11mo ago · link · parent
“Generics” should mean that the compiler or interpreter will generate new code paths for a function or structure based on usage in the calling code.
If I call tragmorgify(int), tragmorgify(float), or tragmorgify(CustomNumberType), the expectation is that tragmorgify(T: IsANumber) tragmorgifies things that are number-like in the same way.
For a compiled language this usually means monomorphization, or generating a function for each occurring tuple of args types. For an interpreted language it usually means duck-typing.
This is not a bad language feature per se, but also not what engineers want from generics. I would never write code like your example. The pattern of explicit type-checking itself is a well-known codesmell.
There is not a good usecase for adding 2.0 to a float input but 1 to an integer input. That makes your function, which should advertise a contract about what it does, a liar ;)
comment 11mo ago · link · parent
Monetizing knowledge-work is nearly impossible if you want everyone to be rational about it. You gotta go for irrational customers like university and giant-org contracts, and that will happen here because of institutional inertia.