Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dathinab
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
52 ms
·
691.
▲
by
dathinab
1y ago
IMHO they created type annotations, not a type system and how you use the type annotations to indicate a type system is inconsistent and incomplete (e.g. NoneType vs. None for inconsistency and a lot of mess related to mataclasses (e.g. Enu
692.
▲
by
dathinab
1y ago
It's even worse (for python). TS might transpile to JS and can always be split into a js and type annotation file but is it's own language developed in tandem with the type check based on a holistisch approach to find how to type
693.
▲
by
dathinab
1y ago
in general end to end tests/whole system tests which mock/stub as little as possible and are focused on testing whole use-case flows is a good starting point (sadly in many teams also a constant uphill battle from convincing PM ov
694.
▲
by
dathinab
1y ago
> They instead drive at a natural speed for the road and conditions. except they don't, they reliably frequently drive above what is save heck what is safe isn't even always obvious Especially if you look at urban settings wher
695.
▲
by
dathinab
2y ago
It's actually not possible in the US. The US is too car dependent and as such it's practically non-viable to - put high (skill/knowledge) requirements on drivers (especially given that this normally entails increased monetary
696.
▲
by
dathinab
2y ago
Germany (and many parts of the EU) have: - _way_ higher requirements for "safe normal care usage skill" then the US - way higher care safety requirements (as in what cars are allowed to be on the street) - a different driving rule
697.
▲
by
dathinab
2y ago
yeah I mean you are basically stuck with a few options - use C/C++ focused debugers with a rust plugin or similar (okay, not not compared to idk. debugging python in PyStorm) - rely on tracing/logging and errors reported (which mi
698.
▲
by
dathinab
2y ago
that should only happen if either - you haven't setup auto save/auto sync - multiple people editing the documents - you frequently have no Internet and the application closed when you re-gain Internet or similar if only a single p
699.
▲
by
dathinab
2y ago
To be clear my point isn't that rust has no problems with what I call remote build cache, other might call shipping build artifacts etc. it _has_ issues there, which can be improved on, people are working on it, just kinda slowly but t
700.
▲
by
dathinab
2y ago
- cyclic dependencies - some subtleties related to (proc-)macros - better optimizations (potentially, not always, sometimes not at all) - how generics and compilation units interact (reduces the benefit of making each module a compilation u
701.
▲
by
dathinab
2y ago
you are mixing up use cases and concepts mainly the concepts of - how build steps are cached in on instance of the project - how build steps are cached across projects of common dependencies - linking to system libraries - bundling dependen
702.
▲
by
dathinab
2y ago
> C and C++ land, albeit in the opposite direction, [...] LTO you also have that in rust to link different crates (and the internal splits for parallel compute) together
703.
▲
by
dathinab
2y ago
the thing is: codegen-units defaults to 16 in release builds, and by far the most time in the "passes" list is spend in LLVM passed (which is was codegen-units parallelizes),so most times it shouldn't be stuck with 1 high loa
704.
▲
by
dathinab
2y ago
yesn't codegen in the OP article is machine gode generation (i.e. running LLVM) It's semantically kinda like having a single 100k file, but because rust knows it often generates huge "files" there is a splitting step, so
705.
▲
by
dathinab
2y ago
codegen units is quite the same as the `-j` flag cargo has the `-j` flag and defaults it to #cpus (logical cpus), so it's by default using the most times most optimal choice there And this will parallelize the compilation of all "
706.
▲
by
dathinab
2y ago
> have easy paralelisation of builds. except the company had a straight forward solution to the problem and it's not always possible in C++ land either and COM isn't part of C/C++ but a microsoft specific extension which s
707.
▲
by
dathinab
2y ago
you are missing a lot of things - Compilation is an inherently hard to parallelize thing, and not just hard to parallelize but there are a lot of trade offs. This trade offs aren't even rust specific (i.e. C,C++, etc. are affected as m
708.
▲
by
dathinab
2y ago
The main issue here is: - in rust one semantic compilation unit is one crate - in C one semantic compilation unit is one file There are quite a bunch of benefits in the rust approach, but also drawbacks, like huge projects have to be split
709.
▲
by
dathinab
2y ago
on a "governmental budged" level? probably so little it's nothing but on a personal/small company level that still isn't nothing I guess you need above average robust and secure servers And the amount of "false
710.
▲
by
dathinab
2y ago
why do so many recent US news sounds like "someone is making the US as vulnerable as possible for attacks"
711.
▲
by
dathinab
2y ago
On of the larger dangers of AI for startups, investors and similar (i.e. we are not speaking about end users here) is "AI makes it easy to produce the first 50-70% solution, but you often need a 80-95% solution to not fall over hard an
712.
▲
by
dathinab
2y ago
One thing I often see pop up in larger projects, which in the article is likely the fault of way to large symbols, is overuse of generics/type state/etc. Or you could formulate this as needless obsession with not using `dyn`. And
713.
▲
by
dathinab
2y ago
> hell calls a tool "buildah"? people who seem to have done a pretty good job I mean branding logo for a this kind of tool really doesn't matter and if so why should you hire a graphic designer to do that for you if you al
714.
▲
by
dathinab
2y ago
Always fun when code relies on the order of iterating over a dir (which is in general clearly not defined to have any order, even iterating the same dir 2th consecutively might not yield the same order depending on "stuff" (e.g. e
715.
▲
by
dathinab
2y ago
I don't think such out of context nihilistic arguments are helpful at all, actually I'm pretty sure they are harmful to getting any change done. I also never said there aren't many other things bad about Musk. And comparing
716.
▲
by
dathinab
2y ago
> Musk did not understand this. more likely he is a ruthless ** who doesn't care about people dying and slightly increasing the profit margin is for him worth more then a some people dying regulators/law allowing self driving
717.
▲
by
dathinab
2y ago
It's what you get if you let people which don't know what they are doing make decision about things they don't really understand without being open for consulting because they know better using only oversimplified statistics
718.
▲
by
dathinab
2y ago
> Vance has him "accidentally extradited" to an El Salvadorian prison. why I don't agree on the prison part, yeah, IMHO the people "behind" trump see him as a manipulable but also volatile (i.e. problematic/
719.
▲
by
dathinab
2y ago
> way of getting you mean with arbitrarily claiming they have "no way to get them back" to spread more fear and suppression in ways mirroring the evil methods of authoritarian governments through history let's be real the
720.
▲
by
dathinab
2y ago
- middleware in the networks not forwarding broadcast messages - depending on device and application type you not even being able to send broadcast/the OS silently dropping them - firewall blocking incoming TCP/UDP without hole pu
More ›