Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sgeisenh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
13 ms
·
1.
▲
by
sgeisenh
4mo ago
This closely resembles implicit conversion from C++ and in many serious codebases it is considered poor practice because it leads to a lot of hidden control flow. I think Rust strikes a nice balance but there’s enough magic that some peop
2.
▲
by
sgeisenh
9mo ago
Yes, for most real-world examples JavaScript is significantly slower; JIT isn’t free and can be very sensitive to small code changes, you also have to consider the garbage collector. Speed is also not the only metric, Rust and C enable much
3.
▲
by
sgeisenh
1y ago
Similar to ruff, uv mostly gathers ideas from other tools (with strong opinions and a handful of thoughtful additions and adjustments) and implements them in Rust for speed improvements. Interestingly, the speed is the main differentiator f
4.
▲
by
sgeisenh
1y ago
This is an oversimplification. When distributed, the nondeterministic order of additions during reductions can produce nondeterministic results due to floating point error. It’s nitpicking for sure, but it causes real challenges for reprodu
5.
▲
by
sgeisenh
1y ago
Lifetime annotations can be burdensome when trying to avoid extraneous copies and they feel contagious (when you add a lifetime annotation to a frequently used type, it bubbles out to anything that uses that type unless you're willing
6.
▲
by
sgeisenh
1y ago
> Don't waste time on discussions within a level. I disagree with this. YAML has too many footguns (boolean conversions being the first among them) not to mention it is a superset of JSON. Plain old JSON or TOML are much simpler.
7.
▲
Resource Management and Generators in Python
(samgeo.codes)
2 points
by
sgeisenh
2y ago
|
0 comments
8.
▲
by
sgeisenh
2y ago
Thanks for the quick response, and for the nice write up. I thoroughly enjoy the python-like pseudocode, it was the main reason I was able to pick that out reasonably quickly!
9.
▲
by
sgeisenh
2y ago
In the pseudocode snippet that introduces a WAL, the semaphores are signaled before the fsync occurs. This seems like a mistake but maybe there’s a good reason to do this that I am missing? Edit: it looks like this is the case in the first
10.
▲
by
sgeisenh
2y ago
I did some of the work in the post (though mostly post-setup). Speaking in generalities: the initial failure rates of these units are much higher than those of traditional non-GPU machines. In general, the failure rates decline significantl
11.
▲
by
sgeisenh
2y ago
You may want to add some moderation features or otherwise increase friction for adding job postings for www.firmwarejobs.com because the very first listing that I see when I load the page is "Doing your mom".
12.
▲
by
sgeisenh
3y ago
I think it's more subtle than that. Rust has a notion of non-lexical lifetimes ( https://rust-lang.github.io/rfcs/2094-nll.html ) and the compiler often completely avoids the use of the stack for small, trivially dr
13.
▲
by
sgeisenh
3y ago
Stuff Made Here
14.
▲
by
sgeisenh
3y ago
Usually from GC. Anthony Sottile has a nice explanatory video: https://youtu.be/sdmcCQ7Em04?si=9PObAJixALFiZ9vd
15.
▲
by
sgeisenh
3y ago
Client means browser in this context.
16.
▲
by
sgeisenh
3y ago
Unfortunately the generational GC modifies bits all over the heap, so you have to use some tricks to really leverage copy on write (as the commenter alludes to).
17.
▲
by
sgeisenh
3y ago
I don't think I fully understand the analogy. Typescript has almost identical semantics to Javascript but adds typing syntax to improve developer experience and make it easier to manage a large-scale JS codebase. Zig is a fundamentally
18.
▲
by
sgeisenh
3y ago
There is an option to circumvent the prerequisites as a non-major: You may also get permission from an advisor if you performed very high on the CS Assessment on Canvas. I took the course over the summer as a music major and subseque
19.
▲
by
sgeisenh
3y ago
"Principles of Imperative Programming" is a misnomer. The course is really about developing techniques for reasoning about low-level software. You build up abstractions in C by leveraging contracts and writing proofs of correctnes
20.
▲
by
sgeisenh
3y ago
Especially if modular implicits land, you get the best of both functions and typeclasses. Pretty weird way to start the post.
21.
▲
by
sgeisenh
4y ago
Doesn't the normal approach in C++ run into similar issues? The workarounds in C++ are more ergonomic than in Rust, but can still require a lot of refactoring. One of the performance bottlenecks that I ran into while reimplementing clo
22.
▲
by
sgeisenh
4y ago
Rust is an interesting mix. OCaml gets pretty close and type inference offers better ergonomics. The fearless concurrency story is still much better in Rust than OCaml.
23.
▲
by
sgeisenh
4y ago
I'm not sure that it's that cut and dry. Rust provides good tools for building high level abstractions and the developer tooling is comparable to something like typescript. Depending on the team, rust can be a perfectly reasonable
24.
▲
by
sgeisenh
4y ago
Fatigue is a common side effect of Zyrtec (and other antihistamines). From purely anecdotal evidence, I think most people have to experiment with allergy medication to find one that works best for them. I know that I'm dysfunctional wh
25.
▲
by
sgeisenh
4y ago
I'm a big fan of Julia Evans' zines. They're short and to-the-point and are often excellent jumping off points. This one seems highly relevant: https://wizardzines.com/zines/containers/ This was als
26.
▲
by
sgeisenh
4y ago
Google places a pretty high emphasis on code quality and readability. It's not universally great, but it's a big part of the culture. You can catch a glimpse in their [style guides][1], [abseil totws][2] and [aips][3]. Almost ever
27.
▲
by
sgeisenh
4y ago
For folks using bazel, there is also [bazel-watcher][1]. Also worth checking out [watchman][2] for this style of workflow in general. [1]: https://github.com/bazelbuild/bazel-watcher [2]: https://facebook.gi
28.
▲
Why I Love Advent of Code
(samgeo.codes)
2 points
by
sgeisenh
4y ago
|
0 comments
29.
▲
by
sgeisenh
4y ago
This is great advice. Anecdotally, I've been having pretty bad anxiety this year from work that I feel should be easy but turns out to have many unexpected wrinkles. In retrospect, it seems like there may have been a lot of "jus
30.
▲
Musings on Python Type Hints
(samgeo.codes)
3 points
by
sgeisenh
4y ago
|
0 comments
More ›