Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sesm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
181.
▲
by
sesm
2y ago
Thanks for spotting the typo :)
182.
▲
by
sesm
2y ago
Rust is a subset of C++ with extra static checks. All the core decisions are the same as in C++: - RAII - Lock-based concurrency - In-place mutation People get confused when they hear that Rust is 'related to ML' and has Refs, but
183.
▲
by
sesm
2y ago
Oh, I see what you mean now! This sounds like a very good analogy.
184.
▲
by
sesm
2y ago
I'll accept an analogy with a hybrid car. In this analogy, Preact would be a gas car with an additional electric engine bolted on as an afterthought.
185.
▲
by
sesm
2y ago
Preact is not signals-based, it uses the React model with state and props as the basic model, but also provides Signals as a parallel model.
186.
▲
by
sesm
2y ago
The blogpost in the first link doesn't mention Preact at all. Preact is mostly API-compatible with React, and it having a different underlying model is an extraordinary claim that requires extraordinary evidence. I've read the doc
187.
▲
by
sesm
2y ago
Doesn't Preact use the same model but prioritise bundle size over performance?
188.
▲
by
sesm
2y ago
Tech bloat is usually caused by org bloat, which is caused by the fact, that both management and tech individual career paths are aligned with having more teams and departments. This is essentially corruption, individuals advancing their ca
189.
▲
by
sesm
2y ago
But the error happens in 'audio to text' part, so text prompt won't solve it. The way to fix it is probably fine-tuning the underlying audio to text model.
190.
▲
by
sesm
2y ago
JB products have in-memory PSI (as opposed to LSP queried over network), and this PSI by it's nature is multi-language, so they support language injections naturally. This comes in very handy when you are writing an HTML file with embe
191.
▲
by
sesm
2y ago
Was it this one: https://github.com/aosabook/500lines ?
192.
▲
by
sesm
2y ago
I guess it's https://zewaren.net , the content looks exactly like GP described it
193.
▲
by
sesm
2y ago
I've heard about at least 4 theories of truth: Correspondence, Coherence, Consensus and Pragmatic (as described, for example, here https://commoncog.com/four-theories-of-truth/ ). If we look at Newtonian mechanics,
194.
▲
by
sesm
2y ago
I followed the link, that's what he means by 'cool stuff that's missing': > In short: > The key to Noether’s theorem is the requirement that we can freely reinterpret observables as symmetry generators, and vice ve
195.
▲
by
sesm
2y ago
> Statistical ground truth isn't any worse than explicitly given one There are multiple kinds of truths. 'Statistical truth' is at best 'consensus truth', and that's only when LLM doesn't hallucinate.
196.
▲
by
sesm
2y ago
> It seems like he wrote his Apple GPU driver in Rust and he needed Rust DMA support in the kernel. Did he really NEED it? Why he couldn't use the C API?
197.
▲
by
sesm
2y ago
React's mental model has always been UI = F(data) and in ideal case any component is a pure function. But, of course, in most real apps there are cases when this mental model breaks: internal state, animations and side effects. The old
198.
▲
by
sesm
2y ago
Articles like this always remind me of 'The 57 Precepts of Zote'.
199.
▲
by
sesm
2y ago
> There is no corresponding popular replacement for C that's more minimalist than Rust and memory safe. There is Objective-C, it fits your definition of memory safety.
200.
▲
by
sesm
2y ago
As a Java developer the author should take a look at Clojure protocols. Those are even more flexible and can be implemented for 3rd party classes or even standard library classes without wrapping.
201.
▲
by
sesm
2y ago
> chrono in Rust and Joda Time in Java Those are from different time epochs, by the time Rust 1.0 was released, Java already had this approach implemented in standard library via java.time and didn't need any 3rd party libraries for
202.
▲
by
sesm
2y ago
It's more like Intel in early days using their CPUs to compute layout for bigger CPUs.
203.
▲
by
sesm
2y ago
I asked a genuine question at chat.deepseek.com, not trying to test the alignment of the model, I needed the answer for an argument. The questions was: "Which Asian countries have McDonalds and which don't have it?" The web U
204.
▲
by
sesm
2y ago
Great job! And good luck on your journey! One question: which JS engines did you consider and why you chose V8 in the end?
205.
▲
by
sesm
2y ago
I would expect crates like `stdlib-terminal` and `stdlib-web-api` in that case. Honestly, something feels off with Rust trying to advertise itself for embedded: no stdlib and encourage stack allocation, but then married to Clang (which doe
206.
▲
by
sesm
2y ago
Nothing, it just required resources to maintain, which Facebook doesn't want to dedicate.
207.
▲
by
sesm
2y ago
A lot of things exist. But to become a go-to standard a good timing is required. Next.js was getting popular right at the time Facebook abandoned 'create-react-app' template, and many people adopted Next.js even if they didn'
208.
▲
by
sesm
2y ago
Yes, but it's missing the network tab, see https://github.com/nodejs/diagnostics/issues/75
209.
▲
by
sesm
2y ago
That's mostly because `create-react-app` was abandoned. There is no default project template for React SPA, so everyone just uses Next, even if they don't need SSR.
210.
▲
by
sesm
2y ago
> What exactly does it improve over lets say PHP or Rails Uses the same code to render on server and in browser, enables moving render logic from browser to server and vice versa without doing a complete rewrite.
More ›