Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
stabbles
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
151.
▲
by
stabbles
1y ago
In my experience it's better at lower level stuff, like systems programming. A pass afterwards with claude makes the code more readable.
152.
▲
by
stabbles
1y ago
Does it include a decent BLAS? If I remember correctly R ships with reference BLAS, but for decent performance you need something external. Wonder what they picked for wasm based R.
153.
▲
by
stabbles
1y ago
Makes me think of the movie Inception: "I say to you, don't think about elephants. What are you thinking about?"
154.
▲
by
stabbles
1y ago
Surprisingly it's not fixed in the meantime. Maybe they were being honest.
155.
▲
by
stabbles
1y ago
It sounds interesting, but I think it's better if a linker could resolve dependencies of static libraries like it's done with shared libraries. Then you can update individual files without having to worry about outdated symbols in
156.
▲
by
stabbles
1y ago
Much of the dynamic section of shared libraries could just be translated to a metadata file as part of a static library. It's not breaking: the linker skips files in archives that are not object files. binutils implemented this with `l
157.
▲
by
stabbles
1y ago
The guide is basically about GNU Make, and the flags are obviously just for end users to invoke make.
158.
▲
by
stabbles
1y ago
Another thing that's interesting lately is that CMake has decided that Makefiles are unfit for projects that use C++20 modules, and ninja is the way to go. [1] Basically it's considered too hard if not impossible to statically def
159.
▲
by
stabbles
1y ago
A couple make flags that are useful and probably not very well known: Output synchronization which makes `make` print stdout/stderr only once a target finishes. Otherwise it's typically interleaved and hard to follow: make -
160.
▲
by
stabbles
1y ago
That's entirely orthogonal. In probabilistic programming you (deterministically) define variables and formulas. It's just that the variables aren't instances of floats, but represent stochastic variables over floats. This is
161.
▲
by
stabbles
1y ago
The trick is much like Zobrist hashing from chess programming, I'm sure the llm has devoured chessprogramming.org during training.
162.
▲
by
stabbles
1y ago
Do note that this speed even before the 3GB/s improvement exceeds the bandwidth of most disks, so the bottleneck is loading data in memory. I don't know of many applications where CSV is produced and consumed in memory, so I wonde
163.
▲
by
stabbles
1y ago
Instead of doing 4 comparisons against each character `\n`, `\r`, `;` and `"` followed by 3 or operations, a common trick is to do 1 shuffle, 1 comparison and 0 or operations. I blogged about this trick: https://stoppels.ch&
164.
▲
by
stabbles
1y ago
A good resource is Gerard Sleijpen's course: https://webspace.science.uu.nl/~sleij101/Opgaven/NumLinAlg/
165.
▲
by
stabbles
2y ago
> Let ε<0 represent the elasticity of imports with respect > The price elasticity of import demand, ε, was set at 4.
166.
▲
by
stabbles
2y ago
31% tariffs on Switzerland will be felt.
167.
▲
by
stabbles
2y ago
"Assuming that offsetting exchange rate and general equilibrium effects are small enough to be ignored" Yes, let's assume the world is constant and changes are made in isolation.
168.
▲
by
stabbles
2y ago
> The keyword $ORIGIN in rpath is expanded by the dynamic loader to the path of the directory where the object is found, which may be set by an attacker (e.g., via hard links) to a directory with a malicious dependency. On Linux, the fs.
169.
▲
by
stabbles
2y ago
> People have only just started working on making dedicated AI chips If you mean chips that do fast matrix-matrix multiplications, that definitely has a long history and was not "just started". If you mean calculations in low p
170.
▲
by
stabbles
2y ago
Fair, the question is what possible solutions exists.
171.
▲
by
stabbles
2y ago
It gets it wrong when you give it 728. It claims (728, 182, 546). I won't share the answer so it won't appear in the next training set.
172.
▲
by
stabbles
2y ago
Can't take backwards, looks like a bug.
173.
▲
by
stabbles
2y ago
You could use a package manager that packages C, C++, Fortran and Python packages, such as Spack: here's the py-shapely recipe [1] and here is geos [2]. Probably nix does similar. [1]: https://github.com/spack/spac
174.
▲
by
stabbles
2y ago
I can recommend building tar with pigz + zlib-ng enabled by default instead of gzip.
175.
▲
by
stabbles
2y ago
I think the interpretation is more conceptual about functions, reusability and composability. The function exp has an abstract mathematical definition as mapping from numbers to numbers, and you could implement that generically if the langu
176.
▲
by
stabbles
2y ago
The main downside though, it's impressively slow. Comparing to gzip isn't really worth it. Combine pigz (threaded) with zlib-ng (simd) and you get decent performance. pigz is used in `docker push`. For example, gzipping llvm.tar (
177.
▲
by
stabbles
2y ago
One thing that's excellent about zopfli (apart from being gzip compatible) is how easy it is to bootstrap: git clone https://github.com/google/zopfli.git cc -O2 zopfli/src/zopfli/*.c -lm
178.
▲
by
stabbles
2y ago
A big advantage of shell scripts is that they're scripts and you can peek in the sources or run with `-x` to see what it does.
179.
▲
by
stabbles
2y ago
Did you look at the implementation? It executes arbitrary code
180.
▲
by
stabbles
2y ago
It would be interesting to see when these trends started and how long they lasted, to see if the current trend is any different.
More ›