Viewing profile — mcountryman
mcountryman
HN member- Joined
- Mon, Jul 09, 2018, 11:49 AM UTC
- HN karma
- 63
- Public activity
- 17 items
- HN profile
- View on Hacker News ↗
About mcountryman
No profile information was provided.
Recent public activity
-
comment
Comment #26439601
I had to picture someone opening a window and throwing it into orbit haha
-
comment
Comment #25958775
Not a financial expert however, Citadel is a market maker rather than just a hedge fund like Melvin. Money is lost when a retail investor holds onto their shares not just when the …
-
comment
Comment #25283266
I'm a little short on time so I didn't read through all of it but, comptime generics sounds similar to how rust compiles generics and comptime parameters are similar to const fns a…
-
comment
Comment #25281912
I completely forgot stdout handle is in the PEB! Thanks! After learning how the windows x64 syscall calling convention works I got it working on win10. https://i.imgur.com/ErHU7Kr.…
-
comment
Comment #25281443
Very well optimized inlined functions? I didn't actually check the zig std source. I was referring to what I was seeing in radare2 :)
-
comment
Comment #25276150
Yeah my choice of words wasn't great. It seams as if the zig std acts as a macro rather than a wrapper. That could just be the aggressive optimization though
-
comment
Comment #25269885
@Edit2 I saw that, and that's pretty cool in regards to how the zig std is a wrapper rather than a rewrite. Although, if we were optimizing for size in this case it might be more o…
-
comment
Comment #25269838
Between a 40b strcmp method (If I had/if it was more widely supported I could use sse4.2 strcmp) and ~74b of resolving said exports a couple syscalls sounds pretty nice provided th…
-
comment
Comment #25269752
I thought of that but couldn't figure out how to get the syscalls for my system and the assembly around it. Being on win10, kernel32 links to api-console-... and I haven't been abl…
-
comment
Comment #25266250
In order to get that to 1Kb you would probably have to drop the `.idata` section and resolve syscalls from the PEB like I did.
-
comment
Comment #25266114
Ah, yeah, I wasn't trying to shrug off the usefulness of zig, sorry. I think when it comes to compile size zig does it a bit better due to it's smaller std although, when compiling…
-
comment
Comment #25265493
Just for fun, the compiled rust exe has 480 non-zero bytes, the zig exe had 512 bytes.
-
comment
Comment #25265084
I couldn't get it working and was familiar with the `llvm_asm!` syntax. Although, I may have to go back and switch it around again.
-
comment
Comment #25265048
I linked these guys here https://github.com/pts/pts-tinype . They managed to do something similar with the PE headers, and I might have to try that next although I'm doubtful win64…
-
comment
Comment #25258515
This is my attempt at making the smallest exe with rust for windows using the msvc toolchain. If y'all have any pointers how to get it smaller let me know :)
- story
-
comment
Comment #17578061
From 200+ comments "cancel" was listed 4 times in that reddit thread and "return" was listed 5 times. Some repeats in there.