« first day (2614 days earlier)      last day (858 days later) » 

6:09 AM
My message was bad. It was insulting and I don't know how I should have written that.
@user4815162342 I know my message can be read as insulting or way too condescending, I'm sorry for that. I still think an overview of the language is necessary before asking SO. Of course everybody can miss something and a bad question which should be closed doesn't mean its author is a bad programmer, just that it's a bad question. — Denys Séguret 10 secs ago
I'll maybe remove it as too chatty
 
 
3 hours later…
9:41 AM
Pff.
Yeah, pro tip #1: use real close reasons; and #2: if it is that basic, provide a dupe target an/or downvote and move on.
This ought to improve everyone's experience.
 
10:09 AM
From time to time, I fall on this advice on the Deref page:
> Because of this, Deref should only be implemented for smart pointers to avoid confusion
And I refrain myself from doing something stupid just in time
(there's almost always a much cleaner solution)
 
I often fall into this trap before
why toowned is in alloc - -
 
This "what is windows system encoding ?" question is valid but I'm pretty sure it's a XY
 
question show no effort
 
 
2 hours later…
12:28 PM
    Checking stream v0.1.0 (C:\Users\Star\git\binator\stream)
thread 'rustc' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/f1edd0429582dd29cccacaf50fd134b05593bd9c\compiler\rust
c_hir\src\definitions.rs:452:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: github.com/rust-lang/rust/issues/…
it's close to impossible to make a mcve about that I don't even know myself what is the problem
nightly doesn't panic...
I'm doom
at least cargo clean fix it
I'm saved
naming request: StreamVec or VecStream ?
 
12:49 PM
@Stargateur Depends on what it is...
 
it's a stream that use a vector as backend
stream being the input of my parsing crates
purpose, make rhit happy
rhit have anoying requierement but that nice that force me to think about user friendly thing
 
Following the ImplInterface naming convention, that would be VecStream.
 
Yes
or just remove the implementation from the name, if it's not strictly necessary
 
thx
@DenysSéguret there are several Stream version
 
> rhit have anoying requierement
Does it ?
 
1:03 PM
&[T] &str "something that grow by reading a reader" "something that doesn't grow and just sahre a common Vec aka VecStream"
 
Rhit is super extra simple and its parsing looks very basic, it just needs speeed
 
well for start I don't see why you need speed
do you use rayon for parsing ?
secondly from_str is anoying cause no GaTs
and no GaTs == complicate with lifetime return
 
@Stargateur Rhit takes more than one second to read my logs. I don't want a program taking more than one second
 
well log from nginx are for human, maybe there is another log file that are mean to be read for machine, that will be more more easy to parse
human file format == slow to parse
anyway the requirement "speed" is very anoying ^^
 
Making things fast is fun
 
1:07 PM
and hard
clean code and be fast is not always easy
 
Rust is the ideal language for combining both, though
 
1:46 PM
GATs is with capital A as well.
 
2:09 PM
Yesterday, this well know guy said
and I answered. And since yesterday, I receive irate answers from that other guy who's sure he can write flawless c++... he never stops...
 
pfhfhfhhhf
> flawless C++
PFPFHFHPFHFFH
 
I think he takes Rust as an insult to his abilities
 
2:40 PM
@DenysSéguret It is still not official, is it? It's still just a fork / side-project, that has a long way ahead of itself before it can be considered ready to be merged back and an even longer way before the Linux project accepts it, no?
(As in, I couldn't find anything that says Rust will definitely become the second language of the kernel)
 
It will probably be the second language, but only accepted in some minor drivers. And we're not even there yet
 
That is exactly my understanding as well.
 
But Miguel de Icaza was probably pushing for Rust everywhere, not just in linux
 
Until it is happening, such tweets are only good as clickbait ones.
(And they will only stir things up, likely in a bad way.)
 
Not really IMO. It's easier to consider Rust for most other places where people today consider Rust. The kernel is special for many reasons, the most obvious ones being that it covers so many platforms and that it's an existing codebase, not a new one
 
2:43 PM
Sure, but how does that contradict what I said?
 
And I'm also tired by people saying they don't need a safe language because they write games. Today games are horribly buggy and nobody knows why they have some slowdowns. It's painful to game because of the quality of games
I remember an inverview of the project leader when CivVI was just out, when he explained one of his best decision was removing the safeties so that all threads could read and write everywhere because he realized collisions were rare, and that it made the game fantastically fast. CivVI when just out was an horrible mess of bugs barely running for an hour and it took them years to fix that
 
I really don't know about that 'cause I'm not playing any games -- but as far as I understand, the core issue (i.e. time-pressure, bad management, horrible dev culture, etc.) won't be resolved by Rust, it will only be reduced a bit if they won't deliberately cut corners and opt into unsafe features because of the previously mentioned problems.
For instance, the kernel I'm working on right now has a "contractual design" which actually allows "by design" not to have data races. So I thought, in my current prototype, I will do something crazy, and introduce my own "thread safe" non-locking reference, which is as fast as it gets without the overhead of any guards and reference counters and whatnot. What truly shocked me is how easy it was to do this in Rust.
I literally had to do a single unsafe implementation and then I was off the hook. Sure, sure, if anything goes wrong, I know immediately where to look -- the unsafe implementation -- but still, it was way too easy.
Long story short, I think they (i.e. game devs coming from C++, somehow forced to use Rust) could easily do something like this if they are under pressure by the management -- because it is easy to do.
 
It still seems easier in Rust to have some not overly expensive rules allowing you to write something safer than what you can do in C++. I never feel the need to cut those specific corners using unsafe
(and I'm more speed obsessed than most)
 
Oh yeah. And I haven't even decided whether I will reveal my prototype to others -- because what I just did is going so fundamentally against Rust's philosophy (if such a thing exists).
My story only tried to demonstrate, that languages / tooling / technology in general, cannot fix what is broken elsewhere (i.e. cultural, managerial, etc. issues)
 
3:26 PM
The current mess with log4j remembers us that memory safety doesn't protect you from terminally stupid
 
Aye, terminally stupid is not part of Rust's security-wise guarantees.
 
@Jason what fantastic news! congratulations!
 
The log4j vulnerability is rather serious all right.
 
It's serious and stunning, seriously. It's hard to imagine anybody thinking that it's ok to execute logged strings or that a logged string can be considered vetted.
 
3:57 PM
I am a bit more surprised that even arguments to log lines using templates can be subjected to lookup replacements.
 
by calling a supplied http server to download code to load and execute...
 
RCE all right.
 
I mean... this feels like the first versions of Excel on last century... when people didn't even think hacks existed
 
If I have logger.log("Query: {}", query);, I don't expect query to be subjected to any lookup replacements at all, regardless of whether it may enable RCE.
 
Nobody expected it, I guess
Especially in the serious corporate world targeted by log4j
 
4:18 PM
I still haven't read why that lookup was useful to someone
 
It's a terrible idea indeed.
Worse, it cannot be disabled in some versions.
 
 
2 hours later…
5:53 PM
The question I just answered... this is literally something I had to figure less than 10 minutes ago for myself (I'm evaluating yew at the moment)
The trunk and yew documentations are hard to decipher on this topic
 
I mean, it's also a bit of common sense once you understand how Trunk works.
 
6:08 PM
/me lacks common sense
 
Your answer is spot on though.
I just felt like emphasizing the nature of Trunk a little bit, and I'm seeking to inflate my answer count too.
 
Oh you answered too
I see it just now
@E_net4thecurator you don't have the gold yet ?
 
I have enough score, just not enough answers.
 
6:13 PM
I have neither, and I'm very far
 
6:37 PM
Did you look at sycamore ?
 
@DenysSéguret damm he can't read a language he don't know how surprising !
@DenysSéguret deosn't it talk to you or to himself ?
 
7:13 PM
@Stargateur He seems to be answering other and I'm in copy
but he stopped and I clearly won't wake him up, he thinks people having a different opinion on this topic are an "echo chamber"
And I can understand how having people around repeating that what you do is outdated can be painful ^^
 
leave twitter anyway
almost only trash people
 
8:02 PM
@FélixAdriyelGagnon-Grenier Thank you @FélixAdriyelGagnon-Grenier! My Rust for Rustaceans book also seems to be on its way. I just paid its import tax, so I'm hoping it'll be here next week :-)
 
8:39 PM
@DenysSéguret too much smiley
 

« first day (2614 days earlier)      last day (858 days later) »