Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
whyever
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
271.
▲
by
whyever
9y ago
Nothing stops you from leaking memory in Rust either, it is considered memory safe, see std::mem::forget. Rust only safes you from use-after-free and double-free.
272.
▲
by
whyever
9y ago
I think I would just put all the nodes into a Vec and use indices instead of references. This results in every node having the same lifetime, like you wanted. It is what the specialized graph libraries like petgraph are doing, and it is mem
273.
▲
by
whyever
9y ago
I'm already struggling to compare variables to strings. Sometimes the string will be interpreted as a variable instead of a string, and I don't know how to avoid that.
274.
▲
by
whyever
9y ago
I think at the moment they use a level 1 hardware trigger and a level 2 software trigger. ALICE is moving to a pure software trigger.
275.
▲
by
whyever
9y ago
It is accessible, just not with some specific software. From what I can see, they tried to solve it, but could not due to lack of cooperation by the software's creator. Maybe they should have spent more effort, but then this was not a
276.
▲
by
whyever
9y ago
> free software devs can handle being told off once in a while. That's survival bias: Those who can't are not Linux devs.
277.
▲
by
whyever
9y ago
I don't understand how people can be so entitled about free software. Especially given the reply by the Qt developers: > The JAWS people didn't answer emails when we reached out to them (admittedly quite a while ago), so we
278.
▲
by
whyever
9y ago
If you want to see the largest file, wouldn't you want to sort it by size anyway?
279.
▲
by
whyever
9y ago
Funnily enough, the symbol for the newly announced particle cannot be written down with Unicode.
280.
▲
by
whyever
9y ago
Just the math is not enough, you need some connection to reality. For instance, your formula does not describe reality for large v. This can be tested.
281.
▲
by
whyever
9y ago
SymPy has Unicode output, you can try it here: live.sympy.org Note how "Symbol('alpha')" and "Symbol('x_a')" get converted to unicode. There are limitations though, "Symbol('x_b')"
282.
▲
by
whyever
9y ago
They could just add a test that makes sure trivial comparisons still work.
283.
▲
by
whyever
9y ago
> Cyclic data structures (without additional layer of indirection) require unsafe, or reference counting and dynamic borrow checking. Doesn't this apply to any language?
284.
▲
by
whyever
9y ago
Signal has most of these features as well.
285.
▲
by
whyever
9y ago
There is a train every hour. If you don't buy a discounted ticket, you can take any train you want. You can also take the bus, which is a lot cheaper but takes longer.
286.
▲
by
whyever
9y ago
> instead of using one generic error type for all of them But you can do that in Rust, just use Box<Error>. No library does that though, because it is not a zero-cost abstraction.
287.
▲
by
whyever
9y ago
What do you want to use inheritance for? In my experience, it is usually better to use composition and sum types.
288.
▲
by
whyever
9y ago
How is nuclear waste clean? How is a possible reactor meltdown safe or cheap?
289.
▲
by
whyever
9y ago
Yes, I don't think you can do better if forced to use &str. The point of using Cow is indeed to only copy when necessary like you assumed. You could have zero-copy roundtrips if you used escapes in the deserialized strings as well.
290.
▲
by
whyever
9y ago
It doesn't. You can use Cow<'a, str> if you want string escapes to work, but then it is not really zero-copy anymore.
291.
▲
by
whyever
10y ago
Unfortunately Rust uses an LLVM fork IIRC, so using it is non-trivial.
292.
▲
by
whyever
10y ago
Rust fares better in other indices.
293.
▲
by
whyever
10y ago
Couldn't you just gzip the HTML and serve it directly to the browser?
294.
▲
by
whyever
10y ago
I don't think the current state of systems programming is something to be proud of.
295.
▲
by
whyever
10y ago
Tiobe as your main argument is not very convincing.
296.
▲
by
whyever
10y ago
Can't you just use something like performance counters, like perf for Linux?
297.
▲
by
whyever
10y ago
> Surely, there could not be any error here. Nothing socially constructed. There could be. Physicists have been trying very hard for the last 40 years to find something the standard model cannot explain, without success. Some experimenta
298.
▲
by
whyever
10y ago
You can also have excited particles that have the same quark content. They are called "resonances", are unstable and can decay. For example, the five particles discovered here are excitations of the particle containing two strange
299.
▲
by
whyever
10y ago
These tables are editorialized by the Particle Data Group, they summarize and distill the empirical evidence of thousands of high-energy physics experiments. Not every experiment is replicated, but some are, hence the different ratings of h
300.
▲
by
whyever
10y ago
The Higgs is an elementary particle, so its discovery was much more exciting. There are a lot of particles made up of quarks, like the five mentioned in the article: http://pdg.lbl.gov/2016/tables/rpp2016-qtab-meso
More ›