Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jihiggins
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
jihiggins
2y ago
For going from C to Rust, I think you'd just use CString::to_str instead of CString::to_string. I'm pretty sure this just calls std::transmute behind the scenes and doesn't cause an allocation. (In the same way that you gener
2.
▲
by
jihiggins
2y ago
imo, only if it's asked in bad faith. maybe that's just worded poorly, but e.g. "oh, thanks! what'd you do differently with this recipe?" or w/e
3.
▲
by
jihiggins
2y ago
Sorry, didn't see your reply till now. It's not literally everyone. Immunocompromised people who have managed to survive are often still afraid of catching Covid. How little most people care means that those who are worried have a
4.
▲
by
jihiggins
2y ago
RTO in and of itself is hostile. Especially when there is still a highly contagious disease running rampant. It might not _legally_ constitute a hostile work environment, but it is _literally_ hostile.
5.
▲
by
jihiggins
2y ago
i remember using the falstad sim constantly at university a decade ago. super helpful and so much more intuitive than any spice thing. cool to see that it's still around and used
6.
▲
by
jihiggins
2y ago
this is what those end up being, it's pretty straightforward? fn five() -> i32 { return 5; } fn five() -> i32 { 5; return (); } semicolon changes the expression from returning the res
7.
▲
by
jihiggins
2y ago
idk there are a lot of uses for it let dx = { let prev_x = x; x = get_x(); x - prev_x }; often, it's slightly better cpp style scoping blocks if nothing else? there are tons of other little QoL thin
8.
▲
by
jihiggins
2y ago
let x = { 3 }; let y = { 3; }; assert_eq!(x, 3); assert_eq!(y, ()); i think it'd also mean having to parse whitespace or newlines without something like that?
9.
▲
by
jihiggins
2y ago
is that a problem...? should a city not prioritize its citizens over random vacationers?
10.
▲
by
jihiggins
2y ago
it happens for me if i click start now and try to use mouse button back, but if i click the back button it works? (also latest chrome)
11.
▲
by
jihiggins
2y ago
i think you might lose people in the transition from the turing tape machine style bootstrapping to using full "words" for operations. it might help to compare it to something like regexes? (obviously they're not similar in t
12.
▲
by
jihiggins
2y ago
"insultingly dumb, i listen to metal" "check this out, this top 100 musician isn't mainstream so you probably haven't heard of them" this thread's turning into a decent example of why i hate talking to peo
13.
▲
by
jihiggins
2y ago
he has several albums that have been #1 on various billboard charts, if that's not mainstream then idk what is
14.
▲
by
jihiggins
3y ago
this is sort of what modern ides (e.g. jetbrains stuff) already do in the bg. when im working on stuff, i almost never navigate via text or the file explorer, i use things like "goto usages or definition" and navigate via what is
15.
▲
by
jihiggins
3y ago
it feels like there are two main categories of reaction to big societal issues: one starts with "this is unacceptable, so we will find an alternative," the other says "everything else sounds iffy so we shouldn't even try
16.
▲
by
jihiggins
3y ago
everything you listed is still better than giving it to the cops. "these random examples sound bad" isn't really a good argument for doing nothing.
17.
▲
by
jihiggins
3y ago
^ exactly the type of person i was talking about. how is this considered anything other than troll behaviour? also, there are no spelling mistakes in my comment. perhaps consider learning about how words are spelled in british english vs am
18.
▲
by
jihiggins
3y ago
i didn't even notice there was no capitalisation when i read the article idk about the author, but when i was younger, some people's pedantry and pettiness over grammar / capitalisation / more casual chatting got me to s
19.
▲
by
jihiggins
3y ago
the room is pretty well known, and is more memorable / has probably had a bigger impact on cinema than at least half of the entries in https://en.wikipedia.org/wiki/2003_in_film#Highest-grossing_... "good&quo
20.
▲
by
jihiggins
3y ago
code that uses coroutines is often a lot more straightforward than callbacks. with callbacks, it can also be non-trivial to even find out where / when some delegate was set. it's also often difficult to even navigate / read a
21.
▲
by
jihiggins
3y ago
most of the builds are incremental, but even incremental builds still take awhile when it's that massive (linking, modifying a header / template code, etc)
22.
▲
by
jihiggins
3y ago
it really depends on what type of game you're making
23.
▲
by
jihiggins
3y ago
more or less agree, although this issue isn't even really unique to C++. in practice it's still worth it imo, since debugging callback heavy stuff isn't exactly fun either
24.
▲
by
jihiggins
3y ago
obviously many teams do (i've seen incredibuild used pretty often.) that's not a cureall, though.
25.
▲
by
jihiggins
3y ago
it's partly because of the engine code. there's even bigger stuff, especially especially if it's a company with any legacy codebase that's 10-20 years old or whatever (e.g. EA / Frostbite.) one i worked on took hour
26.
▲
by
jihiggins
3y ago
every time rates come up on this website, people come out of the woodwork claiming "most" developers in every north american country make half a million or more a year. it's hard to not feel like this is just a few people usi
27.
▲
by
jihiggins
3y ago
where are you finding these rates at? i have rarely seen anything even passing $100/hr in canada, contract or not
28.
▲
by
jihiggins
3y ago
it ended up being a confluence of personal life stuff plus how pointless the jobs felt (especially after what a slog university was, i was basically already burnt out going into my first job.) i think boring meant adrenaline didn't kic
29.
▲
by
jihiggins
3y ago
i did that all throughout university and graduated with honors in an engineering program. it really depends on your coping strategies / personality / luck / etc. i definitely have adhd, it just took a few boring jobs for it t
30.
▲
by
jihiggins
3y ago
cigarette smoke also has a bunch of other stuff, including MAOIs. it's definitely not _just_ the nicotine. iirc, cigarettes also have additives to make the nicotine hit harder / cross the blood brain barrier faster, which probably
More ›