« first day (2060 days earlier)      last day (1411 days later) » 

7:08 AM
wonderful rust analyser doesn't have a cargo install
there no instruction for atom
even less instruction for windows
 
morning
 
7:38 AM
\o
 
@E_net4isdownhausted sup?
 
@E_net4isdownhausted not too bad, yourself?
 
Readying myself for another day of work. And meetings.
 
@E_net4isdownhausted g'luck
 
 
1 hour later…
9:10 AM
@E_net4isdownhausted You got yourself a job! Congratulations :)
 
@E_net4isdownhausted woot!
 
10:02 AM
... I don't know why I'm getting this kind of reception. :)
 
10:32 AM
same
maybe because there is no job in portugal
maybe because you are a scientific
maybe because of the actual crisis
maybe because he didn't know you have a job
but why "yourself"
so many question
 
 
2 hours later…
12:23 PM
@E_net4isdownhausted Does that also mean you finished your phd?
 
yeah
I remember now
Jul 25 '19 at 12:25, by E_net4
I am PhD.
 
And it was almost a year ago, man.
I am a Senior Software Engineer™ since October.
4
And these ain't newz, let's not star that.
Please use stars for something actually relevant. Like GATs.
2
 
I won't be forced to not star an engineer who becomes senior in 3 months.
 
well, E_net4 have my approval, probably one of the rarest PhD to actually know how to code
 
12:42 PM
@Stargateur I know the fad.
 
1:03 PM
Who decided it was better to call it rev() rather than the obvious reverse() ? Who uses it so often that those 4 letters are painful to type and read ?
 
@DenysSéguret Perhaps for the same reason that we have iter() instead of iterator().
No hard guidelines exist here, I'm afraid.
 
At least iter() is used very frequently
 
1:26 PM
rust analiser is must faster than RLS, but... use a lot of ressource
@DenysSéguret rust doc need attribute like "key word" :p
 
2:19 PM
@E_net4isdownhausted Now comes the hard part: where to go from there? With my SSE™ friends we frequently have this chat: there's one more tier you can have (but that's an uncommon one and available only at a few companies) called 'Principal Software Engineer'. And that's that. Everything else, a lead role even as a CTO you have to deal with people and management much more often than actually writing and designing code -- which is after all what you (at least me) love doing and the main reason why we
are into this game in the first place.
 
@PeterVaro I feel no need to be concerned about my career for now.
 
At my company (let me just dox myself) "Principal Engineer" can be promoted to "Senior Principal Engineer" and the next steps are "Staff Engineer" and "Senior Staff Engineer"
which is just baffling to me because it seems backwards
 
@trentcl But Staff and Senior Staff engineers are the lead roles you have there?
(Never heard of a Senior Principal Engineer title before.. o.O)
 
@PeterVaro I was a kind of CTO, overlooking the 15 programmers of a company of 30 engineers which I was a cofounder of. It can be interesting but it eats your life. I decided to downgrade, left Paris and my responsibilities. I'm happier now. A career doesn't have to be just a run towards your level of incompetence
 
@PeterVaro I think the next level up is Director, but yes, Senior Staff is the highest level you can get through "normal" channels
 
2:23 PM
@DenysSéguret <3 (But also, that's my case in point)
 
@PeterVaro It seems to be a popular rank in big American companies
 
@trentcl Right, but those are also more about management than actual engineer, no?
@DenysSéguret Interesting. Here, in the UK, I've never seen a job description for this title before, nor I worked for a company that has it.
(That doesn't mean it doesn't exist, I believe it is just rare..)
 
I'm not aware of the exact order of ranks but I frequently see people on twitter brag that they just got promoted to something like staff engineer or principal engineer in companies like google. It looks very organized and salaries seem to be directly linked to those ranks
 
@PeterVaro that's the theory, I'm not sure how much it is that way in practice.
 
Well, the biggest problem with not having enough steps forward is that basically engineers are forced to jump between companies, if they would like to have their salaries increased significantly.
 
2:28 PM
It doesn't help that upper management has to rename the "tiers" and restructure the titles every 5-10 years
 
aye
 
I don't remember what the lower levels are called because they were something different when I was at that level
 
You mean engineering?
 
indeed
 
In most companies I was part of (and a cofounder usually) there was no real title. They were made up on the fly depending on the people we were speaking to. This is easier.
 
2:29 PM
Apprentice, Junior, (sometimes it exists:) Medior, Senior, Principal, (now I know this exists:) Senior Principal
 
^ Chief Code Wizard
 
@Stargateur never thought of it that way LOL
 
This is a cool staff of engineering. Wizardry +3
(and I recognize the Gandalf one, with the pipe)
 
@DenysSéguret I will never work in Paris
 
2:30 PM
Tests! You shall not pass!
 
@Stargateur I left Paris at the same time
 
@DenysSéguret a good home somewhere no too far not too close of civilisation like a small village not too far from a big city, and of course a good internet connection
 
Lyon is a big village. But you don't choose everything in life, especially if you don't live alone...
 
@Stargateur That is the description of my dream home as well! Somewhere close to the mountains, at a rural location.. in the highlands (Scotland) or even in Norway..
 
@PeterVaro until you get married to a teacher and she has to be near her school ^^
 
2:34 PM
@DenysSéguret well, I'm lucky enough to not require to be at a specific place for my work :p
 
@DenysSéguret That ain't going to happen, mate! I'm as happy as one can ever be alone!
(For quite some time now actually..)
 
be alone != be single :p
 
@Stargateur in solitude, true, not being lonely
 
and here the moment in the project where I decide to use generated code in build.rs and I already know I'm not gonna like that in the long run
 
what kind of generated code ?
This smells bad
 
2:38 PM
but in the same time I don't want to keep update a list of telephone number country calling codes
 
does it have to be in build.rs ? Why not an associated program ?
 
@DenysSéguret what difference ?
the point is this list won't be create by me
 
build.rs is ran everytime, isn't it ?
 
I give them a format and I will transform it to serie of match in rust
@DenysSéguret yes
I could just generated it once but
that make me to update at hand
but I wonder do I keep the idea to have a commun json
or do I force them to update the rust version :p
~=~
Well, for now I will wait the json, I will transform it to rust and I will try to tell them to create a tocket if there is an error or an update in the code telephone number
perfect
 
 
1 hour later…
3:55 PM
@DenysSéguret exactly :p
but my idea is to create a tree
one digit by branch
example not complete:
{
  "3": {
    "0": "Grèce",
    "3": "France",
    "5": {
      "0": "Gilbraltar"
    }
  }
}
so I can do match x.next() {
 3 => match x.next {
    0 => "grece"
  }
}
etc
so instead of match a list of +4000 code number
I only match 9 then 9 then 9 then 9
depend of case cause some country have 2 number some have 3 some have 4 some have 9....
so complicity drop drop from O(n) to O(9*abc)
 
4:12 PM
@Stargateur for such a small data set, the O(n) version could well be faster in practice. Especially if it's in a vector. I would benchmark before making it too complex
the trie has a lot of indirection
 
@PeterHall I have millions of packets to process, So it WILL be a bottlenesk, also, this data structure allow us to produce faster code, be more clear, there is zero con
but any way I wait for the json
I could try different implementation after
also the problem is I can't really do this without a tree
how do you check for either canada +1 or Cayman Islands +1 345
trust me this problem is not simple :p
also how do I compare when there is a difference number of digits to compare ?
also my digits number are stocked as Vec<u8>
a tree will be simple to maintain, and clear
 
4:32 PM
Did you consider writing a regular expression? ;)
I would take the first n digits, where n is the max length of a country code. I guess n = 4. Then for each number make an array of candidates, ordered from largest to smallest. So a Cayman Islands number would have [1345, 134, 13, 1]. Then look up each in that order, from an O(1) lookup. The first one you find is the answer.
no complicated data structures, no indirection. No heap allocation except at initialisation.
Will be faster than your trie
 
5:08 PM
@PeterHall I bet not, there is a lot a lot of number
off topic: here the official link of tax in france, what my tax are used for: aquoiserventmesimpots.gouv.fr
 
if each number is faster then it doesn't matter how many numbers there are :)
 
@PeterHall I think my compile time tree, specially with branch prediction will be faster than a O(n) lookup that is error prone :p
 
ah you're building a tree of structs with a macro?
well in that case yes, that's pretty good
 
@PeterHall yes ofc I will not parse the json at runtime, that why I talk about build script
but maybe not struct maybe just match and digit
these number are not suppose to change a lot
like previous dutch was +47 for east
or URSS that was +7 but each country expect one have now its own
 
Yeah, I was going to say, I would expect a single, flat match to be dramatically faster. It seems most likely to be optimized by the compiler. But only if you already have the country code split off. If you've just got the full number, then your tree may be best (maybe by a lot). It certainly seems easier to reason about.
 
5:15 PM
well, I will try this way I feel it's clean
 
hi @Zarenor
you speak, at last
 
Hey there. I do write. sometimes. :) I did yesterday!
 
@Zarenor you did? oh awesome!
did not know you were a rustacean
 
@Shepmaster > At what age do kids embrace Markdown as the single source of truth for their documents? news.ycombinator.com/item?id=23413229
SO age was 11 years old ^
 
5:36 PM
Aaahhh. yeah, I'm something of a lurker. I don't write rust much at $WORK (usually C#), and I always find my self with less time than I'd like committed to programming side-projects. I've contributed a bit to druid though.
 
5:53 PM
posted on June 04, 2020 by The Rust Core Team

The Rust team has published a new version of Rust, 1.44.0. Rust is a programming language that is empowering everyone to build reliable and efficient software. This is a shorter blog post than usual: in acknowledgement that taking a stand against the police brutality currently happening in the US and the world at large is more important than sharing tech knowledge, we decided to significantly

 
6:37 PM
@Feeds nothing to see here
 
6:54 PM
@Feeds These features are actually interesting.
 
 
2 hours later…
8:29 PM
damn... serde bugs on empty keys in TOML...
 
8:39 PM
@DenysSéguret you are everywhere.
 
lurking everywhere, but always a low profile.
 
@DenysSéguret cool. Not sure whom but the gent mentionned you were a regular here when he saw Kidding. Only learnt about this room through SO's blog post.
 
9:02 PM
@DenysSéguret toml serde bug on everything don't blame serde :p
or it's yaml serde ?
don't remember
probably both
 
9:27 PM
tokio is not listed as async xd
 

« first day (2060 days earlier)      last day (1411 days later) »