Hacker Newsnew | past | comments | ask | show | jobs | submit | maowtm's commentslogin

Transistors aren't free (as in power consumptions, thermal etc), and wasting them on implementing 1 byte granularity TLBs would probably be a hard sell, even if assuming everything can indeed be done in parallel.


what


An article which I have been ~procrastinating~ working on over the past few months and finally finished!

It is quite long, but I've been told it's an interesting read for some audiences. Let me know what you think :)


A very good read, thanks for taking the time to put pen to paper and sharing the little useful scripts and tricks. There's a world of heavy-handed hacking out there to use. I used to build hundreds of patched kernels or glibcs to simulate complex systems behaviour (failing read()/write(), incomplete fsync, syscalls in general or the network stack erroring out in all possible ways...) and scenarios of those. Happy to see this explained so simply.


Nice approach - while reading it, I was mentally completing some of your sentences thinking yeah, this is an elegant hack. :)


Thanks a lot :)


Not the UK at least, as someone who has done a completely in-country switch from student to skilled worker. In fact you are not allowed to leave the country when your application is in progress (leaving would cancel it).


> Didn't realize I needed to put this together for you,


You can also do that with certificate transparency logs though.


But how...

Isn't bank cards designed to be non-cloneable (with crypto chips)?


Rust works pretty well with C, and you could use cbindgen[0] to generate c headers for rust functions marked as extern and it would work when linked together. However, rustls doesn't seems to be providing any such function. Most of its API is rust-based, using stuff that isn't directly available in C (Option, Vec, etc.). So you would have to write at least some rust code that calls the library, and have your C code calls the rust code that you write.

On the flip side, calling C code in rust is pretty easy - you have the entire libc available, and rust-bindgen[1] generate bindings for you, which in my experience works very well. So, you may also consider writing your program in rust… If that's possible.

  [0]: https://github.com/eqrion/cbindgen
  [1]: https://github.com/rust-lang/rust-bindgen


THANK YOU!!!


Useful tool, liked.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: