Viewing profile — ohr
ohr
HN member- Joined
- Wed, Aug 05, 2020, 6:26 AM UTC
- HN karma
- 45
- Public activity
- 25 items
- HN profile
- View on Hacker News ↗
About ohr
No profile information was provided.
Recent public activity
- story
- story
-
comment
Comment #46431459
(Author here) yes! I also wrote about this (specifically in Python->Rust FFI) in another article: https://ohadravid.github.io/posts/2023-03-rusty-python/#v2--...
-
comment
Comment #46430673
(Author here) thanks! Even as an experienced Rust developer, this is a lot of syntax which is part of what makes it archaic I think. As usual with Rust most of it is due to inheren…
-
comment
Comment #44944047
But if you let it run the tests, it’ll just do that on its own (or delete the tests, but usually it won’t), which is very useful and seems to match the article’s sentiment.
-
comment
Comment #44083081
Used the Save Page WE Chrome extension to capture the html (after cleaning up with inspect element + delete), and added a bit of custom JavaScript to scroll everything to the right…
-
comment
Comment #44062243
(Author here) I'm a huge fan of the "How to speed up the Rust compiler" series! I was hoping to capture the same feeling :)
-
comment
Comment #44061586
I think that since the 1.5% one is only for aarch64 it's a bit unfair to claim the full number, more like 1/2 if you consider arm/x86 to be the majority of the (future) deployments…
-
comment
Comment #44061353
Thanks! Would be interesting to see if Rust/LLVM folks can get the compiler to apply this optimization whenever possible, as Rust can be much more accurate w.r.t memory initializat…
-
comment
Comment #43997114
(Author here) Thanks! That's useful feedback. I also agree - the final article isn't skim-friendly enough, which drives away some readers.
-
comment
Comment #43996183
In WMI, the fields are lazy loaded when you do a `*` query, but the real crate [does use the same Serde reflection tricks]( https://github.com/ohadravid/wmi-rs/blob/main/src/query.…
-
comment
Comment #43996159
> don't you have to get your version's struct data member type correct No, since Serde will happyly fill a `u64` field with any other `u{8,16,32}` value, and even with signed types…
-
comment
Comment #43995992
That's understandable, but I think it depends on how many different structs like this you have and how many fields you need to work with (for our usecase, we had tens of structs wi…
-
comment
Comment #43995796
(Author here) I needed to do a bit of "reflection" in a Rust crate but didn't want to implement a procedural macro, so I used Serde (which is a (de)serialization crate) instead. Th…
-
comment
Comment #43736368
Thanks, I hate it! Jk, but would you consider this a good solution overall?
- story
-
comment
Comment #41468561
well yes! also calling an answer which mentions c++ as well “off-topic”, it’s not like I wrote a haiku about marmalade. And why insist on deleting if people found it useful? It’s l…
-
comment
Comment #41462943
The magic for HN! Added this link to the post as well, thanks!
-
comment
Comment #41462940
(author here): on the contrary, my point is that I was wrong(ish), and I often think about that before I get angry at other people on the internet. The other point is that there's …
-
comment
Comment #41457201
author here: but do you find the article helpful in making you less angry? also: > I'd be angry all the time if I was coding C or C++ or C/.C++ or C-- or anything to do with C lol
- story
-
comment
Comment #35385664
Author here: actually, in this analogy (as this is just a demo library), the polygons change each time so we couldn't use this type of optimization (at least not in a straightforwa…
-
comment
Comment #35385481
Author here: For the original library we did all the numpy tricks we could think of, but we really needed to do this type of exhaustive search for some of the data. If someone want…
-
comment
Comment #35385367
Author here: I agree, that's a great perf advice (esp. when you can restructure your code). I couldn't get into a this in the article (would be too long), but this is a great point…
- story