Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
the_duke
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
41 ms
·
571.
▲
by
the_duke
4y ago
There is no real reason to have basic enums if you have ADTs , since those can easily provide everything a plain enum gives you. I guess the name was just a historical artifact.
572.
▲
by
the_duke
4y ago
Despite many maturity issues in practice Flutter is the only realistic option for true cross platform UIs that run everywhere. Apart from Qt , but the licensing issue is a hindrance. And yes, the web backend isn't ideal, but it will im
573.
▲
by
the_duke
4y ago
For accessibility they create a separate DOM tree just for screen readers.
574.
▲
by
the_duke
4y ago
I wonder if this has been in the works for years, or if this is a reaction to the recent Lapsus hack.
575.
▲
by
the_duke
4y ago
Exception handling is necessary to efficiently support languages that need it without giving them direct control over the stack. I'd prefer if exception handling was provided with a more general abstraction though. GC is necessary for
576.
▲
by
the_duke
4y ago
For a long time sqlite did not have DROP COLUMN and RENAME COLUMN support, which are both pretty essential. I'm embarrassed to admit that I didn't realize RENAME COLUMN was actually added in 3.25, almost four years ago. DROP COLUM
577.
▲
by
the_duke
4y ago
I wish the post had provided some more technical details. It's more of a "quickstart" than a peek under the hood.
578.
▲
by
the_duke
4y ago
All this recent hype around sqlite... sqlite is a great embedded database and thanks to use by browsers and on mobile the most used database in the world by orders of magnitude. But it also comes with lots of limitations. * there is no type
579.
▲
by
the_duke
4y ago
Well, it's sqlite... so presumably you will get most of the capabilities sqlite has. RETURNING is covered. Stored procedures are indirectly there by running your own code "next to the database", as mentioned in the post. Whic
580.
▲
by
the_duke
4y ago
Or use Graal to compile to native.
581.
▲
by
the_duke
4y ago
What's on the roadmap for v2?
582.
▲
by
the_duke
4y ago
Putting Rust and Go together under strong type system is a very odd choice. Rust is inspired by ML family languages and heavily leans on it's type system, while Go is very simplistic in comparison. (This has improved somewhat with the
583.
▲
by
the_duke
4y ago
With 64 bits a system can create 59973028745 file descriptors per second for 10 years before running, out, so no need for randomizing.
584.
▲
by
the_duke
5y ago
Janet [1] is a clean, modern LISP. Clojure is also an option, but of course that comes with a heavy JVM burden. [1 ] https://janet-lang.org
585.
▲
by
the_duke
5y ago
SpaceX is investing heavily in two projects (Starlink and Starship), both of which swallow huge amounts of money. They are definitely not profitable now, but by choice.
586.
▲
by
the_duke
5y ago
Musk always does aggressive layoff rounds until the company is in a solidly profitable state, as could be seen at Tesla and SpaceX. So an employee revolt would neither be unexpected nor entirely unreasonable. Note: not to imply that SpaceX
587.
▲
by
the_duke
5y ago
That sounds like a social credit dystopia, only that the credit is actual money.
588.
▲
by
the_duke
5y ago
Better than C is certainly a step up, but in my opinion also solving temporal safety must be a goal for a new language in this space.
589.
▲
by
the_duke
5y ago
Single threaded development seems a noteworthy goal, and I partially agree that it often leads to much simpler code and works well in systems like Erlang. But it is also a questionable focus in the days of barely increasing single core perf
590.
▲
by
the_duke
5y ago
> #1 way to improve security is to reduce complexity If managing memory lifetime is an inherently complex problem (which it is), the complexity has to live somewhere. That somewhere is either in the facilities the language provides, or i
591.
▲
by
the_duke
5y ago
The problem here is that focusing on a language can lead to lots of small API design decisions that make it very cumbersome to support other systems later without significant breaking changes. I can appreciate the ideological and practical
592.
▲
by
the_duke
5y ago
Every (popular) modern operating system sits on decades old foundations written in C that can't just be replaced, so that's not a particularly strong argument. It's noteworthy that Google is financing the effort to bring Rust
593.
▲
by
the_duke
5y ago
I am sympathetic, but I agree with others that any new systems language in 2022 must have memory and thread safety with minimal escape hatches as its utmost priority and a core component of the language design. Otherwise, what's the po
594.
▲
by
the_duke
5y ago
It also targets JavaScript now, and maybe eventually Webassembly.
595.
▲
by
the_duke
5y ago
The Cargo.toml file gives the answer: https://github.com/Shopify/ruby/blob/rust-yjit-upstreaming/y... There is only a single, optional dependency which is apparently only used for testing.
596.
▲
Ruby YJIT Ported to Rust
(github.com)
301 points
by
the_duke
5y ago
|
88 comments
597.
▲
by
the_duke
5y ago
Direct Dom access could already be implemented with reference types. GC integration is not necessary for that.
598.
▲
by
the_duke
5y ago
Also take a look at wit-bindgen [1], which is basically a prototype for interface types and supports multiple languages. I agree we that interface types/components will be a game changer. And also that progress on all the important pro
599.
▲
by
the_duke
5y ago
Yeah, krustlet is great for integrating into existing Kube deployments. I'm just tackling the problem from the other side.
600.
▲
by
the_duke
5y ago
Webassembly is also gaining steam for server workloads due to several advantages (less overhead, better capability based security, composability, ...). See Spin [1], Wasmcloud [2], Lunatic [3], etc. My system is based on a distributed Webas
More ›