Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Ruud-v-A
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
Ruud-v-A
10y ago
We do have a different small tool in Haskell that we are likely going to open source though :)
32.
▲
by
Ruud-v-A
10y ago
The GHC runtime has built-in support for memory profiling, it can produce a graph that shows a breakdown of the heap over time. After trying various combinations of flags I managed to produce a graph where one part was clearly growing over
33.
▲
by
Ruud-v-A
10y ago
That was informative, thanks!
34.
▲
by
Ruud-v-A
10y ago
The real issue with the Python scheduler was its algorithmic complexity. Using a faster implementation would have bought us a few extra months or maybe even year, but it would only have postponed the need for a real solution.
35.
▲
by
Ruud-v-A
10y ago
Good question! None of the existing options that we investigated supported all of our requirements. In particular, all the arrows that can exist in the dependency graph are known ahead of time, but the nodes are not. This means that a job c
36.
▲
by
Ruud-v-A
10y ago
The runWorkerLoop function logs a few lines and sends out an initial job request (by enqueueing an event in Redis). It then calls the nested function `go`, which dequeues one event of a TBQueue (a thread-safe bounded queue), matches on the
37.
▲
by
Ruud-v-A
10y ago
We do actually use Mypy! I wrote about my experience with it here: https://www.reddit.com/r/programming/comments/5x3hdd/channab...
38.
▲
by
Ruud-v-A
10y ago
The most serious one is that we were submitting jobs (as json) that were missing a few metadata fields. In Python we passed around dictionaries, and even though we had json schema validation in place, this slipped through. In Haskell, we de
39.
▲
by
Ruud-v-A
10y ago
We are actually using Docker for generating the virtualenv that we ship and running tests now. The motivation for doing this is being able to control the environment; we can run tests and build a package on CI, and we can build the same pac
40.
▲
by
Ruud-v-A
10y ago
> I wonder if PureScript would have been a better choice. I have an aversion (based for a large part on prejudice) of things that involve Javascript and its ecosystem :) I hear many good things about Purescript’s effect system, but I hav
41.
▲
by
Ruud-v-A
10y ago
Indeed, Rust + Cargo and Haskell + Stack are very similar in this regard. Both have great package managers, and both produce a shippable executable with only a few dependencies on system libraries. One notable difference is that Stack downl
42.
▲
by
Ruud-v-A
10y ago
To be clear, our new application is better (faster, scales better, more maintainable), for the most part because of the improved architecture. As we were going to do the rewrite anyway, we considered more alternatives than just Python. For
43.
▲
by
Ruud-v-A
10y ago
Or you could just run `git grep --line-number TODO`.
44.
▲
by
Ruud-v-A
10y ago
For the Dutch people here considering what to vote in the March elections, I made an overview of statements of the parties on privacy and internet freedom: https://goo.gl/roiqVJ
45.
▲
by
Ruud-v-A
10y ago
I use Vim. With https://github.com/dan-t/rusty-tags for the occasional jump-to-definition. Ctrl+N autocomplete works well enough for me.
46.
▲
by
Ruud-v-A
10y ago
> Compare this with old-fashioned CBC+HMAC (applied in the correct EtM manner), in which you can arbitrarily misuse the IV (for example you can forget to apply it completely) and the worst that can happen is that you drop back to ECB mod
47.
▲
Mill Computing in 2017
(millcomputing.com)
4 points
by
Ruud-v-A
10y ago
|
0 comments
48.
▲
by
Ruud-v-A
10y ago
Actually, the coefficients are only 16 bit, they are just widened before the loop. AVX2 and later are not widely supported, but there is pmuldq in SSE4.1 which is appropriate here. It takes 32 bit operands and and produces a 64 bit result.
49.
▲
by
Ruud-v-A
10y ago
Good question! It turns out that 64 bit arithmetic does not overflow (I explain this in a comment in the source code [1]) up to the shift. The shift amount must then be large enough to fit the result in 32 (or actually, 24 or usually 16) bi
50.
▲
by
Ruud-v-A
10y ago
Thank you!
51.
▲
Zero-cost abstractions
(ruudvanasseldonk.com)
3 points
by
Ruud-v-A
10y ago
|
0 comments
52.
▲
by
Ruud-v-A
10y ago
This appears to be something phone-related, not the Ring cryptography library written in Rust based on Boringssl. ( https://github.com/briansmith/ring )
53.
▲
by
Ruud-v-A
10y ago
I’m glad that I have been distrusting Startcom on all my devices since early 2014. Time to do the same for Wosign.
54.
▲
by
Ruud-v-A
10y ago
Not a true answer to your question, but ... stop visiting those sites? Hopefully the site operators keep some metrics on how intrusive ads affect their bounce rate. Whenever I end up on a site that pops up a full-screen overlay, 9/10 t
55.
▲
by
Ruud-v-A
10y ago
In what sense? I’m using Chrome Beta on Android, and I don’t recall being prompted to log in. Perhaps there was such a prompt during initial setup, but it has never tried to log me in quietly since.
56.
▲
by
Ruud-v-A
10y ago
> Basically, I wonder what would a shell look like if it was designed today without any concern for compatibility The TempleOS shell is pretty innovative in this regard.
57.
▲
by
Ruud-v-A
10y ago
What is the alternative? Renaming the file? This was actually an issue with early versions of Servo on Windows: cloning the repository would fail because it contained a file with a # in the name. https://github.com/servo
58.
▲
by
Ruud-v-A
10y ago
Here’s what’s really going on: You can define a function f from a subset of the complex numbers to the complex numbers where f(z) = \sum_{n=1}^\infty 1/n^z. Be careful with the domain of this function: the series does not converge for
59.
▲
by
Ruud-v-A
10y ago
What is the motivation for making it self-hosting? Just for fun too? It creates a lot of trouble around bootstrapping.
60.
▲
by
Ruud-v-A
10y ago
I distrusted all StartCom certificates anyway after 2014; StartCom is a rogue CA who certify the authenticity of sites which they know have been compromised. Read the story here: https://web.archive.org/web/2014041208
More ›