Better HN
topnewbestaskshowjobs
Log inSign up

90s_dev

1,788 karma · joined Mar 13, 2025 (1y ago) · 921 submissions

Submissions

451.

JSLN: Meeting JSON Halfway(90s.dev ↗)

2 points · by 90s_dev · 1y ago · 1 comment

comment 1y ago · link · parent

Eventually I got new Label() working, but Label() by itself isn't possible while keeping them as ES6 classes.

After a while of managing commas, you just begin to long for JSX again. Hyperscript wouldn't solve that.

comment 1y ago · link · parent

Wow. I didn't know we could make video editors online now. Amazing job. I tried to do this so many times over the past 10 years, and it's a lot harder than it looks. But the "power" apps in this area are disproportionately too hard to use, and capcut and tiktok are easier but have their own major problems. Looking forward to using this! Also to reading the source!

comment 1y ago · link · parent

Show me what that code would look like if it was done better.

comment 1y ago · link · parent

Most people just don't care that they're being spied on. Most people don't care about anything actually, they're in a constant state of despair and see no point to anything so they just try to make the best of the time they have.

comment 1y ago · link · parent

> JSX is a little annoying to work with outside the major implementations

There are dozens of us, dozens!

comment 1y ago · link · parent

He's right, guys.

comment 1y ago · link · parent

Yeah to be fair by "production" I meant I personally wouldn't use it for a long-term (5-10 year) project. I'm sure it's fine in an enterprise scenario, or a client who really wants you to use it and is willing to pay to make it worth it.

Honestly every language has warts, there are no perfect languages. I just personally don't like Go, mostly for the reasons stated above as well as in a recent article I can't find anymore but read a few weeks ago, mostly complaining about its well known ergonomics issues.

But yeah it's fine to use in prod for the same reason Java 6 and IE 6 were for a long time: nothing really matters but money when you're doing work work.

comment 1y ago · link · parent

Found it:

https://go.dev/doc/faq#What_is_the_purpose_of_the_project

comment 1y ago · link · parent

> I don't think that it is sound to incorporate a DSL that imitates html only approximately into a language.

The beauty of JSX is that it's not HTML, it's much more generic.

> And that's irrespectively of my view on jsx, the latter which I find non ergonomic and confusing.

You're in the very, very small minority here. JSX is very clear and intuitive and natural and ergonomic and lovely to most of us.

And I don't even like React!

Compare:

Without JSX: https://github.com/sdegutis/sys32.90s.dev/blob/26bcb088a3df6...

With JSX: https://github.com/sdegutis/os.90s.dev/blob/cc7310633d9ab186...

comment 1y ago · link · parent

> Choose between running directly using the convenient JIT, or compilation to C++ for extra speed.

C++ is an odd compilation target. Usually it's just C. I'd be curious to see what kind of C++ it emits, and whether the techniques it uses would be better exported as C++ libraries than a new language on top of C++.

comment 1y ago · link · parent

> Reference Counting with cycle detection at exit, 95% of reference count ops removed at compile time thanks to lifetime analysis.

This is really clever. Why don't more languages do this? Also, is this the same analysis that does type checking? And does this technique make it unbearably slow?

comment 1y ago · link · parent

FYI this is not a PDF even though it looks like it. Took me a minute.

Also, why haven't we standardized a syntax yet? Seems like at this point we shouldn't be debating braces vs do/end vs indentation, and we should just settle.

> Lobster is a programming language that tries to combine the advantages of static typing and compile-time memory management with a very lightweight, friendly and terse syntax, by doing most of the heavy lifting for you.

That's... a non-sequitor? Syntax is interesting to discuss and think about it, but when I see "static typing and compile-time memory management", I want to jump right into knowing more about its implementatoin and usage. Does it use ref-counting? Is it embeddable like Lua? Does it have a VM or compile to machine code? etc.

comment 1y ago · link · parent

I didn't pretend anything. If anything, I'm just an idiot, or I forgot. Don't assume malice where incompetence is sufficient to explain it. That said, the most basic, uninteresting tiktok videos get 300 views, and if you try even just a little, it's not hard to get 3k (the 1% you mentioned) and extremely common. Which sets the bar pretty low. And that's the same amount I was able to reach in my lives.

comment 1y ago · link · parent

From the beginning, the Go team always emphasized that it was basically just meant to replace Java and C++ for servers inside Google. One of the official Go doc pages starts off with a basically apologetic tone, saying something like "Go began back in 2007 when things were very different than they are now. C++ and Java were much worse, and that's basically what we were competing with." I can't find that page but being an official page, and having this kind of tone, already matches up with the tone the Go community always kind of had, of like, "it's not the perfect language and we acknowledge and own that fact, but at least it's better than the alternatives."

On top of this, in its excessive caution about adding features while balancing incidental and essential complexity, it just hasn't evolved and kept up to meet the kinds of demands modern languages do like Zig, Rust, C3, Carbon and Odin, and while these languages were innovating, Go was still catching up to 10-20 years ago at any given moment. It was already kind of a weird middle ground, not quite as high level as Ruby, not quite as low level as C++, and this slow catch up game plus lack of keeping up was, for me at least, just the nail in the coffin. But all of this together makes me personally think that it's just not a great fit for most scenarios, but also that it seemed to have started off on the wrong foot with itself and the wider programming community.

That's my take at least.

comment 1y ago · link · parent

It was. And entirely because of other people's videos. Two people in particular made their own videos which each got over 10M views. I didn't pay them or ask them to, they did it because they found the book funny. Pretty much all my sales came from them. That was about a year and a half ago, and sales are now dead.

comment 1y ago · link · parent

Thanks. And yeah I guess you could put it that way. I just looked at it like, they demanded, I supplied.

comment 1y ago · link · parent

I heard that the scheduler is a huge obstacle to many potential optimizations, is that true?

comment 1y ago · link · parent

Sure and while we're at it why not support `const x = 3 5` also.

comment 1y ago · link · parent

I had such a difficult time getting word out to the 300k people about the book, I would be glad to let even 10% of them know about it to this day. I still have 200 copies lying around and sales are dead. At most I was able to let a few thousand people know, if that.

comment 1y ago · link · parent

Zig is just as much mental overhead. C and C++ are too, but most of us have amortized that cost already. Go is already a legacy language that probably shouldn't be used in production in most cases.

comment 1y ago · link · parent

[flagged]

comment 1y ago · link · parent

I had a tiktok page and my book was due to people asking me to make a book based on my tiktoks. So I made the book and told them when it was done. I don't consider this advertising.

comment 1y ago · link · parent

I could be wrong, but from my research and understanding, walking is one of the easiest things for us to do, only slightly more expensive than sitting up straight or standing.

On top of this, it doesn't "stack" well because of the low heart rate usage, meaning it logarithmically increases calorie costs (our bodies essentially amortize it), whereas lifting and carrying a heavy object for 20 seconds exponentially increases it.

comment 1y ago · link · parent

An example of advertising I hate is the infamous "distortion bubble" of Steve Jobs, who could make you believe you he was literally creating paradise on earth.

The only thing I would add to my comment is, let people know about it where they are. I posted my project to HN because it's based on a nostalgia we all share. Find a subreddit, or a forum, or a discord/slack or something where your userbase visits regularly, and let them know.

comment 1y ago · link · parent

I've always been under the impression that if you make something truly useful or interesting, it will spread through word of mouth naturally and quickly.

This is how my book The Gospel by Gen Z became a best seller in 2023-2024. I did absolutely no advertising for it. People posted tiktoks about it of their own volition, got dozens of millions of views, and that was the source for 100% of my sales.

The same thing is true about my project I posted last night, still at the top of Show HN right now apparently. I spent about 6 months during 3 months time writing code that I personally thought was good and useful and powerful and interesting. When I shared it, it all went terribly wrong. I wrote the article in a rush while I was having a very bad day. I forwent polishing it up before releasing it. And yet it got lots and lots of upvotes for some reason.

I suck at advertising and promotion. I honestly really do. And to a large extent I feel like that's a good thing. I've always felt uncomfortable with the traditional route of advertising, which is basically to oversell the potential usefulness of your product, to the point of basically being straight up lying.

So I guess my only advice is to just make something you personally believe in, and the rest will follow.

comment 1y ago · link · parent

This looks like a great alternative to TypeScript + Node.js which I currently use.

My main gripe with Lua (and thus Luau) is colons. It's so easy to forget them. Does the type checker catch this error? And if so, does it catch it every time, provided you always use types? If so, that could be good enough for me. Especially if it has strong LSP + VS Code support.

comment 1y ago · link · parent

Yeah I guess you're right. This proposal has serious performance issues.

Still, I don't like the React-classic style, the React-autoimport style, or the hybrid that you're advocating for. None work be very ergonomic and require tooling to at least give you errors that you forgot an import, which defeats the purpose of standardizing it at that point.

comment 1y ago · link · parent

Possible, and I considered that, which is why I put 500 cals for an intense hour-long workout, to imply that walking for a few hours will not even come close to 500 cals.
1
151617
31