« first day (2785 days earlier)      last day (2156 days later) » 

12:01 AM
I think achieving threading is easier in newer CUDA versions because you don't have to keep poping/pushing the context, if that's what you mean... Although I wonder if these operations are still happening under the hood.
 
There's no need for a gpu api to be single threaded except for a few small parts
most importantly is dispatching a set of commands to it
 
12:49 AM
@Mysticial The code with the unlikely fast paths.
 
1:26 AM
> Has anyone read this paper and made any kind of work with it? I would like some ideas on how to start doing it and what exactly are the algorithms steps that should be programmed. Thanks.
Wouldn't academia be fun if you could just google the results of your research
 
would a faulty charger damage a rechargeable battery?
 
2:10 AM
@TelKitty only on Wednesdays.
 
you are very talented in trolling, have you considered becoming a professional troll?
 
Who says I'm not already?
 
would you consider trolling a right or a privilege?
 
Privilege.
You're too smart to ask such a question about batteries - are you just bored?
(G2g, back in 2 hours)
 
2:30 AM
looks like I might have problem with new batteries again after 1 or 2 uses, so it could be a faulty charger or a fault some where on the toy car because of all the extra components and wiring done
Meanwhile, debugging some gigantic python script and preparing for the wildness on the weekend.
 
 
1 hour later…
3:56 AM
vi on MacOS is not as bad as it's on raspberry pi
vi on pi is just weird
Java's toString can be handy when debugging a gigantic piece of software written by some other people
if it's implemented right in the first place that is ...
 
4:17 AM
Wiring? I thought that was a rat's nest
:D ..battery draining while not in use? Simple enough to check with a multimeter.
 
fully charged 8.2V, after 30 secs use, 6.3V (faulty battery)
new ones last more than 20 minutes
but after a use, took more than 24 hours to charge, it shouldn't
 
Sounds like you don't need me.
Can you set the charge current?
Is that 24 hours for the bad battery or good one??
 
good one after 1 use
bad one took 15 minutes to fully charge
 
Battery capacity? Charge current: expected, and actual?
 
1100mAh ... which is not big at all
 
4:29 AM
C rating? And you're powering the pi from same battery?
Use a multimeter and check charge current; and current draw while in use.
 
charger output is 500mA :x
@ABuckau pi is using another power bank
 
Pi wiring totally separate from car?
 
no
pi is connected to a servo driver which is in turn connected to the servo of the car
 
Suspect. :p
 
thanks for hearing my whining, my life is more complete :p
 
4:44 AM
posted on June 01, 2018 by Scott Meyers

On Sunday, September 23 (the day before the official beginning of CppCon), Andrei Alexandrescu and Kate Gregory and I will be leading a workshop on how to give good technical presentations. Between the three of us, we've made hundreds (thousands?) of presentations on countless topics to pretty much every kind of audience. We certainly don't know everything that works (or doesn't), but we know

 
5:05 AM
@TelKitty One lives to serve.
 
Like Macdonald lives to serve fast food?
 
The pi is connected to servo controller: just a single pin, or?
:D you can have it your way.
 
3 pins
but don't worry about it for now, I am debugging some python script instead
 
And the grounds of the batteries are commoned together? *
: O
 
6:09 AM
I need to use swag from SE sometimes ... what if I use the SE nalgene water bottle as a hot water bottle when camping?
I have a few other brand new insulating metal bottles, maybe it's better to put boiling water in them instead.
 
6:43 AM
You mean to use it as a heater?
 
7:32 AM
Morning
 
 
2 hours later…
9:07 AM
@ABuckau yeah
 
9:52 AM
Took me half the file to improve the parsing time for a huge file and I only managed to reduce it from 50s to 30s :/
 
@Morwenn 40% improvement isn't bad
 
I didn't think I'd have to handle a 4Go file x)
I memory-mapped the file chunk by chunk to achieve this, but since I needed to actually parse it line by line it was a bit tricky to get it right
I don't think I can do much more :/
 
nwp
You should clearly be fired for only 40% speedup. Like, what are you even doing not reaching 10x?
 
I did a x3000 speedud for the rest of the script
 
nwp
Fine, you can stay 1 more day.
 
9:56 AM
xD
I need to go though, beer and ex-colleagues are calling me :p
later
 
nwp
10:28 AM
> The Vim editor, while powerful, can be hard to use. It's user interface is unintuitive and its key bindings are awkward.
> Note: Vim is the default editor of Git for Windows only for historical reasons, and it is highly recommended to switch to a modern GUI editor instead.
Source: The git installer that git-scm.com gives you.
 
sbi
@sehe That's impossibru!
Hi.
@CaptainGiraffe I have nothing that fits exactly, but this is an example where the ominous "room culture" was a problem. /cc @Jerry
@JerryCoffin Well, then you will undoubtedly be delighted to hear that I have a C++ question. :-)
Can anybody explain why this prints what I consider the wrong output?
 
nwp
I have a loungy answer for you: Because you are using C arrays and deserve to be punished for it.
(Let's ignore the fact that not using C arrays for this is not trivial)
bar("string"); already prints "c_str".
 
10:49 AM
Hi friends
 
nwp
Probably because bar(const char* c_str) is preferred over bar(const char (&array)[N]) because the first isn't a template and therefore more specialized.
 
Stop ignoring me
 
nwp
If you comment out the char * version you get array for everything.
You were talking to friends only. I feel left out :(
 
I consider you one
Although that feeling may not be mutual
 
nwp
OMG I have a friend! That's what it feels like! I'm gonna tell my mom right now.
 
10:52 AM
Spotify CEO admits anti-hate policy was rolled out incorrectly ... I am not against SE's be nice policy, but I do feel like it's implemented wrongfully.
 
@nwp What'd she say?
 
carried out in a neo-nazi sort of ways
 
Kitty go play outside
4
 
can't ... too cold and I have already taken a shower for the night
 
nwp
@SombreroChicken She said those friends on the internet are not real and I should go outside :(
 
10:54 AM
@nwp You can talk to me on your laptop outside
@TelKitty Have my jacket
 
nwp
@SombreroChicken How is uncon? Or is that not now?
 
@Nwp And why do you think I would know that
 
I am going to hang out with my bush(walking) buddies for the weekend. I need to socialize with real people, but my long term friends are turning into hermits.
 
nwp
I thought you were going there, should have paid more attention.
 
@nwp The only place im going is home
 
11:02 AM
But I shall go out tonight - to put sleeping bags and tent inside my car.
and table & chair there too
you can't substitute all social interactions with the internet, but you can substitute 70%-80% of it with the right online activities
 
@TelKitty keep us informed
 
11:20 AM
@nwp Come drink a beer and we can become real friends wink
 
nwp
Maybe I'll come to france some day. I'll totally buy you a beer.
 
This will be mutual then :p
 
sbi
@nwp This is for a logging feature where often string literals are passed. I want them to be processed without having to count the number of characters, so it's more efficient.
 
@nwp France is a mostly nice place
 
I know that at least 3 other loungers have been to an Irish pub in my town where I go on a regular basis
 
11:23 AM
I had snail in Paris once
 
sbi
@nwp I see. Well, short of @Xeo jumping in and explaining how overload resolution screws up here, I am afraid this will have to do as an explanation. (Note to Xeo: No need to do that. I'll never remember this shit anyway.)
 
I want to revisit Europe sometimes and preferably during Oktoberfest :x
 
I'm too far from Oktoberfest :(
 
sbi
2 mins ago, by TelKitty
I want to revisit Europe sometimes and preferably during Oktoberfest :x
This is everything wrong with foreigners view on Germany scaled up to encompass all of Europe. (To wit: Oktoberfest is an event in Munich, the capital of the state of Bavaria, one of many states of Germany, which is one of many countries in Europe.)
 
nwp
And something about oktoberfest being in september.
 
11:33 AM
I remember to stay away
 
sbi
Look at this, @nwp.
 
nwp
@sbi Can't decide if neat or horrible. I would at least expect foo("string"); to compile.
 
@sbi glorious
 
sbi
@nwp What? foo is a class template.
@Morwenn What? It's nuts that I'd have to jump through these hoops. Having to circumvent the mess of function template specialization and overloading by using class template specialization is an old pet peeve of mine. :-(
 
nwp
It's probably fine. I didn't look at it in detail.
 
sbi
11:47 AM
@nwp In detail? There's a struct foo in line #4.
 
you know, I looked at that code for ~5 minutes and I was very much confused with all the foo, bar, baz, bat, bak, bac what not
Then again, I'm just at work. Maybe if I invest 10 minutes, I can reverse engineer what problem is being solved
 
nwp
I don't have 10 mins right now, got to run.
 
sbi
@sehe I want a call like bar("string") to invoke an overload taking an array of characters, rather than a character pointer. This didn't work.
 
12:05 PM
51
Q: Why does pointer decay take priority over a deduced template?

BarryLet's say I'm writing a function to print the length of a string: template <size_t N> void foo(const char (&s)[N]) { std::cout << "array, size=" << N-1 << std::endl; } foo("hello") // prints array, size=5 Now I want to extend foo to support non-arrays: void foo(const char* s) { std::...

@sbi I think this is close to duplicate stackoverflow.com/questions/41290958/…
 
sbi
@sehe Ah, good find! Thank you.
Sadly, I find the explanation unsatisfactory. Or maybe it's the decision the standard had made on this.
 
12:22 PM
maybe the answer doesn’t make it clear that a non-template breaks the tie
 
sbi
I'd rather have the compiler bark to me about ambiguities than have it pick an overload that doesn't seem obvious in all cases. But this is water under the bridge. Nobody is gonna change this ever again.
 
1:07 PM
> This proposal introduces a notion of sizeless types into the C++ type system.
Now that's a brutal way to start a proposal
 
@Morwenn void being the first member I suppose
 
It's a proposal about SIMD types whose actual size is only known at construction time and not at compile time
Which totally sounds like what VLAs do to me
I expect that they will run into the same problems
 
@Morwenn Honestly it sounds like someone is trying to replace valarray
only badly
 
wasn't vla there to replace alloca?
having simd types that auto adjust to the architecture would be neat, though pretty niche
 
@ratchetfreak except AFAIK that's never been standardized either in C or C++
@ratchetfreak not really it would replace a lot of BLAS libraries
 
1:13 PM
There's no standard way to allocate a variable amount of stack space
 
That said I expect support for anything like that to be equivalent to valarray utter 💩
 
Yeah high perf math libs would love them but I haven't seen many that can use data in SOA form where simd truly shines
 
They would also love for valarray to not be crap
but it is
 
I'm still surprised that even the simplest version of VLAs never got accepted: the one that you can only used as an automatic variables, you can't inspect much about its type and fuck you
 
@Morwenn everything about VLAs is problematic in most cases, even in C they cause major issues. There is a good reason they were made optional in C11
If anything I'm still wondering how they got accepted into C99
 
@Mgetz The fact that they are virtually supported by every compiler probably helped
 
@Morwenn And yet banned in most major libraries because of small C stack sizes by default
 
And used everywhere in school and industries, mouhahah
industry quality
 
@Morwenn I know both MISRA and CERT ban them IIRC
and while I'm not a fan of either... they have a point
 
@Mgetz I'm not mentioning those ones, I'm mentioning the ones where you will do "C" xD
 
1:24 PM
@Morwenn right so Siemens and medical devices
both of which are notoriously insecure
and never patched
 
and everywhere I've worked where they occasionally need to do C/C++
 
@Morwenn Interesting, we outright ban them here for security and portability reasons
 
I've worked on "C++" programs where the only things that weren't pure C were uses of new and delete for variables that could and should have been automatic variables
From what I've gathered thanks to school friends there are just shittons of terrible C and C++ code lying around everywhere in the industry
 
@Morwenn I can honestly say I've seen worse. I've seen code where there were two 10k line functions that were an exact dupe of each other. But one worked on a file handle, and one worked on a stream
 
I've been working on main functions with thousands of lines and hundreds of variables declared at the top u_u
And legacy everywhere
 
sbi
2:04 PM
You folks had shitty jobs. When I ran into things like these, I quit.
@Morwenn What's with alloca()?
 
@sbi it's not in the standard
 
sbi
Ah. I didn't know that.
 
@sbi I should have, that place was actually abusive
 
sbi
@Mgetz Wow! You mean when all the people who easily get a different job are driven off, you end up with bad code? Who would have thought that?
 
@sbi it was complicated and involved H1B
 
2:09 PM
@sbi in my book every job is boring v0v
 
sbi
IOW, you were not among those who could easily get a different job.
I wish my life was more boring.
Well, this test now fails for the right reasons (feature not yet implemented), and I'm 10mins over the limit I set myself, so I am leaving work and go home to the kids.
Bye!
 
bye
 
@sbi I was fresh out of college, it was my first job
 
Yay, LWG will apparently spend a good part of monday handling short papers, presumably to get easy things in C++20
And a part of tuesday too
 
 
3 hours later…
4:59 PM
 
 
3 hours later…
7:53 PM
Usually, on the morning of going into total wildness, I feel like pulling out - why do I want to stay in the freezing cold when I can stay in the warmth of home with pretty much everything around?
 
@StackedCrooked Fuck these people for having too much time on their hands. If my validation tests pass, its a good day. Also advice for a team of three poeple isn't' the same as a well funded large company.
 
@TelKitty Because it's there
 
8:31 PM
0
Q: Is there a way to disable char assignment to std::string?

void.pointerUsing the clang toolchain with either GNU STL or LLVM STL, is there a mechanism available to (ideally) disable the char assignment operator in std::string or a compiler diagnostic that is issued (or can be enabled) to find cases where this operator is utilized? Personally, I have never needed to...

Why would string's char assign be considered a defect?
I mean I guess its only dangerous if string's char type is > 1 byte?
 
ISTR someone accidentally having a bug because of it, but can't remember why
oh, I know
someone expecting std::string s; s = 65; to convert 65 to "65"
oh look, g++ doesn't warn on that code with -Wall -Wextra -pedantic
@Borgleader That's not possible :P
(you meant "> 8 bits"?)
 
@milleniumbug oh i didnt mean char i meant std::string::value_type
as in "its character type" not the char basic type
 
I don't think these can differ
 
hmm maybe only in wstring then?
 
@sbi Appreciated.
 
8:56 PM
Am I the only one that is absolutely happy with my gig? This afternoon I helped a student with a few questions from previous 'datastructures and algorithms' exams. When he was leaving he said. -Giraffe; I have to tell you before your two courses (c++ and data/alg) I really didn't like c++. These are the top two courses ever. Now I want to write stuff in c++. But the algorithms are tricky. I went to every lecture. I hope I'll do well on the exam.
I'm cool with that feedback. youtube.com/watch?v=U5TqIdff_DQ
 
9:13 PM
@CaptainGiraffe That is a very nice thing to hear
I like my gig because I get to work in many functional areas. Hardware, Software, manufacturing, quality, field service and sales
 
9:58 PM
@CaptainGiraffe It is unethical to continue writing code in non-memory-safe C or C-based languages, for any purpose. Period. :-)
 
C++ is perfectly memory safe if used in a not-dumb way
6
 
U N E T H I C A L
 
 
1 hour later…
11:08 PM
@CaptainGiraffe My current gig is great other than the complete lack of pay. My previous gig was pretty good, other than the minor detail of having gone out of business. I plan to start at a new gig next week, and fully expect it'll be quite cool.
 
@JerryCoffin Any compensation expected for the cool gig next week? =)
 
@CaptainGiraffe Yes. If not, I'd just stay at home and be lazy like I have been most of this week. :-)
 
@JerryCoffin If so I'll swing by with a six pack of tall boys and we can reminisce.
 
11:25 PM
@CaptainGiraffe Most of what I voluntarily drink doesn't come in six packs, I'm afraid.
I guess you could call half a case of wine a "six pack" if you wanted, but usually you'd just call half a case...half a case.
 

« first day (2785 days earlier)      last day (2156 days later) »