HackerTrans
TopNewTrendsCommentsPastAskShowJobs

jihiggins

no profile record

comments

jihiggins
·2 tahun yang lalu·discuss
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 generally don't clone vanilla strings and instead pass references around.) iirc, it's still tricky to go the other way. I think if I was working with super C-FFI heavy code, I'd just end up using CString as my default for that code. Custom allocators would also help there, since you could just create the strings on the stack or whatever, but I don't remember if the string version of those is even finished in nightly yet.
jihiggins
·2 tahun yang lalu·discuss
[flagged]
jihiggins
·2 tahun yang lalu·discuss
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
jihiggins
·2 tahun yang lalu·discuss
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 difficult time existing in public spaces. Especially with the constant social pressure to act like Covid is over. You're not going to see people who are worried about Covid as often, because... they are worried about Covid.

This was the case early on, too, though! Covid is _much_ more likely to kill people in marginalized groups. And while marginalized deaths still show up statistically, they are going to be more hidden in the day to day.

New Covid variants still cause severe long-term effects. From what I’ve read, the consensus seems to be “we have no idea what all of the long-term consequences will be, but they’re looking worrisome.” Covid is not reported on as much now, but this information isn't from like, fringe sources or anything. There is less news about Covid now because nobody wants to think or read about Covid anymore.

e.g. a quick search gives me: https://www.cbc.ca/news/health/researchers-are-still-untangl...

So, while most people may have moved on, I think the RTO movement is still hostile and coercive. Honestly, imo most people having moved on is also largely due to coercive forces.
jihiggins
·2 tahun yang lalu·discuss
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.
jihiggins
·2 tahun yang lalu·discuss
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
jihiggins
·2 tahun yang lalu·discuss
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 result of the expression to running the expression and returning the unit type. if you accidentally do that and specified a non-unit-return-type in the function signature, the type checker tells you about it:

    error[E0308]: mismatched types
     --> src/main.rs:1:14
      |
    1 | fn test() -> i32 {
      |    ----      ^^^ expected `i32`, found `()`
      |    |
      |    implicitly returns `()` as its body has no tail or `return` expression
    2 |     5;
      |      - help: remove this semicolon to return this value
which is also pretty clear about the solution
jihiggins
·2 tahun yang lalu·discuss
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 things it enables though, but they're all going to be little ergonomics things that only seem worth it if you've used the language for awhile
jihiggins
·2 tahun yang lalu·discuss


    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?
jihiggins
·2 tahun yang lalu·discuss
is that a problem...? should a city not prioritize its citizens over random vacationers?
jihiggins
·2 tahun yang lalu·discuss
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)
jihiggins
·2 tahun yang lalu·discuss
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 the way that forth / stack langs are, but they're more commonly known and more commonly thought of as useful)

i think it'd also help a lot to have some gifs of the state machine operating on stuff

or maybe you could have something with "syntax" highlighting. a navigable timeline that changes the highlighting based on the current ignore lists and / or stack contents as you step through the code could be neat
jihiggins
·2 tahun yang lalu·discuss
"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 people about music. no matter how polite or reasonable someone is otherwise, there's like a 90% chance they have all these weird value judgements tied up in what people are listening to. it's incredibly tedious.
jihiggins
·2 tahun yang lalu·discuss
he has several albums that have been #1 on various billboard charts, if that's not mainstream then idk what is
jihiggins
·2 tahun yang lalu·discuss
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 essentially data tracing. this only works well with statically typed languages ime, though.

the indexing step is basically building this db in the background, it's just kept out of view / hidden unless you're building ide plugins or whatever.
jihiggins
·2 tahun yang lalu·discuss
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"

our current system is so broken and evil that i wonder if just getting rid of it entirely wouldn't actually be better and more ethical. even with the problem of releasing however many violent offenders back in the wild. "it might be even more beaurocratic" isn't really going to convince me of anything.

i dont know what the best alternative solution is, im a software engineer. i just know that the current solution is depraved and should be torn down and replaced.
jihiggins
·2 tahun yang lalu·discuss
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.
jihiggins
·2 tahun yang lalu·discuss
^ 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 american english? :)
jihiggins
·2 tahun yang lalu·discuss
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 switch sides and deliberately stop using it as much. now it's also an aesthetic preference

i think there's potentially a valid point about accessibility concerns, but blog posts, chatrooms, and internet comments are also very informal modes of discourse
jihiggins
·3 tahun yang lalu·discuss
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" or "bad" is sort of irrelevant