« first day (2700 days earlier)      last day (2472 days later) » 

@Borgleader That's what I'm thinking too. I'm amazed how well it degenerated since I pinged you. lol
01:07
@MikeKinghan that's false, and it appearing to work is coincidence: boost 1.58 already had the same behaviour (see my answer). — sehe 10 secs ago
Returning references to member is nearly as dangerous as returning references to locals in C++
Its logically the same
Read the answer, and it feels to me like it's more of a problem with relying on lifetime extension
Also, personally I think any chaining like a.b().c() is suspect
I remember seeing a question on SO where OP was doing like: std::stringstream ss; std::find(ss.str().begin(), ss.str().end(), 'a');
isnt there a way to annotate functions so they dont work on temporaries? like void foo() & {} or something?
yeah that works IIRC
@milleniumbug Yup, hence my last suggestion to Keep It Simple
@Borgleader We'd need a whole heck load of DRs. And would get an utter explosion of library prototypes
01:21
The whole standard would be defect
s/would be/is
std::broken
Now, programming in GML, those were the times
The good news is, c++17 doesn't actually copy this bug from boost en.cppreference.com/w/cpp/filesystem/path/string
@sehe An answer to this question suggest that is possible
so, heck load of DRs it is?
I'm strongly in favour.
Note that it'll be impossible to get the rest of the world to adhere to the same interface design guidelines - like with noexcept, volatile etc. But it's worth having a sane standard library
01:30
What's a DR?
The standard has been insane ever since it was born
Defect Report
Defect Report
Defect Report
@StackedCrooked Combo breaker
01:31
I get it.
D-D-Defect Report
Why your sample code not work
Oh, try not to use it on firefox, it's known to have bugs ...
lovely
@StackedCrooked Did you catch that earlier:
Mar 3 at 12:47, by sehe
@StackedCrooked Something seems off still http://coliru.stacked-crooked.com/a/36565637d3e46cb3 - note how the output is incorrect (3 "science" instead of 3 "science" - also note the ldd output in the end: it tells me that the graph library so is not found (yet it does run...?)
Hm..
The lib is here: /usr/local/lib/libboost_graph.so.1.66.0 (can be accessed from Coliru). Dunno why ldd complains.
Coliru jobs run with export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/usr/local/lib64:/usr/lib64
Perhaps that is related?
@LucDanton lol
j'aurais tenté :hap:
@StackedCrooked yes
02:08
@sehe wow, awful design
Yeah. It's stupid.
@StackedCrooked Not really, because if it does, that goes for ldd too
@StackedCrooked Making extra sure coliru.stacked-crooked.com/a/ea102290dc8da21e
"The current answer(s) are out-of-date and require revision given recent changes." - do you mean, I edited the question to mean something else. Regardless, it is still unclear. — sehe 5 mins ago
02:57
I've been working on deconvolution all day, deconvolution doesn't work.
I love how all the physics we teach isn't true
03:26
not 100% true, but works for more than 99% of real life situation
?
linear systems are a lie
about physics isn't true part
lol, you don't know what we teach
but humans are tiny
tiny curve is like straight line
no it isn't
Somebody ask me something related to technical details of the niche field I work in, I need to feel useful.
03:29
have you thought about making mutated baby chicks? you can start with buying fertilized eggs ...
I'm already making muted cows, or at least helping, or at least providing some useless commentary
those aren't technical questions
Chainsaw-wielding attackers try to cut off triathlete's legs
good thing he had 3 legs
*Handyman slowly stole elderly woman's belongings*
The family friend stole thousands of dollars worth of goods including a clothes line, kettle, fridge and binoculars.
how do you steal a fridge without being noticed?
 
2 hours later…
05:08
@sehe I don’t think I ever told you, but I actually am very sceptical of decltype(auto) return type deduction. we had fun with it when writing those get overloads in tandem with constexpr if for conciseness, but I still can’t shake my doubts
death by a thousand committee decisions
05:26
well, I suppose I’m being a bit unfair to return type deduction here; it’s really a collision of a couple of unpleasant bits
$ rg 'decltype\( .*\.\w+ \)' -l ./**/*.[hc]pp | wc -l # looking for `decltype( foo.member )`
7
it’s not like I entirely avoid it (though 7 is way, way below what I was fearing)
 
2 hours later…
07:31
I am all suspicious ...
08:18
In learncpp.com, I am reading that when you initialize an fixed size array, it's length has to be a compile time constant. But on sites like codechef or codeforces, I can even create fixed length arrays with taking it's length as an input in C++. Why ?
Morning :)
08:48
15
Q: Why no variable size array in stack?

user695652I don't really understand why I can't have a variable size array on the stack, so something like foo(int n) { int a[n]; } As I understand the stack(-segment) of part of the data-segment and thus it is not of "constant size".

It's non-standard
but widely supported
 
1 hour later…
09:53
I just reduced the running time of a function from 364s to 2s /o/
Which is merely the difference between incorrect vs. correct usage of NumPy
Ven
Ven
but templates
No C++ today
I keep C++ for when I'm chilling in my bed :3
10:10
> I find readability and editor estate could be improve if the #include statement would support multiple header files.
> #include <array> <cstdint> <functional> <iostream> <limits> <memory> <random> <string> <vector>
Ven
Ven
lol
10:22
@sehe I'm sure you must have stumbled across this at some point, but just on the off chance that you haven't: youtu.be/rjEuggdLqec
10:37
Next C standard is apparently considered circa 2022
 
2 hours later…
12:58
@Columbo what a stupid ass in the audience at 39:49.
Strangely did not strike me as the worst intrusion even though it's at the most brittle of ends. More distracted by the audience audible shock
13:15
@sehe Yeah, luckily it happened right at the end, although it ruined the atmosphere of this masterpiece momentarily... Hamelin's scarbo is seriously good!
I'm at 55' now. Till now liked the Ravel most
@sehe The Rach. sonata is brilliant.
His variations I'm not very fond of. Too modern, without the genius of a Shchedrin or Arapov...
I'll find out, tomorrow likely (I've gotta run soon)
(But these names are probably only known to lovers of the Russian piano composer scene...)
@sehe Well, I'm glad you listen so far, anyway :-)
Cheers for sharing.
13:22
@sehe Btw. at youtu.be/rjEuggdLqec?t=45m31s, there seems to be a pretty blunt mishap... at least as far as my acoustic memory tells me.
Mmm. Didn't strike me as odd - but I don't have reference memory
13:58
> Boost.PropertyTree - A property tree parser/generator that can be used to parse XML/JSON/INI/Info files. [Boost]
(In the XML section)
Ven
Ven
14:51
oh shit
delete this before @sehe comes bak
15:24
Working with multiprocessing in Python is tricky
Apparently it pickles the state of the program and unpickles it in the new process, which produced strange errors considering I didn't know it used pickle :v
15:35
@Morwenn Working with Python is tricky, FIFY.
It is: it's often great for simple things, but I've already run in my share of tricky things that require to know a bit more about how things are handled in the background :p
I already had a few headaches working with NumPy and PyQt
almost makes you want to do it in C++?
16:15
@Morwenn careful there used to be a 2 gigabyte limit which was a show stopper for my application.
@Mikhail I'll keep that in mind, thanks
Worst case I override Task.can_be_parallelized everywhere to return False and people won't notice x)
Anyways, mp on python is a nightmare on Linux where you start getting mallow failures and other random fuck. An error in one process would often not propagate to the parent. Now your program is failed but not closed.
I had so many problems with python multiprocessing, and no amount of bandaids could fix it. C++ would have been a better option.
I made sure to catch any exception and forward it to the tasks handler error callback
I have to admit that I would have been more confident doing parallel stuff with C++ ^^"
At least I made sure that I can opt out of parallel stuff if needed without too much effort
There is a category of exceptions like when malloc fails that can't really be caught
16:30
Wait, apparently it's the multiprocessing.Queue that uses pickle, not the forking itself :hum:
And that's where I realize that I didn't use a Queue to communicate between processes but to have some guarantee that when I push something in from the callback called when another process finishes doesn't add something while something is popping from the queue (if it's thread-safe, this should work too?)
Nope, the forking does pickle/unpickle too apparently >.>
A task is meant to be initialized with some variables, then launched once and only once. I guess that I can use that property to safely initialize some of the biggest variables to something relevant only in the start method. That should avoid most of the pickle problems and keep fewer things in the main process.
<insert lame "being in a pickle" pun>
16:46
But can I even pickle Rick?
Yeah and the underlying reason for pickle is that each process has its own interpreter and you need to send the complete object information. That's no bueno for large arrays.
It's like how you serialize to json in js when cloning objects
Good thing I can most likely avoid sharing large arrays in the project I'm working on
@Mikhail oh right, I often wondered whether there was a better way to do that :D
Anyways python+multiprocessing really triggers me because my large image processing code failed to hit performance targets.
IIRC one of the tasks may run for hours, which means that launching it in the background is probably better
And still has random crashes on Linux when resource contention is high
16:51
nice x)
I could try Celery, but communication between processes seemed quite difficult
Some guy even says that he uses something from multiprocessing to share memory between Celery workers x)
C++ would have been a better long term solution. But python was seductive as it was easier to get off the ground. But also terrible choice long term.
It's easier in my case: I don't have a choice v0v
At least it's 3.6
I'm glad I can finally work with something else than 2.7.X
@Ven triggered
@Borgleader and in the JSON section. Sadly, Boost sorts on top
@Morwenn I wish I could share memory with other salary workers
17:26
@Morwenn Yes, but if you do, it'll come out as Don Rickles.
17:58
@sehe that could be uncanny
@JerryCoffin I've no idea who this guy might be, at best I now have a clue about his name & face
18:14
@Morwenn Oh, sorry. He was a comedian best known for insulting his audiences. Going to one of his shows was pretty much asking to be the subject of a roast.
Oh, I seldom know anything about comedians ^^'
@Morwenn Seems fair. I doubt most of them know much about people who put together sorting libraries.
Hardly anyone knows much about me :D
Ven
Ven
or about comedians
@Morwenn I'm not sure people really know you a lot less than they do most other people--but in your case, they realize they don't know you because you're harder to fit into a simplistic stereotype.
18:27
but I'm a stereotype of myself :o
@Morwenn To be a stereotype, there have to be at least two. You're a monotype. Just don't claim that in public, or you'll get sued.
std::monotype
@Morwenn Oh no...a singleton!
not sure what that would be
like, a magic type where std::is_same<std::monotype, std::monotype> is std::false_type
I'm pretty sure people would still find some use for it xD
@Morwenn The NaN of types.
18:33
xD
std::nan_type then
@Morwenn I remember when I was a teenager, guys tried to claim they were real studs. I wouldn't have expected it of you though...
I never claimed these guys were real studs D:
@Morwenn Touché!
18:50
@Borgleader
#define lol long long LOL indeed. Don't do this in real life, please. — user4581301 26 mins ago
19:34
I can't beat Abyss Watchers.
@Mysticial oh god...
I DID IT GUYS!
ICE in GCC
Now I've reportedly had ICEs with both GCC, Clang and MSVC on the same project
wow
GCC is hard to ICE. I've done it with MSVC and ICC. But not GCC.
19:49
I've iced edg by using French characters in the cpp file
I never had a problem until now: I just tried the debug mode
of libstdc++
And then:
> internal compiler error: in assign_temp, at function.c:968
 
1 hour later…
21:17
wow onebox fail
21:42
@Mgetz What's special about that question?
@Mysticial I figured if anyone knew the AVX instructions it would be you, apologies
@Mgetz oh lol no. I see all the AVX questions anyway. That one in particular didn't stand out as interesting when compared to the others.
@Mysticial ah didn't realize that
21:58
@Mgetz There's very few SIMD-related questions anymore.
Maybe one a day. Most of it is just stupid shit.
@Mysticial "compilers are fast enough" or "The questions are answered?"
@Mgetz no idea
 
2 hours later…
23:34
-2
Q: Sorting Arrays Multiple Times Using Bubble Sort

andreaqFor my assignment I am asked to sort student's test scores from low to high, then to sort the student's names alphabetically. I have successfully sorted both ways. My problem is I am not able to print both of them out. I used do-while loops for my bubble sort function so it only prints out my las...

needs close votes
23:45
@sehe youtu.be/aTlzKA91GIE, this fucking ADGO is uploading one treasure after the other
This GPS module supports Raspberry Pi model A, B, A+, B+, Zero, 2, 3 with L80-39 GPS chip inside.
does it mean it supports raspberry 3 model B?
Also need a GPS module for pi, if anyone has any good idea, I will be all ears ...

« first day (2700 days earlier)      last day (2472 days later) »