Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
unrealhoang
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
unrealhoang
2y ago
There is, and it’s much more than an unknown penguin island.
32.
▲
by
unrealhoang
2y ago
nah, web developers that aren't doing simple CRUD are using interesting libraries powered by wasm without even care that it's powered by wasm: opencv, sqlite, duckdb, imagemagick, ffmpeg, ... anything AI/using GPU: tensorflow
33.
▲
by
unrealhoang
2y ago
So static typing is stupid because at the end of the line your program must interface with stream of untyped bits (i/o)? Once you can internalize that you could unlock the power of encapsulation.
34.
▲
by
unrealhoang
2y ago
I think tfa hasn’t considered the advantages of enforcing the correct usage of the codecs library. Most of the time memory safety issues are caused not in the codecs code itself but the user code using the codecs incorrectly. Unsafe Rust i
35.
▲
by
unrealhoang
2y ago
Isn’t rust’s serde what you are looking for? https://serde.rs/data-model.html
36.
▲
by
unrealhoang
2y ago
Because that’s all your brain are capable of recalling, the ones with Rust-tagging. With just a google search away you can dismiss your claim of 90% but you don’t want to do it because you only believe what you want to believe.
37.
▲
by
unrealhoang
2y ago
Get an article about Rust, and there’s going to be comments about how drama, zealous Rust is from people that never use Rust. Regardless of its content. So yeah, typical internet houlier than thou reactions, I wouldn’t read much into them.
38.
▲
by
unrealhoang
2y ago
can I config sql cells to use different data source (remote DB/APIs) instead of local duckdb?
39.
▲
by
unrealhoang
2y ago
Why would they (the companies) have to do anything should be the question.
40.
▲
by
unrealhoang
2y ago
No language since assembly enables new features that you could not have done in assembly. Languages are invented to enforce standard and build higher level abstraction aka disable feature.
41.
▲
by
unrealhoang
2y ago
And type declarations are s-exprs. The advantage of type after name is that it keeps the traversing order consistently pre-order (node, left, right), instead of either: - the notoriously ridiculous spiral cdecl: reading stuff right (output)
42.
▲
by
unrealhoang
2y ago
Yes, there is, just use plain old pointers. Who cares about UB anyway.
43.
▲
by
unrealhoang
2y ago
you should just see &mut and & as 2 separate modifier, maybe that'd help. - & &mut doesn't make sense: and a variable of type & &mut can't mutate the underlying object, it's practically equivalent
44.
▲
by
unrealhoang
2y ago
declare the type separately didn't solve the of hard-to-read cdecl problem.
45.
▲
by
unrealhoang
2y ago
that's the beauty of type after name, it's all left to right, even in special-cases of array, references, and the most confusing-contributor to cdecl: functions `func(int)[5]*string`: perfectly clear, just read left to right.
46.
▲
by
unrealhoang
2y ago
yes, read it from left to right, don't use spiral.
47.
▲
by
unrealhoang
2y ago
hence why every recent programming languages are type after name (go included).
48.
▲
by
unrealhoang
2y ago
Suck to be you, I guess? If you don’t care enough then you don’t care. You wouldn’t bitch when there’s an article written in Italian with good knowledge inside: “but Italian”. You either trying to read using translation tool or ignore it en
49.
▲
by
unrealhoang
2y ago
What a weird thing to complain about. The Rust code in TFA are purely arithmetic and imperative function calls. Any C developer that is good enough to care about the algorithm mentioned will have no issue reading such Rust code, heck, they
50.
▲
by
unrealhoang
2y ago
It calculates
51.
▲
by
unrealhoang
2y ago
for declaring function pointer? Any language with type after name : // c char (*(*x[3])())[5]; // golang var x [3]func() *[5]byte
52.
▲
by
unrealhoang
2y ago
Not really, there's little to almost no difference in English literacy between Viet, Korea & China. Yet there's a big gap compare to Japan, the reason is either culture and economic incentive rather than because of the native
53.
▲
by
unrealhoang
2y ago
How come? Trump’s just won an election with it.
54.
▲
by
unrealhoang
2y ago
lifetime checking is only done locally (inside function definition), not globally so it's relatively fast.
55.
▲
by
unrealhoang
2y ago
> As Rusty as possible without having to worry about lifetimes, the borrow checker It's Ocaml
56.
▲
by
unrealhoang
2y ago
What's the advantages of head tracking though? I don't see it's in anyway better than just joystick to control robot head movement.
57.
▲
by
unrealhoang
2y ago
TFA is using raw SQL (via sqlc) if you read carefully. And no, raw SQL doesn't get rid of N+1 issues.
58.
▲
by
unrealhoang
3y ago
After convert the keys to u32, they can use more specialized data structure like croaring to get an order of magnitude faster.
59.
▲
by
unrealhoang
3y ago
The problem with events handling are, you don't actually know what needs to be done when the event trigger. Let's say you have 20 components, on counterChange, which of the 20 components need to be updated? And how? You can either
60.
▲
by
unrealhoang
3y ago
> Right, the only thing that convinces me is team and hiring dynamics. But that’s not what these tools advertise. And that's fine, these tools don't solve what you search for. A dozens of controls multiply with a dozens of even
More ›