dtgreene: Here is a two-part one:
1. Re-implement the gets() function from the C standard library in Rust. Your implementation must be callable from C using the usual prototype, and must be as secure as the C version.
2. In Rust, write a safe wrapper for the C gets() function. When called from safe rust, it must not be possible to violate menory safety. You must actually use the gets() function to read the input; no using other functions to do so.
Nah. I'm not gonna go and learn Rust or look into C (which I haven't touched for like 20 years) just to do a puzzle. Wishbone did one that could be solved in any language. It was like an awesome quest, with multiple stages that were all distinct.
zlaywal: Yo Alaric, I once got one of your Goldmine key and must say that I simply enjoyed it.
Glad you liked it! =)
kohlrak: Believe it or not& and | as bitwise ops actually exist in javascript. You can even use ^ for XOR.
Yea, JS does have bitwise but it's generally very much recommended to avoid using them.
Heh, so I just asked around the office, and none of the other senior devs have actually ever found a problem, to which the solution would be using bitwise in JS. Some of us used them to show off and be clever or to troll applicants during interviews. =) I guess this is because of what JS is currently used for, that being frontend and backend, but never anything low level where you could actually benefit from the speed increase. Oh and none of the mid and junior devs actually knew what bitwise were.