« first day (1842 days earlier)      last day (1867 days later) » 

07:55
FML
	for (com.keods.flux.events.Event fluxEvent: ((EventBagValue)entry.getValue()).events) {
		com.keods.process.ws.Event wsEvent = new com.keods.process.ws.Event();
I find nothing to shorten this...
@DenysSéguret Can't you remove the namespaces at least?
@PeterVaro I've not followed the last new things in Java but I'm afrraid I can't. If you want to disambiguate there's no intermediate
(I could directly import one of the two classes but then the code would be harder to read)
@DenysSéguret How come?
TBF I speak almost a dozen languages, but thankfully Java ain't one of them so my advice was just a general one..
In modern languages you don't have this problem
In Rust you can just do a use com::keods::process::ws and then write ws::Event in the code. But in java it's either the full path or just the name
Yeah, but Rust is a bad example -- it has literally all the bells and whistles we ever wanted from other languages to have or it just simply does it right. (Except GATs)
08:05
Even go lets you rename imports
The problem of java is that what you write is how the data are built behind.
08:17
oh I just remembered there's now a var in java. So it's slightly better
 
1 hour later…
09:34
posted on October 27, 2019 by Michael-F-Bryan

In my spare time I’m an emergency services volunteer, and one of the tasks our unit has is to run the radio network and keep track of what’s happening. This can be a pretty stressful job, especially when there’s lots of radio traffic, and it’s not unusual to miss words or entire transmissions. To help with a personal project that could make the job easier I’d like to implement a basic componen

posted on October 27, 2019 by Gregory Terzian

How to build a timer in Rust in five easy evolutionary steps.

posted on October 28, 2019 by Pascal Precht

In this article we'll take a closer look at Rust's Ownership model and how it manages memory.

posted on October 28, 2019 by Brian Carrigan

The personal blog of Brian Carrigan, software and electronics engineer.

posted on October 29, 2019 by The Rust Core Team

We are accepting ideas about almost anything having to do with Rust: language features, tooling needs, community programs, ecosystem needs... if it's related to Rust, we want to hear about it. One big question for this year: will there be a Rust 2021 edition? If so, 2020 would be the year to do a lot of associated work and plan the details. What would the edition's theme be?

posted on October 30, 2019 by u/joshlf_

For the 2021 edition of Rust, I'd like to see private enum variants.

posted on October 30, 2019 by u/0b_0101_001_1010

The 2019 goals for the Rust project were to finish some old language and library features that have had a lot of design but have not been pushed through the finish line.

posted on October 30, 2019 by Commenters on Reddit

Comments on the call for blog posts in 2020 on Reddit, some of which include 2020 wishes.

10:17
Can we close this one please... stackoverflow.com/questions/58583031/…
Yes
might be a case of allocator change but without more information it's impossible to tell
@DenysSéguret Did the default allocator change in 1.38?
I don't remember the whole story. And OP doesn't remember the version he had before update
1.32
He has said he tried in 1.36 and it's faster than 1.38
I don't know why he didn't try 1.37
even if he did, he needs to profile and provide some code
 
3 hours later…
14:10
> With included debug info, my binary becomes 400 MB about.
damn
that's a big boy
But in fact I just looked and broot / debug is already 45 MB, so 400 MB doesn't seem so big
 
2 hours later…
15:49
Can be re-opened now I think: stackoverflow.com/questions/58583031/…
voted
Did you try to reproduce ?
@DenysSéguret Yep
It's 2.7s in 1.36 and 1.37, but 5.6s in 1.38
You should post that in comment
I thought I did
I expect it is something to do with how data is moved inside the vec, when items are deleted
If the allocator changed, it's also enough to explain the problem.
15:56
It's code to reproduce an issue so it's not quite fair, but that particular code could be written better.
@DenysSéguret How so?
It only allocates once
and deallocates once
oh, you're right
my_vec = (0..10_000).collect();
is in the loop
it creates new vecs in a loop, yes
But still.. I would expect a change like that to be in the release notes
I made the error to try cargo run... not in debug then... my disk makes a lot of noise ^^
@PeterHall It really looks like a corner case, with an obvious reuse memory optimization but you can't always optimize for all cases
Assembly is really different:

* https://rust.godbolt.org/z/VHyzuC
* https://rust.godbolt.org/z/Vg_r_Y
At a glance, it's 770 lines of assembly vs 544
16:12
I've reopened it
@PeterHall You voted to close this question 2 days ago
@Stargateur which question?
@PeterHall click on the arrow of my message
@Stargateur I voted to re-open this one today because it was changed enough that is now answerable
oh you ask to close than to open xd
16:19
@Stargateur Yes. It was previously unanswerable, but OP has improved it

« first day (1842 days earlier)      last day (1867 days later) »