Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ruuda
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
241.
▲
by
ruuda
4y ago
Here’s an example of what I mean, an interactive svg-only graph: https://gist.githubusercontent.com/ruuda/b84e94c3394f740d05b...
242.
▲
by
ruuda
4y ago
I was hoping this was something interactive using only svg. For example, one can do interactive charts with moving tooltips and a vertical cursor etc. fully in svg, using only hover states. (I thought Pygal [1] did this, but now that I chec
243.
▲
by
ruuda
4y ago
> We are effectively no closer to understanding how proteins fold, nor are we closer to being able to predict how a protein folds without any a priori information. Isn't that a bit like saying about image classifiers, that we still
244.
▲
by
ruuda
4y ago
There are two types of software: those that everybody complains about, and those that nobody uses.
245.
▲
by
ruuda
4y ago
Not exactly, but it looks similar. With what I was talking about you can have as many versions around as you need. An example would be using (TVar (HashMap k v)) in Haskell.
246.
▲
by
ruuda
4y ago
Here's one design that's nice to do for servers in GC'd functional languages, and hard to achieve without GC. Have the state of your application be a persistent data structure (one that you can efficiently update such that bo
247.
▲
by
ruuda
4y ago
How recently? I remember there was a referendum to make the age equal in 2017 or 2018, but the proposal was rejected at the time.
248.
▲
by
ruuda
4y ago
The new Nix command syntax that was there up to 2.3 was always marked as experimental, but it worked fine for many years, I used it in many projects ... until it got deleted and replaced with flakes. I really hope they don't do that ag
249.
▲
by
ruuda
4y ago
Imagine this happened a few years ago, and the EU had instead demanded micro-USB. Then we would still be flipping plugs twice, and I wouldn't be able to use my laptop charger to charge my phone. It's not clear to me that USB-C is
250.
▲
by
ruuda
4y ago
The input is 9139 lines long, each anomaly probably occurs dozens of times.
251.
▲
by
ruuda
4y ago
It is built by https://lumi.guide/portfolio-items/p-route-bicycle-utrecht/ , I just happen to know some people who worked there. The Haskell community is pretty small :)
252.
▲
by
ruuda
4y ago
Fun fact, the signs that show how many parking spaces are left run NixOS!
253.
▲
by
ruuda
4y ago
It looks fine with javascript disabled.
254.
▲
by
ruuda
4y ago
Yeah exactly, generate json instead. I now have some GitHub Actions config in Python, and some in Nix. Nix is actually really nice for this. Like yaml it has less line noise than json and it support comments, but unlike yaml the language is
255.
▲
by
ruuda
4y ago
It also regularly repeats the same line number. E.g. it numbers them 120, 121, ..., 131, 132, 120, 121, ...
256.
▲
by
ruuda
4y ago
Also a fun one is the "on" key that specifies when the workflow should run. "on" is magic in yaml, and some implementations will convert it to the string (!) "True" when it occurs as a key (I'm not talking
257.
▲
by
ruuda
4y ago
This link shows a blank page with red text “Sorry, you need to enable JavaScript to visit this website.” But when I scroll on mobile, a little extra space appears due to the url bar scrolling out of view, and in that space, I can see a glim
258.
▲
by
ruuda
4y ago
If you use MPV, you can pass it ffmpeg filters, and ffmpeg has many ways of compressing the dynamic range. See [1] for the set of audio filters. Here are the settings I use [2]. If you can't run your video through ffmpeg, I guess you c
259.
▲
by
ruuda
4y ago
The result is one bit wider, so it does not overflow.
260.
▲
by
ruuda
4y ago
The comment in part I that b-trees are not appropriate because Git does not do “live updating” of the packfiles also felt a bit misplaced to me. Writing small objects and then aggregating them into larger ones when we get too many of them,
261.
▲
by
ruuda
4y ago
It works fine for applying the patch, but then you have to manually follow all of the build steps, turn it into a distribution package, etc. With Nix it is easy to edit an upstream package that already knows how to build the software, to in
262.
▲
by
ruuda
4y ago
If the upstream project does not want to merge your fix, but it's an obvious improvement and a non-controversial patch, then one option is to have packagers carry the patch instead. For example in Nixpkgs, it is quite easy to patch an
263.
▲
by
ruuda
4y ago
Yes, that's a fair summary. Performance is not something I'm worried about for my app, maybe a few dozen people would use it at the same time, and I run everything at serializable isolation level anyway. But I can imagine that for
264.
▲
by
ruuda
4y ago
This looks nice, but it doesn't enforce in the schema that all transaction lines sum to zero. Is that a problem in practice? Or is it one of those things where if you get it wrong, you tend to notice immediately because everything brea
265.
▲
by
ruuda
4y ago
I would like to know about this as well. I struggled with this for a while for a prediction market app that I'm building. Eventually I ended up with [1]. I am somewhat pleased with it, but it does feel unwieldy to work with. I have som
266.
▲
by
ruuda
4y ago
There is another omission: > Because the deposits and withdrawals are not synchronized in time, users can break the link between a particular chunk of cryptocurrency and their holdings. This is not false, but a bit misleading. Being deco
267.
▲
by
ruuda
4y ago
I wonder, when sampling to shrink the set of bad titles, it samples uniformly. But wouldn't it be better to take the n worst titles (with the least upvotes)? After all, titles near the good/bad threshold are a bit arbitrary and sh
268.
▲
by
ruuda
4y ago
Well, can you imagine how much more upvoted it would have been with a good title?
269.
▲
by
ruuda
4y ago
The site shows a notification in German that I need to enable JavaScript to use the site, after the first paragraph. But then after that is the full article, including images, which is almost perfectly readable, except it's at 5% opaci
270.
▲
by
ruuda
4y ago
The people who run the validators can, but validators on the old version will be incompatible with the rest of the network (if the rest of the network did update), and they will not be able to sync. It's no different from Bitcoin in th
More ›