« first day (2009 days earlier)      last day (3165 days later) » 

00:00
I meant the question had actually been worse before I've seen it
(in case that was too well buried - i maek frchen joek)
Of course. It's not a JSON library. It's a property tree library. If you need a JSON library, use a JSON library. — sehe 7 secs ago
Not. Again.
Oh wait:
He's the author of RapidJSON - lol
@sehe allright
didn't spend much (any) time to make it sound prettier
I really want to make a compiler that has the voice of mr. T
but that's 12 tones without a repeat
g++ … || pity_the_user
00:08
@milleniumbug He seriously complains about Boost Property Tree not being a conformant JSON library (where the name actually kinda implies it might not be a JSON library at all?!)
@orlp It makes more sense now without the grand rapids to return
"don't return a pointer of a local variable FOOL"
would be an amazing workplace
@sehe the 'cheat' is the D#7 to Dmaj
err D#7, not E#7
that transition is chromatic in the chords
but I like it a lot
@sehe the first two chords are chopin's waltz op 64 no 2 :)
@orlp It's noticable :) It's a good a find
@orlp That's like saying your screen name starts with. orly?!
@sehe I really like the i -> II 7 transition
what is up
00:13
I don't see it often
@orlp wanna listen to somethjing I made>
sure
@orlp The only reason it catches your ear is because all the rest matches (chord voicing, bass/waltz rhythm, melody topnotes). The most notable things are arsis and sixths below the melody
@sehe no, the reason it catches my ear is because I was inspired by it :)
this came from playing with chopin's waltz
00:14
@sehe I've been working a while on this melody too, wonder what you think soundcloud.com/orlp/unfinished-counterpoint
@orlp Ok. The reason it catches the ear :)
I
Im so excited I found out I can just walk into the practice rooms in the music department and actually play the piano
A real one
@orlp could easily be a french composer's neo-baroque
@sehe What style does that video sound like
@VermillionAzure are those violins synths?
00:16
@orlp yeah
which ones?
they're pretty darn good
All of them
no, I mean which synth :P
Oh it's a free midi one
sf2 sorry
I got it from the Newgrounds orchestral sound packs
@sehe .. is that good?
@VermillionAzure oh so it's sample
00:17
@orlp Idk
I'm not an expert
@VermillionAzure sample == recorded soundbit played back
@orlp Yeah maybe I guess
@orlp it's ... neutral. It's like saying "these words could easily appear in a poem by Edgar Allen Poe"
@VermillionAzure I liked the sound design of your song
...What does that mean???
00:19
the melody was acceptable, but not particularly noticable
Right
I expanded it from a really simple piano tune
@orlp I dunno how soundcloud works but that organ theme is interesting. Where does it come from?
the pipes, presumably
I did a short interpretation of the intro
00:25
@orlp Ah. That makes sense. I was mistaking it for an improvisation theme by Albert de Klerk, which was the "mandatory theme" in Haarlem's International Improvisation Concours around... 1996. Now I have to remember what that theme was.
@sehe I feel that a traditional organ as in the linked video does not do justice to the brilliance of the piece though
there are a lot of things that are not really noticable in the overwhelming sound of an organ
@sehe I actually really like this version
but please ignore the video, it's really really dumb
(you need a speaker/headset with good bass to be able to appreciate though)
who do you think I am :)
How am i still not able to do the method pointer correctly 0.o
anyone have a extra brain to spare?
i have too little of it already, sorry
just use std::function instead
00:35
wont hurt i guess
This guy kept a girl captive for 10 years, but don't worry, he was sentenced to 4 years in prison. #math http://ktla.com/2016/04/15/man-sentenced-to-4-years-after-victim-says-she-was-held-captive-sexually-assaulted-for-a-decade-orange-county-da/
sigh
i'll take one ticket to not the same planet as this monster
@orlp I guess it proves that Bach's music can't really be killed even by rendering it via dry midi
@sehe :)
@orlp I must admit the vid kept me there (I would not have listened the whole thing without)
I still like the version more than the organ
00:42
Wrong organ then. Also. Organs are acquired taste, much like wine
3
starred for being a bloodthirsty bear
hehehe
@sehe epic fail at 1:02
For now that piano transcription rocks. Even though the recording is low quality
that missed bass at 1:02 makes me so sad :(
00:44
You do it :) Also. The missingness of the bass is well below the fidelity threshold of the audio engineering work there
I think it didn't register indeed.
@sehe you mean he missed the note or the audio didn't pick it up?
to me it looks like he pressed too softly, whiffing the hammer
Both could be. Rewatching 3 times made me think it didn't sound at all
either way
of course I make tons of mistakes
he pressed too softly
sue him
but I'm not supposed to be a performing pianist prodigy :P
00:46
Nobody is
oh that guy is a little better than me
The part separation is way (way) better than the vid you linked (both)
@sehe not sure how why I didn't stumble on this transcription before
I've listened to quite a few
it's pretty good
@sciencefyll Wait until he starts doing member function pointers :)
@sehe cant wait
00:48
@sehe I don't like the real lows of a piano though
@orlp :shrug: It was in my related vids bar :(
im curius how he will play romeo and juliett tho
5 mins ago, by sehe
For now that piano transcription rocks. Even though the recording is low quality
@sehe nothing to do with recording quality
in general
nothing
I call bs.
00:49
I haven't seen a piano in which the bottom 1-2 octaves didn't sound like dogshit
There we have it :)
more like 1-1.5 I guess
I've never seen preconceived notions which didn't strike me as bs :)
QED
because right above the dogshit I find a piano to be very beautiful :P
damn his music is kinda "mental"
00:50
@sciencefyll mental?
It's a popular term for pianists since that "wonderboy" - lemme find him again
@sehe only problem with his transcription is that he needs 3 hands... if only there was a way to play the bass with your feet hurr
@orlp good question. insane, mad, crazy, regarding his mental state.
@orlp lol
Open deuren beleid
@sciencefyll I was thinking of Daniil Trifonov /cc
LOL to those you tweeting at the government emergency agencies about an unlaunched company. Legitimately laughing at your insanity.
00:57
but.. but.. why?
error: cannot convert ‘Categories::surf’ from type ‘void (Categories::)()’ to type ‘std::function<void()>’
I'm not sure they've fully grasped this "PR" thing
@sciencefyll Slightly less interesting (because less controlled) IMO. Still interesting and cool transcription
@sehe indeed. makes me think that music is the realm of insanity
have you guys seen the new doctor strange trailer?
im amazed they didnt just call the movie "the amazing matrix"
sometimes reddit delivers. https://t.co/f0PGKvHl8E
o.O waht
@sciencefyll try juggling videos. No different
@sciencefyll the function takes a parameter (Categories const&). You wouldn't notice because you usually call it this (that was in the answer linked before).
01:07
Dunno how
@StackedCrooked whitout relying on a random number generator... isnt that what rand() uses?
oops, forgot
2 mins ago, by sehe
Dunno how
@StackedCrooked what you just said is literally impossible
if your data can be generated, it's compressable :)
WO DID IT.. however.. its an awful method to do it..
01:12
You can narrow it for specific algorithms
maybe not by conventional compression algorithms
@sciencefyll did you post into the wrong chat?
created a global declaration of a void function that calls the class method xD
@sciencefyll That implies you are now creating an object to call the member on.
Why not just mark the method static if you don't need a (specific) instance anyways?
All this is in that answer I linked.
@orlp Well, as long as zlib can't reverse engineer it I'm happy :)
01:14
im gonna read that link of urs again :s
@StackedCrooked if you specifically target lempel-ziv algorithms the solution should be apparent :)
1 hour ago, by sehe
@sciencefyll So there you go http://stackoverflow.com/questions/2402579/c-function-pointer-to-member-function
To be fair, it's not the best post and it doesn't mention how it goes with static member functions (lolwtf)
the reason i struggle is because i need to call normal global functions with this as well, and then a class method recursivly (this from inside a lambda)
oh shiet, i should actually just rewrite the whole thing
@sciencefyll This is probably a better place to start: isocpp.org/wiki/faq/pointers-to-members
thanks
@sehe, how would you handle a normal terminal menu?
in school they tell us to just print out all the options and get the choice input and match it in a switch.
however im creating the menu with std::maps.
http://pastebin.com/1uj40Fw8
it makes it simpler to add dynamic elements and functions to be ran when menu option is choosen
01:37
@StackedCrooked but better than doing clever tricks for LZ you're better off just using a PRNG
That sounds right.
I just got burned in Java.
Building a really large string with += is a bad idea.
@StackedCrooked I'd say that's a tad too weak
that has an OK PRNG (PCG PRNG), which isn't much bigger
@Mysticial right cuz theyre immutable? what was the solution? stringbuilder?
@Mysticial accidently O(n^2) :)
It will need to reallocate and copy many times.
Dunno if Java has an geometric growth strategy like std::string.
@StackedCrooked you can't do that for immutable strings
01:57
Oh.
think of it like this:
That's bad.
for (auto c = some_source_of_characters) {
    s = s + c;
}
assuming the compiler doesn't do magic tricks here
you will keep reallocating the entire string into a new s+c temporary, and then move that temporary into s
that's how it happens in languages with immutable strings, always
you have to use some mutable type to collect the characters, and then turn that into a string in one go
e.g. in Python
l = []
for c in some_source_of_characters: l.append(c)
s = "".join(l)
and Java has something like StringBuilder for that
We should setup a secret Incredibuild cluster
why pay for incredibuild when you can use fastbuild
02:11
The hope was we could get a large build cluster going. For example, I have a few 256GB ram machines that are mostly idle.
I spent all my money on RAM and a fancy UPS and now I can't afford dev tools :-(
Thread-wakeup seems to be extra slow if the thread has been inactive for a very long time. Noticed that waking it up every ~5ms (using wait timeouts) keeps it reasonably responsive.
Of course active waiting (spinning) would make it super responsive. But consuming 100% CPU all the time is hard to defend.
@StackedCrooked You can increase the PIC sensitivity in Windows
02:26
Never heard of that.
But it's Linux anyway.
@StackedCrooked give me a second
#pragma once
#ifndef _timepriority
#define _timepriority
#include <Windows.h>
#include <Mmsystem.h> // for timeBeginPeroid
class TimePriority
{
public:
TimePriority()
{
auto err = timeBeginPeriod(p);
assert(err==TIMERR_NOERROR);
}
~TimePriority()
{
timeEndPeriod(p);
}

private:
static const int p=1;
};
#endif
In retrospect I should have disabled the move constructor, etc
@Mikhail OMG
you suck :P
boost::noncopyable is still nice sometimes
Also better include managment
does std::multimap allow elements with exactly the same key and value, cause i need to have multiples of one the keys but my values unique :c
Is the word "tacky" commonly used in US?
Yes, but I've never said it
03:15
How are writes to memory handled during speculative execution? The speculative writes must not become visible to the other cores.
@StackedCrooked what architecture?
C64 :P
Haswell
03:31
@DmitriBudnikov I'm done with all the Tribulation skins… as long as I'm willing to shell 64g. Well played anet.
03:48
wow now I can put 2 +5 power +5 AR infusions in one weapon for maximum visual effects and Fractal running
@StackedCrooked Only tacky people would ever even think of using such a word.
@StackedCrooked for (int i=0; i<size; i++) write(DES(i));
What's DES?
@StackedCrooked Data Encryption Standard. Feel free to use AES if you prefer.
Of course there are lots of others that work perfectly well also--those just happen to be a couple of obvious choices.
04:04
Sometimes intermediate links compress the packet payload to increase throughput. In order to measure throughput without the compression the payload should be "random" enough. Using a random buffer
Rotating over a large buffer filled with random bytes surely works. But, mostly for fun, I thought that it might not be cache-friendly. So instead we could have 4 buffers of, say, 256 bytes. Which gives us 1024 bytes. But using various combinations of xor it can be made much more.
or just use the xor random number generator, on the fly
And there's a second thing: I'd like to also have the checksum pre-calculated somehow.
Ah, well. Just toying with ideas :)
It's scary though how expensive it is to iterate over all the memory of each packet.
It's much slower than all lower-layer (TCP, IP,..) handling combined.
I prefer using TCP over IP, personally.
I meant from the viewpoint of HTTP looking down.
I meant it as a pun.
@LucDanton How that? New gold sink?
04:18
@DmitriBudnikov 2g per Trib skin, dunno if it used to be different
@DmitriBudnikov that simplifies to TP/I
@StackedCrooked If you care about speed, neither DES nor AES is even close to a good choice.
I just need to generate payload that doesn't compress well :)
The fastest encryption algorithm is called the No-Op. It's has O(1) complexity. It's also secure because nobody could possibly suspect the obvious.
AES seems overkill :P
@Mysticial zlib will see though it :P
At HWBOT, they use AES to prevent tampering of the results. But the key is stored in the binary that the user runs.
04:22
there's a variant of it which steganographically hides red herrings in the plaintext
Might as well play loudly on the speakers THIS SOFTWARE IS ENCRYPTED WITH ROT13
IOW, fundamentally insecure. But I don't think it's even possible to build something that is secure if the user has the binary.
Hardware support
@DmitriBudnikov Use double-ROT13 for extra security!
The actual use case was TCP over satellite which used some kind of proxy system. The physical bandwidth was 1Mbit/s. However, my implementation used all zeroes as payload. And since their proxies applied compression on the payload they got speeds of 100Mbit/s. They didn't expect that :D
04:23
@JerryCoffin That's too simple. You need ROL13 + ROR13. It's more complicated and more efficient!
Oh, after screwing myself over with Java String +=. I discovered something good that (almost) offsets that badness.
You can take a screenshot with only 3 lines of code. And a file-browser with another 3 lines.
I can't imagine trying to do that in C++.
Good C++ libraries are lacking
Particularly for "mundane" development
QScreenShot
I mean sure you can optimize to death your flat maps with excellent cache locality bla bla bla
@Mysticial It's just a function call :P
But then you need to send a JSON request over HTTP, something a baby with cancer & javascript could do, and C++ can't
04:29
// open a dialog for selecting a directory
QFileDialog::getExistingDirectory();
I'm surprised that a screenshot can be run without admin.
admin pixals are blurred
There's a lot of information you can leak from a screenie.
Oh yeah.
But even remote desktop doesn't require admin.
I had a feature request for build-in screenshots. And I did it in like 10 minutes. I spent more time trying to figure how to make it user-friendly then actually taking the screenshot.
04:33
I should make a HWBOT test where your score is the usable ram on the system.
AHAHAHA
So what happened with the += showed with the screenshots.
I even managed to implement an automatic update system for an IE toolbar plugin without needing user permission. That was back in 2008 on Vista (which tended to require admin for everything). Native apps can do that.
The HWBOT API requires that you send a datafile which is an XML.
I was building that XML with += the whole time.
But if you want to embed an image, you need to base64 encode it.
That worked fine with my small test image that didn't capture my entire desktop.
But when I tried it on that box (2560 x 1440), I was like... WTF?
Why is it stalling... Um... WHAT THE FUCK?!?!?
2560 × 1440 is also my screen res.
In the end, I couldn't avoid compressing the datafile. A 2MB .png encoded in base64 takes a while to send.
04:42
Wow, base64 is pretty efficient. Only 33% overhead compared to binary.
05:05
You're right. I hadn't thought about that.
I just called some stupid Java library to do that conversion for me.
Java has libraries for fucking like everything. Just not efficiently. :)
So one can not delete files on a external drive with NTFS format from a macbook
05:17
@Mysticial Yeah, at least with the raw Win32 API, it'd take like...six lines of code.
Oh, that isn't as bad as I thought.
is DC drawingcontext?
@JohanLarsson Device Context.
oh
have an upvote
do you think that 1-6 can be pinvoked or will it leak nasty things?
and wonder if it captures the adorner layer
p sure you just need System.Drawing or something
05:22
@JohanLarsson It's been long enough since I played with P/Invoke that I wouldn't even hazard a guess.
@DmitriBudnikov thanks looks right
we have a snapshot button in our app but it uses System.Windows.Forms
have scheduled it for a cleanup
05:39
@JohanLarsson It will leak just as much as the corresponding Win32 code.
Looking at CopyFromScreen's code on Reference Source, it seems to do exactly what Jerry's answer tells to do, just with some more exception safety.
whazzyup
06:09
I wrote a unit test today, the function prototype was int main(int argc, char *argv[])
yep, dog is still trying to eat the chicken given chance
// which is better..?
int main(int argc, char *argv[])
int main(int argc, char** argv)
I always use char** since it's in my muscle memory.
I don't like [] in general, I use the second
I think char** argv is more commonly used
also int main(int argc, char argv[][])
I never bothered learning how to define an array of pointers. I always use a typedef: int_ptr array[N]. (Since C++11 std::array<T*, N>. )
06:19
Job description : IT Manager
Minimum 3 Years Working Experience as IT Manager
Working Experience In Shopping Mall or Retail Industry Will Be Considered
lol
@StackedCrooked char **argv
Ah, so I've been doing the right thing :)
@StackedCrooked ...all except the spacing.
Shut up. I wasn't asking about the spacing!
int main(int argc, char * /* * * */ * argv)
so pretty
06:33
@StackedCrooked The poor asterisks all look so lonely this way...
int main(int argc, char * /* 😱 */ * argv)
how about... int main () ?
it feels like i just killed the whole conversation haha
ha.. ha.. :'(
06:50
is ok bby
07:03
sigh, yet another system which uses almost-ISO 8601-but-not-quite
annoyance
oh nevermind it's 8601 basic format
:+1:
The day python beats the crap out of C++. 450ns against ~700ns from iostreams.
lol competing against iostreams
The day <able person> beats the crap out of <paralyzed cripple in a wheelchair> at <any sport>.
fucking retard
Ven
Ven
07:23
Yo
@DmitriBudnikov i'm sure I can manage to lose
TIL I am an able person
Indonesia Takes Explosive Approach to Illegal Fishing
Fisheries Minister has seized and blown up 170 foreign vessels she says operated illegally in local waters
I like that minister
Ven
Ven
O_o
@caps I'm not Hubert.
Ven
Ven
RIP Hubert :(.
08:31
@jerry
@JerryCoffin No I meant facebook/monadics infer
user1804599
Hi!
user1804599
So somebody wrote an XML validator in JS.
user1804599
Except it's actually Emscriptened libxml.
user1804599
08:40
Emscripten makes C++ "write once, run anywhere." Checkmate, Java.
yup
except JS is JS right?
so I hear
user1804599
09:14
But what builds the Emscripten?
Looks like its self hosting
oh no
"write once, run anywhere you want as long as the code cannot be traced back to you."
8
write once, debug everywhere
09:35
by someone else
@Zoidberg Also Wide and every other LLVM-able language.
Ahh stimulants
I usually envision a high energy baseball game while I'm reading through my code
Is that an oxymoron?
09:51
Tony McGuire got the money
hi guys
Mark*
Ive been taking steroids this whole time it's getting harder and easier to program at the same time
just joking..
wat
anyone helpful online?
quick docker question
No, this is basically 4chan

« first day (2009 days earlier)      last day (3165 days later) »