Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
whyever
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
10 ms
·
61.
▲
by
whyever
3y ago
That's the youngest commit.
62.
▲
by
whyever
3y ago
In this case, it was a problem with tokenization, which is deterministic.
63.
▲
by
whyever
3y ago
The arguably idiomatic way to implement such structures in Rust is to use arrays and indices, see crates like petgraph. It's probably faster as well, because there are less allocations and memory locality is better.
64.
▲
by
whyever
3y ago
They don't provide binaries, so I don't think there is a risk of having users. Is it really important to answer this question? A lot of widely used software started as "just for fun", e.g. Linux or OpenSSL. I think tempe
65.
▲
by
whyever
3y ago
Isn't this a stylistic choice? For example, some style guides would suggest to use "run time", but also "run-time error".
66.
▲
by
whyever
3y ago
That works for N dimensions, but for N=2 or 3 there are faster methods: For N=3, there is a method by Marsaglia: https://doi.org/10.1214/aoms/1177692644 For N=2, there is a method by von Neumann: https:/
67.
▲
by
whyever
3y ago
Metaphorically speaking, bits do rot, this is an expression for software stopping to work as the environment changes over time: http://www.catb.org/jargon/html/B/bit-rot.html
68.
▲
by
whyever
3y ago
Groceries are more expensive, but rent and salaries are lower than in Munich.
69.
▲
by
whyever
3y ago
From the beginning of the article: > It replaces a generation of sites built with Twitter Bootstrap.
70.
▲
by
whyever
3y ago
It's possible, but complicated for the employer: they have to found a branch in each employee's flat unless they have a permanent establishment in Austria.
71.
▲
by
whyever
3y ago
There is a rationale at the beginning of the article: > The technology we use every day has changed. And so, our search of the perfect font for higher resolution screens began. The font needed to have sharpness, uniformity, and be great
72.
▲
by
whyever
3y ago
> you can still read K&R in one day and keep most of the language in your head Does this include all 193 cases of undefined behavior?
73.
▲
by
whyever
4y ago
I disagree. Whenever there is a null pointer in the API, you could (and probably should) be using a sum type instead. Sum types are not novel (Standard ML had them 40 years ago), but I think they are indeed a game changer.
74.
▲
by
whyever
4y ago
https://sockpuppet.org/blog/2015/01/15/against-dnssec/
75.
▲
by
whyever
4y ago
In my experience, undergrad courses in theoretical physics can be extremely tedious, and a CAS can be quite helpful to double check your results.
76.
▲
by
whyever
4y ago
You can leave out the assignment, `var` already injects the variables into the local scope. IIRC, the commas are redundant.
77.
▲
by
whyever
4y ago
Nowadays, you can just choose a CSPRNG and be done with it. There are not many use cases where you might prefer a simpler PRNG.
78.
▲
by
whyever
4y ago
The linked text is from a Rust library for generating random numbers where predictability is acceptable, i.e. it does not concern itself with cryptographic security. The more popular library rand usese ChaCha and getentropy as you described
79.
▲
by
whyever
4y ago
There is an official Rust Windows API: https://github.com/microsoft/windows-rs
80.
▲
by
whyever
4y ago
It's a well-known method to uniformly sample the surface of an n-dimensional sphere.
81.
▲
by
whyever
4y ago
That is indeed the fastest way in my experience (at least on the CPU). It's very unlikely to have more than a few rejections, so any method that requires evaluating trigonometric functions cannot compete.
82.
▲
by
whyever
5y ago
That's why you have versioning: removing the feature would be a breaking change and indicated as such.
83.
▲
by
whyever
6y ago
How does it overlap with Rust where it does not with C#?
84.
▲
by
whyever
6y ago
IIRC, Zig was partially born out of Andrew's frustration with Rust.
85.
▲
by
whyever
6y ago
I don't really see how that would stop the zealots. They are already getting pushback within the Rust community.
86.
▲
by
whyever
6y ago
> Google is unlikely to spend half a billion a year on Mozilla's advocacy efforts. AFAIK, Google's money goes to the Mozilla Corporation, while the donations go to the Mozilla Foundation. So the advocacy is already separated, i
87.
▲
by
whyever
6y ago
I think this is intentional to prevent confusion/abuse. The national app also gets singled out on the Play Store.
88.
▲
by
whyever
6y ago
I still don't see how this is different from matplotlib. You can also move your simulation to a different language and keep using matplotlib for plotting, with it's own scripting language Python.
89.
▲
by
whyever
6y ago
This is not how the author uses the word owned.
90.
▲
by
whyever
6y ago
I'm not sure what you mean by bypassing the type system. The types mentioned are part of the type system. Some of them move checks from compile time to run time. `unsafe` could be seen as an escape hatch, but as far as I understand tha
More ›