Hacker Newsnew | past | comments | ask | show | jobs | submit | fuddle's commentslogin

Sgai (pronounced "Sky") - That's a bit of a stretch

You know, I tried to convince people of a number of various other pronunciations. But when we saw it written down, everyone just naturally pronounced it "sky." My natural impulse was to avoid it, since there are already a ton of AI-related things called Sky, but I think I've accepted that it was inevitable.

Besides -- and I've obviously thought about this a little too much -- when you actually say the word "sky," are you using a hard k? After saying it out loud to myself about a billion times (and long after the word lost all meaning) I think I actually use a hard g.


Depends on the language no? Works in German

I hear it.

Yeah, come on! I'm trying to watch a video and read the article!

yeah no. i was listening to background music of my choice while browsing the internet.

To be honest, I find this more impressive, than Claude writing a browser from scratch.

The TS/React ecosystem is so mature, it's hard for Rust to compete with it. My optimal stack is currently: Rust on the backend, Typescript/React for web with OpenAPI for shared types.

React and its ecosystem is a pile of garbage perpetuated by industry inertia. UseState, useMemo, useThisAndThat where you have to guess whether that dependency will cause a re-render? Or 20 different routers, state managers, query builders? I'm not even talking about html-in-ts with `!!a && (<div>...</div>)` A stodgy, bloated, overhyped and misused monstrosity, that's what React is.

useMemo is definitely a scourge on my existence. Doesn't help that a bunch of people write articles like "don't bother with it!!" when memoisation results can cause actual real bugs when integrating with a third party lib.

Unmounting and then remounting the same component is actually a bad thing when you lose your component state in the process. And when you have enough useEffect's in your system that's exactly what happens unless you're liberally sprinkling useMemo


React is opinionated. The whole point of the library is having UI updates being driven by state mutation. When I hear complain about the hooks, I ask about what is the state, and where do mutations occur, and usually, I get blank stares in returns.

It's all about the state. `useState` is the starting point (adding new items to the state set), `useEffect` for tying the UI to external systems, `useMemo` for state transformation, `useRef` for storing stuff outside of the state you want to react to,... Then you use custom hooks to make the code modular, stuff like usePost, useProfile, useCommentUpvote,... (HN domain)

If you design your state well, the application, at least the UI layer, becomes easy to code and maintain.


Running rust in wasm works really well. I feel like I'm the world's biggest cheerleader for it, but I was just amazed at how well it works. The one annoying thing is using web APIs through rust - you can do it with web-sys and js-sys, but it's rarely as ergonomic as it is in javascript. I usually end up writing wrapper libraries that make it easy, sometimes even easier than javascript (e.g. in rust I can use weblocks with RAII)

It does work well logically but performance is pretty bad. I had a nontrivial Rust project running on Cloudflare Workers, and CPU time very often clocked 10-60ms per request. This is >50x what the equivalent JS worker probably would've clocked. And in that environment you pay for CPU time...

The rust-js layer can be slow. But the actual rust code is much faster than the equivalent JS in my experience. My project would not be technically possible with javascript levels of performance

That's fair and makes sense. In my case it was just a regular web app where the only reason for it being in Rust was that I like the language.

did you profile what made it so slow specifically? sounds waaaaay worse than I would expect

I did. I don't remember the specifics too well but a lot of it was cold starts. So just crunching the massive wasm binary was a big part of it. Otherwise it was the matchit library and js interop marshalling taking the rest of the time.

edit: and it cold started quite often. Even with sustained traffic from the same source it would cold start every few requests.


the JS layer is slow, indeed, but it shouldn't be that much slower that it meaningfully impacts frontend apps

A demonstration of that by the creator of Leptos:

https://www.youtube.com/watch?v=4KtotxNAwME


Fascinating video, thanks for sharing.

What's a better alternative for shared types? OpenAPI is really outdated and the tooling is always a mess.

There is ts-rs [1], but it's only for TS.

[1]: https://docs.rs/ts-rs/latest/ts_rs/


protobufs?

When serialized as JSON perhaps. Being able to inspect payloads in the browser is too convenient.

I'm doing this now and it's mostly great but the openapi generators are not good. At least the Typescript ones produce confusing function signatures and invalid type syntax in some cases.

Why not Angilar? React and Angular are not worth comparing directly, but why not use Angular for the web interface?

He has a valid work permit and is married to a US citizen. He's been locked in a cell with terrible conditions for four-and-a-half months and your trying to justify this?

> the person is being detained only because he is refusing to return to his country of citizenship

He's being detained because ICE chose to detain him.


It would be great to see some charts on https://prek.j178.dev/benchmark/


Next, we'll be building Treeships.

https://hyperioncantos.fandom.com/wiki/Treeship


Some Silicon Valley startup will probably come up with the innovative idea of building ships from wood and propelling them with wind power. As long as they are adding AI it will probably be worth a few billion investment .


This would be too reasonable.


There's been trials of sails for cargo ships.


Propelling ships with hydrogen or methane made with wind power is the most probable path for fuel in the next decades.


worth a punt


Came here to see if anyone would make a reference to the Yggdrasill. I was not disappointed!

Hyperion is a great read for anyone looking for their next scifi book BTW. :)


> We optimize for performance per parameter and release weights under Apache-2.0

How do they plan to monetize?


I'm guessing by selling fine-tuning, consulting on hosting, and other services? They also seem to be offering their own inference service with their model, obviously as an open weight model that will be commoditized but I'm sure there are some people who'd prefer to buy from the originating lab. But yeah, when you're offering open weights models, your customers are going to be people who want to self-host, fine tune, etc, so they might be offering services for that.


My take: "Any application that was written in Javascript, eventually will be written in a system language"


Privacy Badger blocked 75 trackers on their site :O


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: