Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
timhh
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
timhh
7mo ago
I recently started using Linux again, and decided to try and fix some of its more ancient and silly UX paper cuts. This is my first success! My attempt to fix the annoying and unnecessary 2 second delay when you mistype your password is goi
32.
▲
by
timhh
8mo ago
If you get lost in the SEW, LMUL, VLMAX, etc. stuff I made a brief explanation here: https://blog.timhutt.co.uk/riscv-vector/ It has a visualisation of the element selection stuff at the end.
33.
▲
by
timhh
8mo ago
It's going to be optional - the hooks will always fix the code if they can, but then you can supply a `--no-fix` flag (or config) if you want to tell it to not actually apply those changes to the real filesystem. It doesn't need L
34.
▲
by
timhh
8mo ago
It is better because of WASI. That's what provides sandboxing.
35.
▲
by
timhh
8mo ago
> just a little to different and obscure Even the style of writing screams "I'm doing something weird and I'm not going to explain it to you unless you are already a mega-fan". Reminds me of Wolfram's writing a b
36.
▲
by
timhh
8mo ago
Not really what "shift left" means...
37.
▲
by
timhh
8mo ago
You could say the same about Dutch to be fair. 90-95% speak English - I bet that's way higher than in Poland.
38.
▲
by
timhh
8mo ago
Yeah it messed up a bit for me too when I didn't enunciate well. If I speak clearly it seems to work very well even with background noise. Remember Dragon Naturally Speaking? Imagine having this back then!
39.
▲
by
timhh
8mo ago
> the second the hooks modify the code they've broken your sandbox Changes to code would obviously need to be reviewed before they are committed. That's still much better than with pre-commit, where e.g. to do simple things lik
40.
▲
by
timhh
8mo ago
I have also been working on an alternative written in Rust, but in my version the hooks are WASI programs. They run on a virtual filesystem backed by the Git repo. That means a) there are no security issues (they have no network access, and
41.
▲
by
timhh
10mo ago
TOTP is really annoying IMO but at least you control it so you can make it one-factor again if it's foisted on you. I made a Chrome extension to do that: https://chromewebstore.google.com/detail/lazyotp/eoihmk
42.
▲
by
timhh
10mo ago
The absolute prefix requirements (similar to Nix, and I guess for the same reason) mean this probably can't be used where it would be most useful - on machines that you don't control. I wonder if anyone will ever make something li
43.
▲
by
timhh
10mo ago
There's also this thing that I wrote. I've been meaning to update it for a long time but life... http://robocut.org/
44.
▲
by
timhh
11mo ago
> Crates.io is an unmoderated wasteland of infinite transitive dependency chaos Well, I'm not sure I agree with that. If by "unmoderated" you mean anyone can upload a crate without going through bureaucratic approvals proc
45.
▲
by
timhh
11mo ago
I don't think you would be flagged. Rust definitely has flaws: * Compile time is only ok. On par with C++. * Async has a surprisingly number of footguns and ergonomic issues. * There's no good solution to self-borrowing or partial
46.
▲
by
timhh
11mo ago
> why isn’t OCaml more popular I've used OCaml a bit and found various issues with it: * Terrible Windows support. With OCaml 5 it's upgraded to "pretty bad". * The syntax is hard to parse for humans. Often it turns i
47.
▲
by
timhh
1y ago
Those architectures are all much older than RISC-V from a time when it wasn't quite so blindingly obvious that Little Endian had won the debate.
48.
▲
by
timhh
1y ago
> So when a little-endian system needs to inspect or modify a network packet, it has to swap the big-endian values to little-endian and back, a process that can take as many as 10-20 instructions on a RISC-V target which doesn’t implemen
49.
▲
by
timhh
1y ago
Python still doesn't do very well on backwards compatibility & bitrot, even after 3. They're constantly deprecating and removing things. https://docs.python.org/3.12/deprecations/index.html This obvi
50.
▲
by
timhh
1y ago
> RISC-V has either little-endian or big-endian byte order. Yeah though for instruction fetch it's always little endian. I honestly think they should remove support for big endian from the spec. As far as I know nobody has implement
51.
▲
by
timhh
1y ago
I'm pretty sure Rust is going to outlast x86! C definitely will.
52.
▲
by
timhh
1y ago
I think assembly is probably a pretty bad choice for a RISC-V emulator. It's not portable, a nightmare to maintain, and not even as fast as binary translation. What kind of performance do you get? I guess it would be a great way to lea
53.
▲
by
timhh
1y ago
I think that change is talking about the minimum timeout for the first 5 nested calls to `setTimeout(0)`. Previously the first 5 would take 1ms, and then the rest would take 4ms. After that change the first 5 take 0ms and the rest take 4ms.
54.
▲
by
timhh
1y ago
I asked about this a few years ago on SO and there is some good info: https://stackoverflow.com/q/61338780/265521 E.g. Chrome has this comment: // Chromium uses a minimum timer interval of 4ms. We&#x
55.
▲
by
timhh
1y ago
I have a lot of experience with pairwise testing so I can explain this. The reason there isn't an "equal" option is because it's impossible to calibrate. How close do the two options have to be before the average person
56.
▲
by
timhh
1y ago
Yeah you can describe basically any ISA including SIMD. The RISC-V model doesn't support packed SIMD (the P extension) but it does support Vector.
57.
▲
by
timhh
1y ago
It's still kind of experimental. Also the purpose is more for formal verification against a real design. The RISC-V model doesn't have any microarchitectural features you'd need for a real chip - not even pipelining - so it w
58.
▲
by
timhh
1y ago
I've used this a lot via the RISC-V Sail model: https://github.com/riscv/sail-riscv It's a really nice language - especially the lightweight dependent types. Basically it has dependent types for integers and
59.
▲
by
timhh
1y ago
Yeah I also don't understand how this is unexpected. You gave Claude the ability to run arbitrary commands. It did that. It might unexpectedly run dangerous commands even if you don't connect it to malicious emails.
60.
▲
by
timhh
1y ago
That's a maximum . It's extremely unlikely that they would actually get jail time. Maybe a suspended sentence at worst.
More ›