Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
yodelshady
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
42 ms
·
391.
▲
by
yodelshady
6y ago
On looking at my code that does file reads, and steveklabnik's suggestion - Vec<u8> makes reasonable sense. At least that way, if you want nice encodings you've got the same problem agnostic of where the "string" c
392.
▲
by
yodelshady
6y ago
>It should be possible to write a wrapper that does "return the line" Is it, or not ? What's the point of lifetimes if you can't manage that trivial outlives-the-creator task in literally every other language ever
393.
▲
by
yodelshady
6y ago
It also includes "Deep Learning, LSTM, RNN, and NLP" in roles and responsibilities. Really?
394.
▲
by
yodelshady
6y ago
>It should be possible to write a wrapper that does "return the line" (in an owned buffer), and that might be a bit cleaner in simple cases. So put it in std lib. The point of computers is to not force humans to duplicate ident
395.
▲
by
yodelshady
6y ago
You want to see sadness, from a learning curve point of view? How to read from stdin on Rust. https://stackoverflow.com/questions/30186037/how-can-i-read-... Naturally, `read_line` returns the number of bytes r
396.
▲
by
yodelshady
6y ago
Forgiveness also requires our being right . That's not a given. If not, it's not an apology, it's shouting at someone until they're too exhausted to defend themselves any more. So, we should start by not assuming that.
397.
▲
by
yodelshady
6y ago
In a pinch my guitar amplifier will do (I don't mean after some soldering, either). AM radios are comically, wonderfully easy to build. Easy to build by accident, in fact. In retrospect I've no idea how practical physics labs ar
398.
▲
by
yodelshady
6y ago
It does seem surprising (and I was all ready to slate rust until I remembered to build for release). If you care that much - naive FORTRAN iteration on the same machine, same compiler, took 1200 s. (I am, obviously, taking inspiration from
399.
▲
by
yodelshady
6y ago
Oh no, simpler than that even. The FORTRAN solution was also using somebody else's algorithm (matmul), which is intrinsic, and, I believe, not multithreaded. I'm not employed to develop matrix multiplication algorithms, but it
400.
▲
by
yodelshady
6y ago
Modern fortran is surpisingly pleasant to write. The last time optimisation came up, I tried the author's problem - multiplying two 4096x4096 matrices - in numpy, FORTRAN and Rust, on a standard laptop. Supposedly it took 9 hours in na
401.
▲
by
yodelshady
6y ago
> it puts an end to cyberattacks, for instance. Luckily for infosec professionals - we are never putting the lid back on that particular box. International businesses need the internet, just as it needs encryption. It'll only be p
402.
▲
by
yodelshady
6y ago
I really miss my first smartphone - a Galaxy Ace 2 that I got in final year of undergraduate. The difference between "I can send this email/check this wiki page" and not is massive. No newer phone has improved on the Ace 2 fo
403.
▲
by
yodelshady
6y ago
>but would just stifle low effort downvotes With the exception of spam, that's a feature. If something offends you, you should consider why . Upvotes are useful in reducing spam, as without them, I'd have to repeat a sentiment
404.
▲
by
yodelshady
6y ago
"invisible" syntax is precisely want I don't want. That's practically the definition of a bug! I know I set myself up for the last line. I can only say I've really made a good faith effort to try to understand the e
405.
▲
by
yodelshady
6y ago
It's unquestionably more for short scripts - what I mostly do - instead of big applications. My memory is of learning Java, where you're all but forced to create custom classes for everything , just in case you need extensibili
406.
▲
by
yodelshady
6y ago
I'm struggling to think of a way in which a business, operating in good faith, would benefit from its customers not knowing what they signed up for. In fact I think it's tautological that they wouldn't. Good regulation won&#x
407.
▲
by
yodelshady
6y ago
Polymorphism is lovely - if you have strong typing, otherwise it's horrible. I shouldn't have to guess (!!!) that I am "most likely dealing with some kind of abelian group". I don't expect to solve the twin prime co
408.
▲
by
yodelshady
6y ago
No question about it. Mathematical notation is pure evil that should be cast into mount doom and then some. Mathematical notation makes Javascript operators look sane. There is barely a single operation in the last few maths papers I'
409.
▲
by
yodelshady
6y ago
FYI, I optimised the "python3" code by using numpy. Total runtime on a laptop CPU was 1 s. This is why all classes for scientists I've seen teach numpy. (Incidentally: total time to "optimise" and TEST is less than
410.
▲
by
yodelshady
6y ago
> read through Raspberry Pi SenseHat code to figure out that the drivers won’t load via SSH (you have to plug in an HDMI cable!); What? I can assure you this is not true. My R Pi has never touched an HDMI cable and runs a sense HAT just