« first day (2241 days earlier)      last day (1233 days later) » 

6:32 AM
@Shepmaster Took a glance at the interview. The way I see it, Rust already had an interesting position in bioinformatics for a while. It seems almost natural to be following into similar subjects.
One still won't be seeing Rust as a common tool for machine learning other than for deploying a curated model.
 
 
2 hours later…
8:17 AM
Has anyone here actually written and deployed a web server in Rust?
What tools/libraries did you use?
 
8:46 AM
> Rust doesn't have the expressiveness of Python (even when you put expressiveness in quotes), it's not even close.
That seems quite harsh?
 
It seems like the person doesn't know what they're talking about
 
It’s not Python, but if one were to compare it to cases where C/C++ are now used?
 
9:09 AM
@EnnMichael I don’t know either to be honest, but it seems very dismissive.
> Fetching required packages in this way is very convenient, something one notices rather soon when writing Rust applications.
I can imagine there to be value in just adding rayon or other crates that might suit their needs than to use the dependency management in C/C++?
 
> dependency management in C/C++
Ha
There is no such thing
CMake and Conan are just imposters pretending to "manage" some "dependencies"
 
9:25 AM
@EnnMichael I’ve heard that more than once from C/C++ developers.
> I work in HCI research and have never played with/ heard of Rust being used
> Anyways, will be using Rust for a small side project
> … deadline in 2 weeks
Hmmm…
 
@Jason I answered there
Depends if they're lucky : some problems are easy to do in Rust
 
9:56 AM
@DenysSéguret I see :-) Yes, that’s been the case for me. I haven’t used Rust for complex things yet, so it’s smooth sailing. I wouldn’t touch any new language though if there’s a two week deadline.
 
10:11 AM
you know this is going to be a nice morning when you start by:
  = note: /home/wolf/MEP/blender/target/release/deps/blender-8bdb7d307af72be8.blender.508fl3dr-cgu.1.rcgu.o: In function `openssl::ssl::bio::get_ref':
          /home/wolf/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.10.30/src/ssl/bio.rs:65: undefined reference to `BIO_get_data'
          /home/wolf/MEP/blender/target/release/deps/blender-8bdb7d307af72be8.blender.508fl3dr-cgu.15.rcgu.o: In function `openssl::ssl::bio::state':
          /home/wolf/.cargo/registry/src/github.com-1ecc6299db9ec823/openssl-0.10.30/src/ssl/bio.rs:84: undefined reference to `BIO_get_data'
and more
obviously ubuntu
 
@Stargateur I just decided to run yay -Syu here, looks like things might explode on my end :p
 
archlinux is so far superior
 
Looks like I woke up from a year's worth of sleep.
 
pkg-config save me
 
@Stargateur I switched at the time due to something on Windows causing blue screens. It still does. I can boot into Windows and a couple of a hours into it, I'll get a blue screen. I haven't had any on Linux so far, it's incredibly strange.
 
 
1 hour later…
11:27 AM
Found an outdated comment, already flagged it for removal.
Minor nit: ! isn't a type; it's something you can use instead of a return type. — DK. Mar 28 '16 at 0:52
 
@E_net4ischilling play.rust-lang.org/… I remember that one :p
 
@Jason Such fun.
I still like this one a bit more.
 
@E_net4ischilling Haha, ah, that's great
fn main() {
    let x = line!();

    let y = line!();

    println!("{} + {} = 6", x, y);
}
I didn't know about that macro
 
11:43 AM
everything should start at 0
 
@Stargateur You start with 0$. Enjoy your hard mode SimCity 2000.
 
@E_net4ischilling with economic rule you more start with -100000
 
@Stargateur Not if you're good enough. :)
 
everything that count should start at 0
 
Tell that to Count von Count. :>
 
12:03 PM
@E_net4ischilling Haha, ah, those games were great.
 
@E_net4ischilling Hahaha
 
12:32 PM
split_once() looks nice!
 
@Jason I'm not sure I see the point. You can already do it without much fuss with find and spit_at
 
@DenysSéguret says the person adding helper method to Option
 
@DenysSéguret Yes, I've used s.find("...") and .split_at(index) before. It just looks like a nice-to-have. I was watching a stream and someone mentioned (bool).then() might be happening in 1.50? Ah, I get way too excited about these releases and features :-)
 
Split once is nice because it can use the type system a bit more.
One less panic / runtime check
 
@Shepmaster that helper function lets you remove an unsafe in some (rare) cases
 
12:42 PM
Same with split once :-)
 
how so ?
oh I get it
because of unsafe unicode positions
 
Although not written that way right now it looks like
 
The unsafe is hidden but I get how there might be a useless check in split_at
 
 
2 hours later…
2:22 PM
:|
 
@E_net4ischilling what you facing about
 
The usual, I guess.
 
@E_net4ischilling "downvote and move on" :-D
 
 
1 hour later…
3:41 PM
I wish Dwarf Fortress' code was in Rust and open source so I could learn how it's made
There is this open source game that resembles it so I guess it will have to do :) github.com/thebracket/noxfutura
 
@FélixGagnon-Grenier Exciting to see someone pick up a project of this scale in C++ and port it to Rust.
 
4:00 PM
very
it also runs, I didn't have any shenanigans to do
 
Or you already did the shenanigans and just don't know it ;-)
 
 
2 hours later…
6:02 PM
@trentcl rrrrrr matey
 
haha, I'm glad I can make one-character edits now
 
finally ?
 
Man I thought that the website would burn down if they allowed that
 
@EnnMichael just get to 3k rep.
 
6:19 PM
Ezpz
 
It'd be easier if those elite SO users stopped marking things as duplicates.
 
7:07 PM
I wish I was witty and able to come up with a joke encompassing : the existing vision of such elite SO users by some newcomers; how much of a help those are actually from the viewpoint of some other users; as well as a slight funny snark at @Shepmaster for identifying as elite ;)
 
I'm not one of the elite duplicate markers. Just a jerk duplicate marker.
 
:O
if you are a jerk, this bodes really bad for the rest of us...
 
Multiple reddit posts have been made about how much of a jerk I am, so I think I have S C I E N C E backing up that assertion.
 
so er, as a french speaker, I think I know what "this bodes really bad [...]" means, but some english speaker please humour me: is it even something that exists, is it commonly used or definitely the mark of a dork?
 
@Shepmaster boo
 
7:10 PM
@Shepmaster I bow to your science ;P
 
@FélixGagnon-Grenier I don't think I'd say it's common or extremely rare
maybe like... 30% (if that makes any sense)
My immediate association is more like... a horror movie / story
 
@FélixGagnon-Grenier bode ill for is probably the most common version of that idiom
 
@Stargateur accessibility ads are getting creative
@trentcl huh, didn't think it had a special association with ill :)
that dinosaurs commentary on software development - even life? - is hilariously on point
 
7:46 PM
@FélixGagnon-Grenier It doesn't really; at least, it's not a fossil like the examples on that page. It's fine to swap out "ill" for other things, but "ill" is probably the most usual word you will see in that position.
"bodes really bad" sounds ever so slightly odd to me, but I think it's because "bodes" is high register and "really bad" is low register. There's a contrast between the words but it's not that the construction is wrong
 
agree with the odd pairing of "bodes really bad"
but I don't know fancy things like "high and low register" :-)
 
8:41 PM
I once read a translation of Crime and Punishment that was mostly written in pretty formal, Victorian English throughout, but the characters were always described as "smashed" instead of "drunk"
 
@FélixGagnon-Grenier a student video from arte... yeah AD xd
 
9:01 PM
I always feel a bit sus when I answer a "how do I do X" question with "don't. do Y instead" and it outscores / gets accepted over the direct answer to the question.
I dunno that is a rhetorical question
As E_NET$ says: DAMO
 
@Shepmaster I add more flag
 
 
1 hour later…
10:14 PM
Hum, this is interesting. I had, and honestly still don't really know what loop vectorization is, but I wondered what the difference in compiled output would be between:
pub fn is_in_range(min: usize, max: usize, value: usize) -> bool {
    (min..=max).contains(&value)
}
And...
pub fn is_in_range(min: usize, max: usize, value: usize) -> bool {
    value >= min && value <= max
}
But that was with -C opt-level=z
Using opt-level=3 (all optimizations) turns the former function into the exact same thing as the latter! I'm impressed!
 
10:30 PM
> Never underestimate the things a compiler can (and will) do to overwhelm you.
That still seems to hold :-)
 
for french people:
 
@Jason Unfortunately that also means it is really, really hard (I even dare to say impossible) to reason about the performance of one's code. It truly depends on the compiler (version), on the platform, on the optimisation-level, etc. One can only be sure that their implementation is the best compared to alternatives if they actually look at the instructions the code have been compiled down to. Which makes performance optimisations an insanely tedious process!
 
@Jason why do you think I said the tree thing in the other question will be less effective that a simple vec or hashmap specially the vec
 
@PeterVaro Hum, yeah, I thought "Does that mean it runs slow in debug mode without all these optimizations?"
"Slow" in the context of these two functions
@Stargateur Is that thread still going? :p
@Stargateur it would be faster, no? The data structure the user needs, with O(log n), should be able to:

* Lookup element by index
* Lookup index by element
* Insert element at index
 

« first day (2241 days earlier)      last day (1233 days later) »