Remote
Software guy, startup founder http://mysparebrain.com; big data + visualisation; distributed maths grids, low level x64 optimisation
60
Followers
77
Following
10
Posts
Joined April 25, 2022
Posts
Replying to
@shafik@hachyderm.io
@shafik@hachyderm.io Not that bit but where it's then specifying a default member initialisation and the question is whether the default ctor sets the myCount to one fixed value from one evalaution of counter(), or whether "int myCount = counter();" specifies that counter() should be re-evaluated afresh in the generated ctor (which is what it does).
The fact that it worked that way surprised at least 1 senior dev on our team
Open post
@shafik@hachyderm.io
Don't know if this is old news but it surprised me and at least some others, and thought it might make for a good one of your quiz Q's
What're the values of the counters?
https://godbolt.org/z/cofcnYqra
0
2
0
0
Open post
Replying to
@akahn@hachyderm.io
@akahn Create a bookmark and set the text below as the URL, put that on his bookmark bar, and then that'll go to archive.is for any page he's on just by hitting the button (it's an example of a "bookmarket")
javascript:var baseURL ='https://archive.is/newest/';location.href=baseURL+location.href
0
1
0
0
Open post
Replying to
@Offbeatmammal@mastodon.social
@Offbeatmammal@mastodon.social The temptation with hindsight is either simple self-justification or to beat yourself up with regret, where I personally think to look back and try to recall the reasoning at the time (the "Why?" of the moment) is I think is more informative as less judgemental... YMMV obv...
0
0
0
0
Open post
Replying to
@beecycling@wandering.shop
@beecycling See also (well.. listen) to The Good Life, a single from my mate's High Concept Pub Rock and Roll band (as played last night at Biddle Bros pub in Hackney)
https://open.spotify.com/album/2AK1Uju3zrl6y15ufvrPIe
1
0
0
0
Open post
As a little kid I always dreamed of being an astronaut, and then today Outlook stopped responding and just for a minute or so....
2
0
0
0
Open post
Replying to
@bellinghman@wandering.shop
@bellinghman@wandering.shop @dtl@8bitorbust.info @simontatham@hachyderm.io Yeah in practice it makes no difference as the types (int,long,char,etc) don't differentiate between octal and decimal and hex etc and the value of 0 is the same regardless (and they could have defined that 0 was decimal literal and 00 was the octal literal 0) but it's a fun bit of trivia when someone claims octal is dead and you can point out they use it all the time :)
1
0
0
0
Open post
Replying to
@schmerg@mas.to
@dtl @bellinghman @simontatham AFAIK there's no way to express 0 as a decimal literal
Hex 0x0
Binary 0b0
Octal 0
But no decimal literal representation
https://en.cppreference.com/w/cpp/language/integer_literal.html
4
3
2
0
Open post
Replying to
@dtl@8bitorbust.info
@dtl @bellinghman @simontatham Until I realised that 0 in C/C++ is an octal, not a decimal constant, and as such is quite possibly the most used octal value in wide use that no one thinks about
2
4
0
0
Remote instance
mas.to
Open on original server