« first day (2261 days earlier)      last day (2684 days later) » 
00:00 - 23:0023:00 - 00:00

12:00 AM
The compiler could know what it does, but at present there is no way in the language for it know how it operates, or even what it does... And indeed, even similar implementations are different.
 
Ven
it does know, you're wrong
 
I might be, but all I see is _CRTIMP2_PURE int __cdecl _Mtx_lock(_Mtx_t); in xthreads.h
 
nwp
that just means that compilers are bad, not that the language is bad
 
user1804599
The language is bad regardless.
 
irregardless
 
Ell
12:12 AM
Where has that terrible word come from
I never used to hear "irregardless" and now it seems like people always choose it over "regardless" but I don't understand why >.< it's awkward to say and looks so incorrect to me :L
I cringe when I hear it
 
Irregardless is a word commonly used in place of regardless or irrespective, which has caused controversy since the early twentieth century, though the word appeared in print as early as 1795. Most dictionaries list it as nonstandard or incorrect usage, and recommend that "regardless" should be used instead. == Origin == The origin of irregardless is not known for certain, but the speculation among references is that it may be a blend, or portmanteau word, of the standard English words irrespective and regardless. The blend creates a word with a meaning not predictable from the meanings of its...
Nice
A negated word with the same meaning as the original
 
Ven
12:33 AM
I prefer to use "Irregardful"
 
Xeo
Bet you can nerd-snipe @R.MartinhoFernandes with that - "negated" / "inverted" words that have the same meaning as the original.
 
@Xeo nerd-snipe?
 
xkcd ref
 
Ell
12:58 AM
@Ven shudder
 
@ThePhD MERRY XMAS YOU WONDERFUL HUMAN BEING <3
He's gone :'(
@jaggedSpire soft landing
 
1:15 AM
Now that I'm watching Monty Python's Flying Circus, I understand why Holy Grail ended in an anticlimax! Apparently it's a running gag in the series to end sketches that way
 
-2
Q: calculating numerical integral in c++

Amir5204i want to write a function that can calculate me inetegral (e^(cos x)) on range (a,b) double integral(double(*f)(double x), double a, double b, int n) { double step = (b - a) / n; // width of each small rectangle double area = 0.0; // signed area for (int i = 0; i < n; i ++) { ...

Botany alert
 
This is interesting
However, this does work: coliru.stacked-crooked.com
How come?
...Nevermind
It's the fact that my function returns a different type depending on the parameters passed whoops
...The template parameters
Wait I must be incorrect, does someone know the answer?
Okay, just in case someone actually clicks on those, don't bother explaining, I noticed that I wrote array_of instead of arr when I printed.
Just... idiotic
 
1:55 AM
@EnnMichael this is a coliru homepage
 
Nice
It's 3 AM
 
throws hands in air I give up! Python 2 and Python 3 are a PITA to migrate between because there's no automatic version checking for script. You write in one and it's nearly guaranteed to need refactoring to work in the other, but the interpreter will happily try to make it work
 
2:10 AM
Don't write legacy code
 
@Aaron3468 Have you looked into six or sys.version_info
or 2to3
or.. the millions of other tools designed to help maintain python2/python3 code
 
Or why the fuck are you using Python 2, don't contribute two the problem
 
that too
 
It wasn't legacy when I began Q.Q Now I'm upgrading some of my old scripts and getting headaches from all the interfaces that have been deprecated/moved
@Rapptz I've used version on a few of my scripts. I may need to use six
 
Been doing too much Qt, thought Q_Q was an opaque pointer instead of chagrin
 
2:15 AM
six helps keep 2/3 compat
you should use it
or porting things to py3 only works too
honestly since 3.3+ maintaining 2/3 isn't as bad
there are a few things here and there (which six helps with) but overall it's fairly easy because the syntax works in both versions or you have from __future__ import <something>
 
That's true. Though I probably should use a library for binary interfaces so that I don't need to mess with encoding every time I swap between versions. Reading binary files is the part that seems to break the most
 
2:37 AM
In other news though, it took only an hour to make a hex viewer and gb disassembler. It's reassuring to see I'm making progress and getting faster.
 
2:47 AM
@Borgleader ^⌣^
 
Xeo
ugh, why is pgadmin so bad
 
3:35 AM
Why is it so bad?
 
@Xeo pgAdmin 4, yes, so bad.
 
Xeo
whoo, finally got the local backend server to run
now I only need the frontend part
 
@Aaron3468 Clunky, slow, checking schemas is a pain, makes you dig through various stuff instead of showing column info outright.
 
@MarkGarcia So about par for business software?
 
Xeo
But like, the primary function should be looking at tables, I feel
and that's hidden behind three clicks
(after you get to a table)
 
3:49 AM
@Aaron3468 It's disappointing if you compare it to the likes of, say, SSDT or perhaps MySQL Workbench. Even the php stuff is much better.
 
Yeah, it definitely helps to have designers yelling at programmers for making a bad UI
 
Oh interesting. The joke would have gone over better if they said "Imagine we have a mock from our designer. Our designer, a programmer writing this doc, apparently isn't very good at mockups."
 
 
1 hour later…
4:59 AM
oh come on it's Friday night
 
it's almost Xmas eve here
 
@Telkitty high five
 
5:18 AM
so lunch today involves me sharing a pizza with my chicken
and feral pigeons
 
how good a name for a band is "The Feral Pigeons"?
 
good if you timetravel to the 60s
 
I'll get right on that then
 
5:50 AM
@jaggedSpire "The Feral Pigeons" sounds as fancy as "The Feral Chickens", but that's just my humble opinion
 
 
2 hours later…
7:57 AM
 
8:55 AM
any of you use the vim extensions for browsers? vimium vimfx etc.
 
 
2 hours later…
Ven
10:30 AM
Did in the past but they were a bit too messy.
 
user1804599
Hi
 
Ven
Hi
 
Meh, upgrade to Ubuntu 16.10 broke Coliru.
I should probably fix it.
 
user1804599
Your fault for choosing Ubuntu.
 
user1804599
Install Nix.
 
10:45 AM
I suck so much at system administration.
6
I want a VCS for my machine.
 
Ven
don't we all
 
user1804599
11:00 AM
NixOS ftw
 
user1804599
12:08 PM
@StackedCrooked that's literally NixOS
 
Ven
12:19 PM
@StackedCrooked coliru.stacked-crooked.com/a/c452ac00044c7279 is that expected? :c
 
2 hours ago, by StackedCrooked
Meh, upgrade to Ubuntu 16.10 broke Coliru.
 
user1804599
12:45 PM
People like my preprocessor.
 
user1804599
37 retweets.
 
preprocessor?
 
ThePhd is a preprofessor.
are you liking perl6 ?
 
user1804599
Kind of.
 
user1804599
12:49 PM
Unlike Perl 5 it works on Windows and has a decent C FFI.
 
user1804599
But I wouldn't use it for anything big.
 
Do you like it better than Perl5?
 
user1804599
Yes.
 
Perl has this really bad reputation. Even my colleagues who aren't familiar with many programming languages bash it. They love seen to love python though.
 
user1804599
Perl > Python.
 
user1804599
12:51 PM
Command-line parameters are really nice in Perl 6.
 
user1804599
sub MAIN(Str $connection-string, IO(Cool) $in-file, IO(Cool) $out-file)
 
user1804599
This defines a main function.
 
user1804599
And it automatically generates usage info.
 
user1804599
With overloading you can define multiple main functions and the usage info will adapt accordingly.
 
user1804599
PS C:\Users\r\Documents\purescript-postgresql-client> perl6 purspgpp
Usage:
  purspgpp <connection-string> <in-file> <out-file>
 
12:53 PM
I think it's cool that Python allows operator overloading but it get's so ugly at times. That __OP__ syntax..
 
user1804599
And if the parameter type is Bool then it generates -- flags. Etc.
 
@rightfold cool
 
user1804599
And junctions are rad.
 
Ven
1:07 PM
@StackedCrooked if you're interested I have a talk about MAIN ; D
 
Ell
man I really have no idea about this christmas tree
what resistor values to use where
I wish it came with a schematic -.-
 
Ven
@rightfold :O
 
@rightfold Perl always worked on windows, you just had to use the DDK version
because there are scripts in the windows build system that date back to Larry himself
 
Ven
Like patch(?)
Or was it diff.
It was probably diff, and patch was linus. Mmh...
@Puppy thanks
 
user1804599
@Mgetz Yeah, like .NET works on Linux.
 
user1804599
1:15 PM
I.e. not really.
 
@rightfold umm, you should recheck that.... .net core works rather well on linux
 
took me 5 years to learn to use the app store on mac >_<
 
user1804599
lol
 
only discovered that yesterday because I had to upgrade xcode & the right way to do that is through the app store
I have been downloading the xcode directly from dev portal all these times ...
 
1:32 PM
Imagine telling the British soldiers on D-Day, "You have to win lads, otherwise your great-grandkids won't live in an Islamic society!"
 
only if you could transfer the nazi through wormhole to fight ISIS
 
@StackedCrooked I think sehe is very good, ask him!
 
my mac is making loud noise while installing xcode, I hope it's not going to explode, not that it's likely ...
 
@Abyx the alternative is and still is worse. That's also extremely misleading.
 
2:16 PM
why was James Martin suspended? it has been a while since he's last seen
 
2:26 PM
@Telkitty no idea but it's a full year suspension
 
user1804599
How It's Made puns are so lame.
 
3:02 PM
Hi guys.
 
@Morwenn Hi
 
I found super-warm socks for my mother for Christmas :D
 
We do, but in C++ the safe way to grab a reference a member function is to use std::mem_fn, it's also the easy way. The returned function object is guaranteed to have the this parameter as the first parameter. Whereas a pointer-to-member function like you're using is not as that's an ABI specific implementation detail. — Mgetz 1 min ago
amazing the number of people that don't realize this...
 
no, use a lambda
 
not always an option but the best choice if you can
 
3:10 PM
there's nothing guaranteeing that mem_fn doesn't contain ABI-specific details
 
actually my point was that std::mem_fn is guaranteed to have ABI-specific details, the whole point being to abstract those away and make code portable
 
the code itself isn't any less portable for using a member function pointer
they are a Standard feature
it's shit, but that's another matter
 
3:32 PM
Christmas is such a PITA.
Who is going to setup the Christmas tree for me?
 
user image
2
Christmas is cool.
 
Ven
no :(
 
@Morwenn that feel
 
too many social interactions + shops are too crowded :(
 
3:40 PM
I'm just hanging out with my family :)
 
@Ven Are you doing it wrong? D:
@jaggedSpire The best feel when preparing the gifts :D
 
Ven
well, the christmas tree is a bit hard to pull out, but outside from that...
 
San Antonio is not very snowy though
I don't need a jacket or even really long sleeves to go outside
 
@Ven That's what she said.
Here it's like 5°C.
 
it's 20°C here, or it was last night
 
3:44 PM
oo
 
It's pretty nice, coming from a place that recently had two days straight of ice rain
If I didn't hate humid heat so much that would be my least favorite weather I think
 
Wow.
 
you know what goes the very best with being cold? being cold and unable to trust your footing on anything!
 
Here it's rooughly between 2°C and 22°C most of the year.
 
is jelly
 
3:47 PM
@jaggedSpire Hi Jelly.
 
@Morwenn :P
St. Louis does -10°C to 37°C.
In a terrible crime of nature, the hottest bits are also the most humid
 
Ugh ><
 
concur'd
 
Ell
ahh algorithms
I'm trying to learn this stuff
but I get impatient so quickly :V
 
fun
 
3:58 PM
I'm more excited about whether people will like the gifts I found than about the gifts I may receive. Am I getting old?
 
Ell
I'm like that too
I think everyone is
but then, nobody will be happy as nobody has set aside time to enjoy their own gift :P
 
That's not true. Sometimes people truly enjoy their gifts.
 
I make sure my family likes my gifts by asking them what they want, and then getting it for them
It's not very sentimental but everyone winds up happy
 
It's more interesting when I don't ask, but that's soooo difficult ç__ç
 
user1804599
lol Christmas gifts
 
user1804599
4:13 PM
Awful idea
 
Capitalism everywhere.
 
So the tree is done.
I think I am done.
Nothing to do for Christmas any more.
Fuck yeah.
 
Done preparing gifts, showering, shaving, taking care of my hair and getting the beer. There's only some guacamole left to do, and that'll be it :)
I want concepts for Christmas.
10
 
4:38 PM
@Morwenn Ah, shaving. I forgot about that. Damn.
 
:p
 
4:52 PM
Fuck. I nicked my upper lip with razor.
That has not happened in a decade at least.
 
Uh, I'm sorry for yu.
 
@Morwenn You should! It is your fault for reminding me! :D
 
Eh, I shave so close that it's a miracle that I almot never end up cutting myself.
On the other hand, there's almost nothing left to shave, so there's that too.
No beard shadow /o/
 
@Morwenn don't we all? sighs wistfully
 
user1804599
I have two partitions in Windows, one is empty?
 
user1804599
4:55 PM
Any idea what I could use it for?
 
@jaggedSpire Nah, most want modules instead.
 
whynotboth.gif
 
@rightfold Porn.
 
user1804599
XD
 
user1804599
I thought of putting all my projects on there.
 
4:56 PM
is there enough space
 
@jaggedSpire notbad.JPEG
 
user1804599
@jaggedSpire 30GB
 
I am holding a tissue with my lips. I look like a retarded kid.
 
challenge anyone that questions the life decisions that led you to this by making eye contact while slowly invading their personal space
 
@jaggedSpire :D
 
5:00 PM
Looks like I'm about to go, later :)
 
Unfortunately, I am home alone.
 
@Morwenn later :)
I'm off to do things as well, toodles!
 
@CheukKinSing That's why I always use windows as vm...
 
Xeo
> 3> [225/2480] Module.Engine.29_of_34.cpp
dis gon take a while
 
user1804599
5:16 PM
sudo :: MonadIO m -> IO a -> m a
sudo = liftIO
 
wut
 
@Xeo Why does it have numbered source files like that?
 
Xeo
"unity builds"
 
Ah.
 
Xeo
with 30kLoC per .cpp bunched together from multiple files, per module.
And since the Engine module is so huge, you get 34 of those unity .cpps
 
5:25 PM
Is it still necessary? Shouldn't LTO mode solve that instead?
 
@Xeo You dont happen to be using fastbuild?
 
Xeo
?
 
@wilx LTO is orthogonal to unity builds
unity builds improve compile times
 
Xeo
or try to, anyways
 
LTO improves runtime by doing analysis at link time
@Xeo yeah i mean thats the goal of them
kinda like precompiled headers
 
5:26 PM
Oh. OK.
 
Xeo
unity builds distribute really badly, though, so they suck if you have increadibuild
hm, apropos... I wonder if I could connect to my work VPN, and then fire up increadibuild...
 
At work we have unity builds (or blobs in fastbuild terminology) and we distribute them over the network
and we have the network cache setup
 
Xeo
there should be a couple PCs online there...
 
so if two programmers sync the same CL and compile the second one to do so should just fetch the result from the network cache
(in theory)
 
Xeo
5:28 PM
@Borgleader Buy yeah, that doesn't help alone at home, does it
Looks like another version of increadibuild
 
Ye, buts this ones free ;)
 
user1804599
5:39 PM
I want to write something in Haskell.
 
Is Haskell good at serialization and rpc stuff?
 
user1804599
Yes.
 
Xeo
> [640/2480]
slowly but surely...
with emphasis on slowly...
 
@rightfold Strongly typed RPC is fascinating.
In C++ you can do it by declaring the types in headers that are shared by client and server. Then it's just a matter of writing some generic code for the serialization/deserialization.
Dunno about Haskell though.
 
user1804599
@StackedCrooked I use this in my application.
 
user1804599
5:43 PM
The serialization code is completely generated from the data structure.
 
user1804599
The data structure is used both server-side and client-side.
 
Xeo
Always generate serialization code
 
My lip is still bleeding. What do I do?
 
Xeo
Whatever you need to do, don't write serialization code yourself
 
5:45 PM
I let the junior do it.
 
Xeo
in our case, backend defines the structures and APIs and generates the frontend network services and request / response / data structures
 
@Xeo this
 
user1804599
@Xeo Did you check out flying with fireworks yet?
 
user1804599
It's infinity times better than bows.
 
Xeo
(thanks to Unreal, we can generically (de)serialize stuff from JSON into those)
@rightfold Not yet, we're still on 1.11.0
but from what I saw, yeah, it looks good
since you can also launch on-the-spot with just a jump, it seems
 
user1804599
5:47 PM
yeah
 
user1804599
also fireworks are not too difficult to make so it's nice
 
user1804599
esp. with mob farm
 
Xeo
I should build one of those soon
we got a huge ocean nearby
that makes it easier
 
user1804599
Llamas are lame.
 
user1804599
@Xeo do it in a mountain
 
Xeo
5:50 PM
I hate building mob farms on land :<
gotta light up all those caves...
 
user1804599
> Flying is not enabled on this server.
 
user1804599
you kidding me
 
Xeo
haha
 
Are you talking about minecraft?
 
Xeo
ye
 
Xeo
6:14 PM
> Total build time: 4540.19 seconds
finally
 
user1804599
6:49 PM
I am so bored.
 
7:13 PM
Well, I have Deus Ex HR to play...
 
7:35 PM
do eet
its so good
 
7:59 PM
/cc @jaggedSpire <3
 
@Borgleader :O
 
@jaggedSpire Also, Merry xmas, happy new year, happy holidays, merry feast of winter veil, etc, etc
 
@Borgleader Same to you <3
 
8:18 PM
Experimenting with a pcap util. It's supposed to capture the outgoing network packets to disk. I'm looking if it could keep up with 10Gbit+ network speeds. It turns out that I quite suck at this.
I get 10Gbit/s write speeds but then it turns out it's all in RAM due to unbounded queue.
Also I suppose tbb::concurrent_bounded_queue isn't supposed to be used with std::string :)
Maybe I should look into async disk access APIs rather then going the background-thread approach.
 
@StackedCrooked If memory serves, moves and parallelism aren't very happy friends; try using shared_ptr<std::string> or even just a raw pointer
 
With larger packets I get much higher throughput. But I'm testing with 1514-byte ethernet sizes.
@Puppy I did raw pointer. It was similar. Either way the producer is faster than the consumer. The disk write seems to be the actual bottleneck. (The queue grows to millions in size lol.)
Taking up 16+ GB of RAM.
I think I can make it faster by using larger packets. So I'd need a clever way to aggregate the smaller ones into a larger buffer.
I tried setting the ostream buffer size. But it didn't seem to have any effect. Even when using absurdly small or large sizes.
10
A: Writing a binary file in C++ very fast

HandMadeOXThe best solution is to implement an async writing with double buffering. Look at the time line: ------------------------------------------------> FF|WWWWWWWW|FF|WWWWWWWW|FF|WWWWWWWW|FF|WWWWWWWW| The 'F' represents time for buffer filling, and 'W' represents time for writing buffer to disk. S...

^ This is a nice insight.
I should try on a Linux machine too.
@Puppy My first approach would be a double buffering approach with two strings. So the producer would write to buffer1 while the consumer processes buffer2. Once it's finished it swaps both buffers (under a lock) and then processes that data while the producers is now writing to what used to be buffer2.
It turned out that 50% of the mutex lock attempts failed..
Anyway I should find something to eat.
 
 
1 hour later…
9:39 PM
@StackedCrooked If memory serves, the async I/O stuff is implemented in the kernel, so they can do fancy kernel stuff with it that you can't
 
Ven
10:10 PM
 
@Ven lol
 
@Puppy There's the boost afio guy. I wonder how he did it.
 
user1804599
10:25 PM
To use eval in Perl 6 you have to import MONKEY-SEE-NO-EVAL.
 
10:39 PM
@StackedCrooked Pretty sure it's just a wrapper on kernel async I/O
IOCP on Windoze and god knows what on Unix
 
user1804599
epoll
 
gaaah
bought Elite Dangerous on the Steam Sale
another "Must create account" shitstorm
fortunately they asked for nothing but my email and my name, which I gave as "Fuck You"
 
I bought Talos Principle, I hope its as good as I heard it is
 
Xeo
10:56 PM
I'm thinking of getting Skyrim and modding the shit out of it.
 
00:00 - 23:0023:00 - 00:00

« first day (2261 days earlier)      last day (2684 days later) »