« first day (1631 days earlier)      last day (3543 days later) » 

04:06
TIL std::abs is in fucking <cstdlib> and not <cmath>
Actually I remember being bitten by this bullshit before
@Rapptz And here I thought it was in <getfit>
My game runs at 8 FPS on my computer
it's not a big game
You suck Blob.
this has to be Unreal Engine's fault
is there some "run faster" checkbox i missed?
yes
I forget where it is to make it run on shit PCs
I'd google it
04:07
i think i already did that
@Blob yes, the checkbox is in your head and it activates the "optimize game" feature in you
no free lunch bla bla bla
@Borgleader there's basically nothing to optimize in my part
it's small as hell
they're already the lowest it can be
it's fine in the editor
04:14
just how crappy is your PC?
not sure how to make those low craps carry over to the executable it makes
@Rapptz you can buy me one if you like
@Rapptz sugoiiii
does that carry over when you make a standalone?
attempting to make one. it'll take at least 10 mins, though.
nooope. doesn't affect executable ;_;
fuck it. i need a better computer.
i don't even satisfy unreal's requirement of 8 gigs ram :|
the editor crashes on me frequently
I didn't know the English word thrashing outside of the CS context.
04:37
nevermind... had something mixed up
2lewd4me
For one corner case, round-to-odd is faster than round-to-even.
In hardware, it doesn't matter.
Oddly enough
I can think of an API for a Sublime Text plugin to have pseudo projects like an IDE
but not one for a generator
any idea what granularity you can get with highest resolution timers on current intel/linux machines?
I read it's around 500 microseconds in a 2004 book.
rdtsc will get you down to +/- ~200 cycles.
04:42
200 cycles..
that's pretty high granularity
It's difficult to get better granularity than that. The instruction itself is fairly expensive and out-of-order execution gets in the way.
im surprised its not more than 200 cycles
I mean. If you want to send network packets at 200 ns intervals. You need some kind of callback timer.
Don't send network packets at 200 ns intervals. It's called a DOS.
That's pretty much my job.
04:46
Why DOS when you should be DDOSing?
ITT @StackedCrooked's job is DOSing ppl
Max rate is about 16,6 million small packets per second.
But that's with the help of the network hardware. Which does the fine scheduling.
@Borgleader Actually, I'm usually DOSing myself on the loopback interface.
Why would you do that?
@StackedCrooked You have a weird job =/
04:52
Actually the product is used by ISPs and manufacturers of cable modems etc.
Who's your customer? China?
lol
lot's of chinese people actually, but working for American companies. (like arris)
Makes sense. If you're going to DDOS American sites, why waste your own money getting the equipment when you can just outsource it to the Americans themselves.
@StackedCrooked I thought it was 14.x Mpps of 64 bytes each
04:57
posted on April 04, 2015 by Scott Meyers

Artima just pushed out the latest updates to my annotated training materials on C++11/14 and on making effective use of C++ in an embedded environment. These materials were originally published in 2010, and in the ensuing five years, I've updated the C++11/14 materials nine times and the C++-in-embedded materials twice--a total of ten and three releases, respectively. From the beginning, the

@MomotapaLimpopo 10Gbps / 60 (excluding crc) gets the 16.67Mpps. That's the limit of the current nic. (I didn't implement any of that though, a colleague did. I've been implementing the tcp/ip processing mostly.)
Is that counting the ethernet header
yes
But I could be wrong on the details.
05:35
Back from failed 3 days overnight bushwalk only after 2 nights & a whole day in the wild
it was raining and foggy & the leader failed to identify the track
Confused... 3 days overnight after 2 nights and a day?
we failed on the first day, so we went back to the camp where we parked our cars
stayed overnight but it's still foggy and raining this morning, so we came back after having brunch together
05:53
> The flat is being re-decoration for printing, will be finished approx in mid of April spend 5 minutes by foot apart from, the flat is 255 sq. ft. net 3 directions with windows in SE, S & SW containing referigerator, air conditions, bathroom, kitchen and dining room are independently, for more information and details. Best regards.
I want to give up already
06:06
not a lot of input validation though
Nice! Though it looks a bit complicated.
it is
I probably could use a regex to make the parsing simpler
lol
input validation for free too
but std::regex = compile times + a couple of seconds (2s on my i7, like 7s on coliru)
Compiling std::regex is that bad?
on libstdc++'s implementation yeah
Mar 12 at 6:19, by Rapptz
@orlp Still a QoI issue. e.g. libstdc++ vs libc++.
06:32
@Rapptz Did you find peace with the code structure?
you mean the tail calls?
Yeah I guess.
Thinking of replacing it with regex.
easier to maintain :s
[+|-]?(\d+)(?:\.(\d*))?(?:[e|E]([+|-]?\d+))? :v
Oh that’s more involved than I thought. Are those ?: assertions?
Non-capturing groups
06:34
yeah a non-capturing group
reason it's ugly is because there's a lot of weird things allowed
123e10, 123.e1, 123.123e+11, 123., 123 etc etc
@Rapptz Whereas with VC++ it's about 1 second on my relatively slow machine (AMD quad core, fairly slow HD, no SSD). Even with full optimization, it only gets up to ~1.5s.
I’m confused, why is the fractional part not captured?
it is captured
Alright, just not the separator then.
I'm using a non-capturing group to group a literal (\.) and a capturing group to make it all optional
06:37
What flavour is that?
ECMAScript
Tuttifrutti
@JerryCoffin Yeah makes me sad :(
Apparently deprecated now.
That's the kind of feature that is impossible to use correctly.
bad idea to remove it
06:39
@Rapptz Sad, but not really surprising (at least to me). Despite its inferior compiler, VC++ has quite a decent library.
Yeah I guess.
STL and PJ Plauger work on it
hard to imagine it being terrible
I also work on it. I should let them know.
@Rapptz ...and James McNellis, IIRC.
@LucDanton To add on, the only thing that I personally use from PCRE that isn't in ECMAScript is named capture groups (?P<name>...) and .. hm.
It seems C++ uses a Modified ECMAScript
it has lookahead and lookbehind
either that or cppreference is lying to me
There's also atomic groups.
interesting
oh wait no lookbehind
using the C++ std::regex API is such a pain
06:55
> it can be written in lisp or cobold for all I care.
@LucDanton Dunno if pun in "cobold" is intentional.
They clearly meant 'cobalt'!
@MarkGarcia Certainly wasn't a Freudian slip about "bold" anyway.
COBOL OLD
@MarkGarcia Yes, I caught that.
07:03
@JerryCoffin Sorry, the caps lock shout's unintentional. :)
07:16
nvm regex approach is pretty bad
07:37
lol ECMA
^ Why is forward required here?
Preserving l/rvalue-ness doesn't seem relevant.
@StackedCrooked Deducing constness and non-constness of the operands so that it is possible to use non-const operator<?
Just guessing.
@StackedCrooked It's a forwarding reference.
It's probably a in-transit slide.
@Rapptz Oh, it makes sense if I think in terms of bool operator<(T&&, U&&);
@StackedCrooked Because it's the Right Thing™. :)
07:46
lol just noticed the function is wrong anyway
it's doing t < u instead of u < t or t > u
lol
he doesn't know greater is >
Isn't that how the non-diamond functors do?
Oh my god they met in Kona.
KONA
KONA KONA
07:49
Hawaii?
So if we have 14 why do we need 17
and wtf is our next great leap forward for 22?
@MarkGarcia Is that what you call std::less<>? :)
Well, the 'diamond' part.
STL called them transparent functors
the slide calls them diamond functors
@LucDanton nvm. Got my mind jumbled with strict-weak ordering in associative containers.
@Rapptz I’m not sure I want that to stick.
@Rapptz STL = Standard Template library?
07:51
@Cinch No.
@Cinch Stephan T. Lavavej
Ah.
Yeah.
No one here uses STL to mean the Standard Template Library or the stdlib.
Afaik.
@Rapptz ik
But I don't know any other abbrv.
Fair enough.
07:57
Also:
graphics for C++?
Hopefully never
idk I think it might help C++ as a more versatile programming tool.
Of course, we'd use other stuff.
@Cinch Vulkan and DX12 and Mantle not enough for you? :)
waste of committee time
@MarkGarcia No, C++/Graphics not for power, but rather for more learning and surface prototyping
i.e. if I want a graphical prototype I can use C++
and NOT have to jump through more hoops
07:58
@Cinch Herb Sutter would love you!
@MarkGarcia (who's herb)
Why do you think the Standard Committee can help with that, and/or should?
@LucDanton I think it should be just a standard extension.

« first day (1631 days earlier)      last day (3543 days later) »