Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tomn
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
tomn
1y ago
Bullets are a bad example because they have multiple properties which makes them much harder to localise than many other sounds. I'm pretty sure most people can localise a vehicle emitting broadband noise (engine or white reversing sou
2.
▲
by
tomn
1y ago
> They have to be loud enough to be heard through hearing protection. It's kind of a nit-pick, but this is not really true. Very approximately, you will perceive a sound if it is above your threshold of hearing, and also not masked
3.
▲
by
tomn
1y ago
looking around a bit, it's used as an example in the documentation: https://github.com/haiku/haiku/blob/7d07c4bc739dbf90159a5c02... This is actually a great reason to keep it around; it's as simple
4.
▲
by
tomn
1y ago
Yeah, it's certainly doable, just a bit tricky because the spoil-board is not attached to the base, and is replaced nearly every time. It also needs at least one extra tool set-up. If I needed a lot of double-sided boards it would be w
5.
▲
by
tomn
1y ago
You're comparing a hub dynamo with cheap low-capacity rechargeable lights. Rechargeable lights from the usual suspects are generally not good, they are expensive for what they are, have low capacity, and don't have swappable stand
6.
▲
by
tomn
1y ago
The simple contextlib.contextmanager example doesn't really sell the benefits. The main one is that it makes error handling and clean-up simpler, because you can just wrap the yield with a normal try/catch/finally, whereas to
7.
▲
by
tomn
1y ago
A spare battery in your saddle-pack solves most of those problems. If you're worried about being without light, a (typical) dynamo system is more complicated and exposed than a battery system, so will be more prone to failure.
8.
▲
by
tomn
1y ago
I get why people like them, but they make way less sense when you work out the capacity of an equivalent weight (not to mention cost) of lithium cells. It's easy to get to about 90Wh, which will run a dynamo-powered light for 30 hours
9.
▲
by
tomn
2y ago
I don't see why it should be so binary. I said it "mostly" just works because there are no packaging systems which do exactly what you want 100% of the time. I've had plenty of problems with node, for example. You mentio
10.
▲
by
tomn
2y ago
Yeah, I thought about that too, but if you want to process more than 255 values this might not be valid, depending on the implementation of count_if.
11.
▲
by
tomn
2y ago
Just to correct my own comment: > with an uint8_t local variable and size_t return value, an earlier optimisation removes the cast to uint8_t, because it only has an effect when undefined behaviour has been triggered In this case, there
12.
▲
by
tomn
2y ago
I've had a look at what's going on in LLVM, and we're both a bit wrong :) This optimisation is applied by AggressiveInstCombinePass, after the function has been completely inlined. In cases where it is applied, the i64 result
13.
▲
by
tomn
2y ago
I'm not sure how "it can go the other way around too" -- in that case (assigning to a uint8_t local variable), it seems like that particular optimisation is just not being applied. Interestingly, if the local variable is &quo
14.
▲
by
tomn
2y ago
Oh right, I didn't see it in a couple of passes (and searching for cast); for anyone else looking it's in the 3rd footnote. Thanks.
15.
▲
by
tomn
2y ago
another solution is to just cast the result to an uint8_t; with this, clang 19.1.0 gives the same assembly: https://gcc.godbolt.org/z/E5oTW5eKe
16.
▲
by
tomn
2y ago
This is incoherent to me. Your complaints are about packaging, but the elixir wrapper doesn't deal with that in any way -- it just wraps UV, which you could use without elixir. What am I missing? Also, typically when people say things
17.
▲
by
tomn
2y ago
Real justice would be changing the laws and sentencing guidance (through a democratically legitimate process), and re-evaluating the sentences of everyone affected. Whatever you think about the outcome in this case, it is the moral equivale
18.
▲
by
tomn
2y ago
despite that, the employment rights bill is at least moving in the right direction
19.
▲
by
tomn
2y ago
> I am pretty sure that, unless you use --impure, all files that are read are required to be in the store. Since the store is read-only, it does not break purity. Right, but even then the logical type for readFile would be something like
20.
▲
by
tomn
2y ago
> the help online is always in the form of code fragments whose purpose kinda sorta looks alright maybe, but doesn't ever seem to fit into the setup I've built. So then I'm faced with completely rearranging the structure t
21.
▲
by
tomn
2y ago
> You can absolutely have a better language generate derivations, surely? Yes, hence guix. The issue is that it doesn't fit well into a pure functional language like haskell if you want to allow import-from-derivation or basic funct
22.
▲
by
tomn
2y ago
> Evaluation is completely pure (at least with flakes, which disallows querying environment variables, etc.). Evaluation of derivations will result in .drv files in the store, but that does not add impurity to the language itself. Buildi
23.
▲
by
tomn
2y ago
> I'm no language expert, but I genuinely don't understand why it wouldn't have been better to build some equivalent DSL in Haskell to do this given the similar lazy nature of the language. My impression is that you can&#x
24.
▲
by
tomn
2y ago
they do, but google play is the main distribution channel for android apps, and without that many people will not use it (and many will complain). from the actual announcement: > without Play releases I do no longer see enough benefit an
25.
▲
by
tomn
2y ago
OpenWrt's dnsmasq will serve PTR records corresponding to DHCP leases, so you can use reverse DNS lookups. Use something like: dig -x ip_address_here For me it would be ideal if the prometheus exporter would expose the actual DH
26.
▲
by
tomn
2y ago
> American or British recipes American or old British recipes; ours are all metric now. The exception is perhaps teaspoons/tablespoons, but those are trivial metric values (5ml and 15ml), so easy enough to scale and convert if you
27.
▲
by
tomn
2y ago
Microwave with knobs: put food in and turn the knob to the time you want. maybe turn the power knob if necessary, and wait for the ding Microwave with buttons: put food in, stare at the keypad for 30s looking for the "just f**ing micro
28.
▲
by
tomn
2y ago
The actual standard (well, the previous version, BS 7666-1:2006) does contain that wording, but also says: > Abbreviations and punctuation shall not be used unless they appear in the designated name, e.g. “Dr Newton’s Way”, and only sing
29.
▲
by
tomn
2y ago
Interesting. My understanding is that these projects don't allow anonymous contributions to make their copyright situation clear, so in theory if marcan42 sent a letter to the linux project saying that contributions from Asahi Lina are
30.
▲
by
tomn
2y ago
Me neither, i even provided a source, and it's easy to find other examples. There certainly are projects that allow anonymous contributions, but i doubt it's the majority of projects that one would consider important. For these ki
More ›