BatmanAoD

joined 1 year ago
[–] [email protected] 3 points 1 month ago

Hopefully you only chmod'd your own systems. Early in my career, I worked on a project wherein we gave a contracting company root access to a computer they could use to test the software they were writing for us. One morning, they sent us a message saying they couldn't log in. We looked at the computer and discovered it wouldn't boot. Turned out someone on the remote team had chmod 777'd the entire filesystem. Of course we locked down their access after that.

[–] [email protected] 4 points 8 months ago

Yeah, I commented elsewhere on the misinformation regarding emacs in the article.

[–] [email protected] 2 points 8 months ago

Sure. But the author cites that as a disadvantage of emacs and links to an article about the person who invented ctrl-c and ctrl-v for copy and paste.

[–] [email protected] 28 points 8 months ago (2 children)

The author also makes some incorrect or misleading claims, specifically about emacs. I acknowledge there's a high bar for entry there and don't personally like emacs, but it's not modal, and it does have the ability to display images and markdown previews.

[–] [email protected] 26 points 8 months ago (7 children)

I know several world class programmers, and interestingly, the commonality among them is that they all seem to use Vim as their code editor. Many people I know who think of themselves as world class programmers use Emacs.

What a burn!

[–] [email protected] 3 points 8 months ago* (last edited 8 months ago)

Wow, that was not at all clear. I was shocked that 50% of respondants identify as LGBTQ; 7% is a much less surprising figure.

[–] [email protected] 2 points 8 months ago (1 children)

How is that easier? It doesn't look like it provides a list of which modules have a __name__ == "__main__" block.

[–] [email protected] 1 points 9 months ago

...yeah, that's really unfortunate. Part of why I said "in principle".

[–] [email protected] 12 points 9 months ago (5 children)

Minor point of clarification: it can't have runtime reflection, but in principle it could have compile time reflection.

[–] [email protected] 2 points 9 months ago

Yeah, Boats' point there is definitely about semantic correctness rather than performance. Goroutines do indeed have good performance.

[–] [email protected] 2 points 9 months ago (2 children)

Ah. No, keep reading:

In a less than optimal world, you might decide to do something less inspired. You might take that break from the C runtime and then just implement threads again, with basically the same semantics, except that they are scheduled in userspace. Your users would be required to implement concurrency in terms of threads, locks and channels, just like they had always been in the past. You might also decide your language should have other classic features like null pointers, default constructors, data races and GOTO, for reasons known only to you. Maybe you would also drag your feet for years on adding generics, despite frequent user requests. You might go do that, in a less than optimal world.

(Emphasis on "go" is in the original.)

[–] [email protected] 2 points 9 months ago (4 children)

It doesn't mention him by name, but he's the "language designer of some renown" alluded to here:

If you were a language designer of some renown, you might convince a large and wealthy technology company to fund your work on a new language which isn’t so beholden to C runtime...

2
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/[email protected]
 

Almost five years ago, Saoirse "boats" wrote "Notes on a smaller Rust", and a year after that, revisited the idea.

The basic idea is a language that is highly inspired by Rust but doesn't have the strict constraint of being a "systems" language in the vein of C and C++; in particular, it can have a nontrivial (or "thick") runtime and doesn't need to limit itself to "zero-cost" abstractions.

What languages are being designed that fit this description? I've seen a few scripting languages written in Rust on GitHub, but none of them have been very active. I also recently learned about Hylo, which does have some ideas that I think are promising, but it seems too syntactically alien to really be a "smaller Rust."

Edit to add: I think Graydon Hoare's post about language design choices he would have preferred for Rust also sheds some light on the kind of things a hypothetical "Rust-like but not Rust" language could do differently: https://graydon2.dreamwidth.org/307291.html

view more: next ›