Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dthul
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
dthul
5y ago
The views on centralized services such as Infura really resonate with me. A few months ago I looked into how Ethereum and smart contracts work and got excited that there is basically this shared "virtual machine" with persistent,
62.
▲
by
dthul
5y ago
Love the flashback to the old Compiz days! The only thing missing now is wobbly windows.
63.
▲
by
dthul
5y ago
Can't wait to try this out! I always wanted the ability to see the tasks that are currently running or waiting. In the screenshots I can see that tasks have descriptive names. Does anybody know how to set the name for a task? tokio::sp
64.
▲
by
dthul
5y ago
The author of the PR is burntsushi of ripgrep fame. This isn't some "developer oppression by non-developers".
65.
▲
by
dthul
5y ago
I agree. I use software written (at least partially) in Rust all day every day and it's only getting more. Obvious examples include Firefox, ripgrep (which powers VSCode's search) or librsvg which renders SVG images in Gnome.
66.
▲
by
dthul
5y ago
Love the 2021 edition changes and also the fact that they are so minor!
67.
▲
by
dthul
5y ago
The commas give it the right rhythm I believe. I can only hear French though, maybe because I never heard the English version.
68.
▲
by
dthul
5y ago
Fully specified function signatures are a conscious decision because it allows you to type check and borrow check a piece of code without needing to analyze the bodies of other functions. I also love it as a human because there is no guessw
69.
▲
by
dthul
5y ago
Right, in both approaches you can choose to handle the error by ignoring it and crashing. In "errors as values" languages you have to make that choice explicit by marking the line with `unwrap`. Saying that this requirement is &qu
70.
▲
by
dthul
5y ago
Without knowing much Go I believe it's neither a nor b. The pointer to the single element will always stay valid, no matter whether reallocation happens or not (and having a pointer doesn't influence whether reallocation happens o
71.
▲
by
dthul
5y ago
I don't quite follow. You always have to somehow handle the case the file does not load successfully. In exception languages that handling might be implicit (raise an exception and crash your program) and in "errors as values"
72.
▲
by
dthul
5y ago
I don't think that's true because if I understand it correctly, the return type of functions which can possibly throw unchecked exceptions would not indicate that they can throw or what they can throw. On the other hand, with the
73.
▲
by
dthul
5y ago
Note that in Kotlin the return type is `Int?`, not `Int`. You can't forget to check for null because the compiler enforces it. To your first point: Another example in the design space would be Rust which works very similarly to Kotlin
74.
▲
by
dthul
5y ago
It's the correct design only if we assume that the design space didn't allow for a different return type. Kotlin for example offers toIntOrNull ( https://kotlinlang.org/api/latest/jvm/stdlib/kotl
75.
▲
by
dthul
5y ago
I read some other thread on here some time ago that talked about the option of using a Pi-hole (or so?) to block smart TV ads.
76.
▲
by
dthul
5y ago
That could be a nice alternative! In that case you do need a separate tuner though and something like a Chromecast if you want to watch Netflix. And you might not have easy access to extended channel offerings such as watching older episode
77.
▲
by
dthul
5y ago
The issue is that it's hard to find any not-too-smart TVs with up to date technology (4k, OLED, HDR etc). Unless you spend a fortune on a luxury brand like Bang and Olufsen.
78.
▲
by
dthul
5y ago
It's not as easy as just retuning camera settings. Due to physical limitations (at least with our current state of technology) camera sensors have a very limited dynamic range compared to the human eye. Increasing the exposure to bette
79.
▲
by
dthul
5y ago
I don't know if I would call the SIGGRAPH audience the non-science type :D Also this is not an award but a showcase of short videos which are in some measure remarkable from the computer graphics or art perspective.
80.
▲
by
dthul
5y ago
We don't see such things happening though and trains have been around for far longer than airplanes.
81.
▲
by
dthul
5y ago
The return types of fallible functions map naturally onto sum types. By using product types instead there is a semantic mismatch. You get an error and a value but only one of those is valid. So you need to follow certain code idioms to get
82.
▲
by
dthul
5y ago
I agree that Rust, besides its technical excellence based on all of these prior languages, also hit a sweet spot with its timing.
83.
▲
by
dthul
5y ago
Thanks for the info, didn't know that! I'm actually using KeePassXC.
84.
▲
by
dthul
5y ago
And make it possible to have password managers auto-type the username and password. Some sites don't focus the password field after the username field and so the "username -> tab -> password -> enter" auto-typing bre
85.
▲
by
dthul
5y ago
Yes, I thought about something like that. Being able to map it to the filesystem and back to the Unison database. But then, what is the point of this content addressed code again? What do we gain from it that we don't already have now?
86.
▲
by
dthul
5y ago
What I don't understand is what they do when merging two branches. If both branches introduce a function with the same name a merge conflict is inevitable, no? Or do they not support the distributed version control approach and every d
87.
▲
by
dthul
5y ago
I agree that text files might not be the best way to store code. My point was more that all of the existing tools like code editors and version control systems have been designed around the concept of files though. And instead of Unison bei
88.
▲
by
dthul
5y ago
An immediate caveat I came across: if you want to look at some Unison code you need a special code management tool. Take for example their base library on Github: https://github.com/unisonweb/base The actual code live
89.
▲
by
dthul
5y ago
I started reading this book some years ago but quickly gave up when after the first chapters it was made clear that you would have to put a lot of time into the practice. I don't remember what the book's recommendation was. How mu
90.
▲
by
dthul
5y ago
Does it get significantly slower if you use Eigen's fixed size matrices? I have a C++ project which uses Eigen and some other templates (but nothing crazy) and it is quite slow to compile. Not complaining though because I don't co
More ›