solrize

joined 2 years ago
MODERATOR OF
[–] solrize 1 points 4 months ago* (last edited 4 months ago) (1 children)

It sounds like he uses Rust and has some issues with it. IDK about green threads but Ada has had tasks (implemented in gnat with posix threads) from the beginning. If you pin a CPU core to a task and don't use gc in it, that can handle your realtime stuff. Or these days, it's becoming more common to use an fpga for cycle level timing control.

Note that traditional Forth cooperative multitaskers used a few hundred bytes of code or even less. This stuff doesn't have to be bloaty.

Added: I've also seen a Boehm-style conservative GC in a few hundred lines of Forth. Using something like that in Rust could work nicely for lots of things.

Anyway, you can have a soft realtime gc with pauses in the low milliseconds (Erlang has that). That's OOMs lower than most internet ping times, so plenty fast enough for web servers. Which are all full of JS bloat now regardless.

[–] solrize 3 points 4 months ago (2 children)

Yeah I had thought that C# was basically Microsoft's version of Java, GC'd throughout. But it's fine, I'm not particularly more excited by it now than I was before (i.e. unexcited). I'm not even excited by Rust, but maybe I'm missing something. I think it's fine to use GC for most things, and program carefully in a non-allocating style when you have to, using verification tools as well.

A classic: http://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html

[–] solrize 1 points 4 months ago

I'll see if I can re-read your original post in the next day or so.

[–] solrize 4 points 4 months ago (3 children)

It's not official or semi-official, it was just someone (a well known Haskell guru if that matters) speculating in a blog post.

https://chrisdone.com/posts/rust/

[–] solrize 13 points 4 months ago (9 children)

That is interesting and I didn't know C# had anything like that. I saw another article recently saying at some point we were likely to see Rust get garbage collection.

[–] solrize 1 points 4 months ago (1 children)

There are a lot who see the election as a choice between two Republicans and are likely to say meh and not vote for either. Anyway no one likes being lectured or extorted and that's another thing the Dems haven't figured out. Also it's not just Liz Cheney. Dick Cheney has endorsed Harris too. Yuck

[–] solrize 5 points 4 months ago (1 children)

Ask her what she wants, of course. Or maybe get her an Adafruit gift certificate.

[–] solrize 1 points 4 months ago (3 children)

Don't forget Dem turnout. Good luck.

[–] solrize 1 points 4 months ago (5 children)

Lots of luck Liz, but all those Republican endorsements aren't helping Harris much with Democrats, from what I can tell.

[–] solrize 2 points 4 months ago (1 children)

I didn't know this even still existed. TIL BBC broadcasts on 198khz. I thought in the old days it was mostly Morse code at those frequencies.

[–] solrize 5 points 4 months ago (2 children)

Basically the variables like "greeting" in the program occupy memory locations, like "location 3". Symbol resolution is when the compiler sees a name and figures out the associated location. Normally that is done with something like a Python dictionary (in the old days you'd have to implement the dictionary yourself, which was an exercise in its own right).

Slightly complicating the python example, there can be local and global variables in separate locations but with the same name. So the compiler has to figure out from context which one you meant. That too is an exercise.

[–] solrize 3 points 4 months ago (1 children)

Article is syndicated from The New Republic fwiw.

view more: ‹ prev next ›