2,676 karma · joined Nov 28, 2019 (7y ago) · 1,131 submissions
comment 3y ago · link · parent
To get any work done with it, though, you need to write your own Python.
[1]: https://conservatory.scheme.org/schemers/Documents/Standards...
comment 3y ago · link · parent
In C++, classes can have member functions. Classes can also be derived from each other. A class D derived from B inherits all of B's member functions.
So, when you have an instance of D calling one of its B-derived member functions, the B member function sees "this" as a pointer to a B, even though it is a pointer to a "D". That's fine because pointers to D are convertible to pointers to B.
What is proposed here is a way for one of B's member functions to say "this member function can be called only when the current object ('this') has a particular type." In the example, the particular type is "mut<B>", which is analogous to D.
My lizard brain doesn't see how this might be useful.
comment 3y ago · link · parent
I'm not the judge of who "actually needs" money, but surely there are tons of people in the world (maybe in my neighborhood) who are struggling and would be helped by having some of my money. None of those people are asking me for change on the street or sending me donation letters. Disjoint sets.
comment 3y ago · link · parent
My dad's side of the family has eye problems: myopia, glaucoma, detached retina, and wet macular degeneration. Hoping my mom's genes spare me the worst of it.
comment 3y ago · link · parent
And, when you boot the game, it instead boots a window GUI that I can imagine serves only to display the giant ad to upgrade to the more expensive version of the game. You have to search for the de-emphasized not-quite-a-button below to actually play the game.
This is one of the things I like about truly single-player games, where no interaction with other players is possible. Mostly puzzle games. None of those games have any of these dark patterns or unnecessary connectivity.
I have been enjoying Baldur's Gate 3. Offline :)
comment 3y ago · link · parent
- a sequence of characters and spaces
- a series of lines
- a fixed grid of characters and spaces
Instead, store code as a parse tree -- comments and all. Then we'd view and edit code using "WYSIWYG" editors solely. No more "cat" and "less", we'd need new tools. No more tty-like terminals, we'd need something more like a web browser.
It would cripple existing workflows and hinder compatibility, but the advantage is that "formatting" would be the viewer's preference. Forget about tab stops and fonts; think more like CSS. It's an extreme version of the tabs people's argument.
Word/Sheets documents come close, in a horrifying way. What I'm describing is more like Graphviz.
comment 3y ago · link · parent
I guess she at least can take pride when the show finishes production, and sometimes airs.
comment 3y ago · link · parent
comment 3y ago · link · parent
RabbitMQ was probably avoided because nobody wanted to learn Erlang.
Also, R&D had a lot of experience building message oriented middleware "from scratch" in a low overhead high availability way, so first instinct was probably to start hacking in C++.
Nowadays it might be the case that some teams within Bloomberg need the performance or would rather have a bespoke solution instead of spending on migrating to something else off the shelf.
Keep in mind that this is a company that has its own implementation of most of the C++ standard library.
comment 3y ago · link · parent
- (toy problem) https://www.youtube.com/watch?v=ftcIcn8AmSY
- (parallelism) https://www.youtube.com/watch?v=dPK6t7echuA
- (languages) https://www.youtube.com/watch?v=dCuZkaaou0Q
comment 3y ago · link · parent
But those were too much.
So we got threads, which are processes that share an address space, file table, and some other things. The scheduler can switch from one to the other more easily than between processes, and data can be shared between threads without needing serialization.
But those were too much.
So we got user space threads, which are logical threads of execution that are driven by a runtime entirely in user space. The runtime adds scheduling hooks into all I/O functions in the standard library, or even uses a system API like Unix signals to preempt logical threads. No system-level context switching is needed. User space threads can be tiny.
But those were too much.
So we got coroutines, which allow a programmer to define logical "threads" of execution that cooperatively interact with each other. There is no assumption about the presence of a scheduler. The programmer either writes their own event loop or invokes one from a library in a "real" logical thread.
I wonder what comes next. As far as [communicating sequential processes][1] are concerned, maybe cooperative coroutines are a low as you can go.
comment 3y ago · link · parent
Racket is, as far as I understand, a research and teaching language, as well as a viable scheme.
I've used it for some [command line tools and side projects][1], but I never tried to deploy anything with it.
Maybe a new [Chez][2]-based (as Racket now is) scheme is needed: one with much of Racket's nice syntax system, but focused on dependency management, targeted solely at "production" use, and other Serious Business Purposes.
Not it!
I'm not saying that Racket isn't a serious platform -- far from it. But the author's concerns, while expressed as a hot take, might be why Racket doesn't see wider industry adoption.
Or maybe it's a chicken and egg problem.
[1]: https://github.com/dgoffredo?tab=repositories&q=&type=&langu...