« first day (841 days earlier)      last day (4099 days later) » 

user142019
12:00 AM
In computer programming, a function may be described as pure if both these statements about the function hold: # The function always evaluates the same result value given the same argument value(s). The function result value cannot depend on any hidden information or state that may change as program execution proceeds or between different executions of the program, nor can it depend on any external input from I/O devices. # Evaluation of the result does not cause any semantically observable side effect or output, such as mutation of mutable objects or output to I/O devices. The result va...
 
Which means, deterministic
 
user142019
Not exactly.
 
user142019
myglobal = 42;
foo();
 
user142019
May also be deterministic.
 
5 hours ago, by Zoidberg
The pound sign is a retarded L, the Euro sign is a retarded E, and the dollar sign is the function application operator.
cool
 
12:12 AM
@sehe: the yen, on the other hand, is the classic Y combinator.
 
:)
 
user142019
If I have an 32-bit integer 11110000, how do I get 1111 out of it? (i & 0xF0) >> 4, right?
 
with an unsigned cast, probably
 
@Zoidberg The bit shift will drop the zeros, so you will still have the MSBs.
 
user142019
@rici i is uint32_t.
 
user142019
12:16 AM
@Code-Guru what's an MSB?
 
@Zoidberg if you only want the 1111(binary), then you also need a mask:
 
@Code-Guru I thought the same but if it's 32-bit you need the AND
 
@Zoidberg Most significant bits.
 
user142019
I just want the first four bits of 11110000 where the first one is 1.
 
The most significant bits are private
 
12:17 AM
@AndreiTita oh...my bad. I missed the masking because of the line wrapping on my end.
 
ToString then substring then convert?
 
@Zoidberg It's correct.
 
user142019
I never understand what "most significant" and "least significant" means.
 
@Zoidberg nvm...I missed the`&` in your expression. With that mask, it looks like what you posted originally will work.
 
@zoidberg, do you mean you want exactly four bits, or you want all the bits starting with the first ' 1' ?
 
user142019
12:17 AM
Ah okay. :P Thanks.
 
@zoidberg: most significant means that it corresponds with the highest power of 2
 
@Zoidberg The ones which contribute most to the value are the most significant, ie the digits on the left in English (and other European languages) writing
 
think of it as "biggest"
 
@rici That is much better than what I was trying to write.
 
user142019
.-.-.-.-.-.-.-.-.
|0|1|2|3|4|5|6|7|
'-'-'-'-'-'-'-'-'
 
user142019
12:18 AM
This is a byte. I want bits 0..3 as an integer.
 
If you are viewing the bits in that order, then the MSBs are to the right.
 
then your expression was fine.
 
.-.-.-.-.-.-.-.-.
|7|6|5|4|3|2|1|0|
'-'-'-'-'-'-'-'-'
This is more typical.
 
user142019
@Code-Guru so in my example the MSB is number 0, right?
 
user142019
@R.MartinhoFernandes oh yeah. :L
 
user142019
12:20 AM
Wait what.
 
user142019
Minecraft y u 24-bit numbers. xD
 
@Zoidberg Is number 0, the "ones" place? If so, then it is the LSB.
 
.---.--.--.--.-.-.-.-.
|128|64|32|16|8|4|2|1|
'---'--'--'--'-'-'-'-'
 
In computing, the most significant bit (msb, also called the high-order bit) is the bit position in a binary number having the greatest value. The msb is sometimes referred to as the left-most bit due to the convention in positional notation of writing more significant digits further to the left. The msb can also correspond to the sign of a signed binary number in one or two's complement notation. "1" meaning negative and "0" meaning positive. It is common to assign each bit a position number, ranging from zero to N-1, where N is the number of bits in the binary representation used. No...
 
The "one-twenty-eights" place is the MSB in an 8-bit binary number.
 
12:24 AM
arabic numbers also have the most significant digit on the left, although if you're reading right-to-left that means that you read the most significant digit last. As in old english or irish, "four and twenty"
thanks for letting me get that bit of trivia off my chest :)
 
The chest is a terrible place to store trivia.
 
user142019
So if I want the four MSBs, I use (byte & 0x70) >> 4, right?
 
You had it right the first time.
 
yeah, 0x70 only has three bits set
 
Right.
 
12:28 AM
@R.MartinhoFernandes Ohai, just noticed this:
Y U NO R-o-3? Y U NO lock_guard + R-o-0?
 
user142019
@rici so I need 0x80?
 
2 mins ago, by Andrei Tita
You had it right the first time.
 
user142019
Oh yeah right. Thanks.
 
@zoidberg, what andrei said
 
2013-02-03 01:30:20 [INFO] [Minecraft] [Server] how's the server erm.. serving?
2013-02-03 01:30:36 [INFO] [Minecraft] <lucdanton> no noticeable issue
 
user142019
Oh awesome a package with 24-bit integer types.
 
@R.MartinhoFernandes I bet you did :2!rev to fix that from zoid's original /cc @Zoidberg
@Zoidberg meh. where? better go python then
 
@Griwes In the "fucked up" category, we have this.
5
 
@Griwes lol
 
user142019
12:36 AM
Minecraft uses 24-bit integers to store block data.
 
@EtiennedeMartel WOW. I like that already. Just paused to tell you that miraculously, the fingering and keys on the piano are (almost?* ) entirely accurate. (* rewinding to check the faltering right hand notes... hard to tell on first glance: it is in mirror image, messes with my brain)
@Zoidberg minecraft. ah, eminent development platform
 
@EtiennedeMartel Lol at "Scalpel warehouse - free puppy with every order"
 
user142019
Wait. Why would I care.
 
user142019
I can store it however the fuck I want.
 
user142019
The way the chunk data is transmitted is different anyway. xD
 
12:42 AM
@sehe It's very old non-serious code :(
 
user142019
@sehe can you see on that server how many chunks are currently in memory?
 
@Zoidberg you tell me how. "chunks"?
 
user142019
I have no idea how. :P
 
 
user142019
Ah thanks.
 
user142019
12:45 AM
Say there are 5000 chunks in memory. I think that's reasonably.
 
user142019
 
user142019
Oh well, enough.
 
@R.MartinhoFernandes you quick fixer upper!
 
@EtiennedeMartel Ok, you have won.
 
12:53 AM
@Griwes It's on pause again here...
 
The External World is by far some of the darkest, weirdest, fucked up piece of animation I have seen. And it's awesome. True art.
 
Hmm, why does that expose the mutex...
 
@EtiennedeMartel That was absolutely awesome shit.
 
Sounds like a bad idea that can only end in deadlock disasters.
Is it still buggy? If so, for what reason? — sehe 4 mins ago
@sehe Yeah, that was it.
Well, that and the missing typedefs.
 
@R.MartinhoFernandes The missing typedefs. I would never know. I guess you mean on the 'cookie' for iterator conformity?
 
12:59 AM
@EtiennedeMartel What... ... what in the world...
 
@sehe Yeah. I'm not really sure if they're required for this.
 
I'd wager no. I'm not even too sure about the copy semantics of the RAII handle. It might be overkill. Still, simplifying the code was a win
@EtiennedeMartel Having reached the end, I still like it. I think it's 80% the music. And the restraint. In all it's explosiveness it is really quite restrained. Nothing is "milked" - though at the same time, everything is over the top
 
@sehe It is overkill. The range-based loop only binds the temporary to a reference. It would only break if you used open() by hand.
 
You know, there used to be villagers in this, well, village.
 
Aaaaaand: we should make this our new standard clip for "slap over the head with a wet fish": 6'51"
@LucDanton Wait. What village. You mean, MC?
 
1:04 AM
Ye
 
I can't really cry about my code after watching The External World.
I don't even know what to do with myself after having seen that.
 
Carry on
 
@R.MartinhoFernandes re: tweet, are you enjoying life in Berlin? (Or did you realize that maybe it could end up being for more than just a year? Meh. I'll just ask: what did you realize?)
 
@EtiennedeMartel Can't go wrong there.
With this, I CAN GO ON
BACK TO THE COODE
 
1:10 AM
Don't say that, it makes me think about Celine Dion.
 
?!
 
I can go ooooon and oooooon
I'm ashamed that I got that reference...
 
You should be. I could guess it
 
Wow, that's disappointing.
For some reason, my synthesized speech inside a keyboard hook only works when I make it say something at the beginning of the program.
I also once made the mistake of not speaking asynchronously and then pressing like 5 keys, so it had to speak 10 times before finishing (since my sscce didn't filter keystrokes into up vs down)
 
@sehe well, a whole apartment of college girls dragged me to see Titanic shortly after it came out. I couldn't say no to that.
 
1:17 AM
I understand
 
is llvm.org down for you guys? it's been almost a whole day, I'm starting to think it's not really down
 
Oh, that's why. I used CoInitialize without telling it my application was multithreaded.
 
@doug65536 Down here.
 
@EtiennedeMartel thanks
 
Though it wasn't working before I tried the hook in a new thread anyway.
 
1:20 AM
@doug65536 yes
@chris also, call that on every thread
 
@sehe, Oh, I'm not as familiar with COM. I should be by now, but I've never mixed it with threads.
And my sscce worked after taking out the extra thread...
 
It's not really any worse than just threading in C++. IME Free Threaded Appartment is really the simplest mental model ("you are responsible"). Well, aside from STA
 
if a given COM object doesn't register itself as multithreaded, and the client is multithreaded, it will setup a message pump to marshal calls into the single-threaded com object
 
Okay, it works when I use CoInitializeEx(nullptr, 0);, but not CoInitialize(nullptr);, one thread.
 
in other words, messages get serialized and queued. Everything is marshaled across apartments regardless of threading
 
1:23 AM
Oh, the default is multithreaded.
 
user142019
2000 chunks take 32 MB of memory.
 
I'm guessing it's something about the Speech COM being multithreaded then?
 
a com object can be "free threaded" bypassing the marshal through queue
 
@doug65536 yup. Like I said, I prefer the mental model there
@chris I don't have a clue what you're utilizing it for. On the issue of initializing, MSDN should have definitive information (COM(+) is ... well nearly 20 years old now maybe) and I have a feeling you're overcomplicating. Unless your client is multithreaded, don't even think about it. Just play STA
 
I love it. I'm wearing the magical fabric of the world thin just to play with a toy.
 
1:29 AM
@sehe, I generally try to avoid COM because it's annoying to use. This was just a small thing to type what to make it speak anywhere and then make it speak it. However, it's working perfectly now (I hope) with one thread.
 
there is a STA apartment and a MTA apartment. calls from one to the other are serialized and marshaled. calls that don't cross apartments proceed normally (no queuing)
 
It could come in handy some day when I'm bored and don't feel like needing an application-specific textbox to type into :p
 
the com object's implementation determines which apartment it is in.
 
COM is annoying because of the stupid 'apartment' terminology. WTF could not M$ just explain to experienced developers exactly what is happening in STA/MTA etc. Fuck COM.
 
yes that stupid terminology held me back for a while. think of it just as two classifications of objects, those that are strictly singlethreaded and those that aren't. multithreaded objects must serialize calls to single threaded objects
 
1:33 AM
Someone's in a foul mood ...
 
user142019
> A Notchian server only accepts digging packets with coordinates within a 6-unit radius of the player's position.
 
user142019
Dat terminology.
 
I'm bored you guys
 
@MartinJames this really shows ignorance. Apartments are inevitable. COM is not unique. App domains in .NET serve roughly the same purposes. This is really just the usual stuff to interact between components in a message-passing style to enable location transparency (and other things, but I'm too lazy to think about it)
@doug65536 Well, the crux is, a DLL component can also be hosted out-of-process (DOM+ registration) so it is effectively in another apartment. The fact that that just works(TM) is marvelous.
(enables you to run the same code in a different security context, without any code changes. Enables you to share an instance of a COM server across multiple remote desktop sessions, stuff like that. I just think for network distribution you need to meddle with monikers/transport channels in code to an extent)
 
within the same machine they use shared memory for cross-process data transfer and the performance is really good
 
1:37 AM
Pricisely 'interact between components in a message-passing style', (with some more detail), fine. If I want apartments, I'll rent or buy one. On this issue, I seriously wish to remain ingorant.
More - I have only a limited time to become familiar with such concepts. If I don't 'get it' after 30 mins. of Googling, I don't use it.
 
@sehe yes and it can be used for isolation of plugins but you don't see that done very much - windows WS-Management implementation does it
 
More - the only COM I use is COM automation of Excel for displaying results/stats/graphs. It works, but what a PITA! Also, there are more than a few automation 'issues'.
 
@MartinJames the cause of most of the bad experience is their laziness of making every parameter "variant" and just throwing ATL at the implementation to provide late binding. I think the automation idea is great. you have an alternative?
 
Hmm.. maybe I go to bed now. Some of you may have sensed that I've had too much Bishop's Finger tonight for my own good. I'm going to stop posting now before I embarrass myself any further...
..and it's Wadworths XXXB on tomorrow, so probably no sane posts then either. Good night everyone!
 
cmake goes crazy and loops indefinitely if I try to point it to clang.exe
 
1:52 AM
Hi guys.
 
@Jeffrey HI! in which language do you program?
 
@user1690130, usually PHP, but I'm going to hate it and go to Ruby or something else
 
@Jeffrey neat! though I do not know eithe one
 
It's so hard to get used to the syntax of a new language
 
@Crowz depends on the language.
 
1:56 AM
@user1690130, I'm kinda in love with C++ and I don't know why. But Ruby and Python are some very good languages.
 
@user1690130 Going from C and java to python and C++... python isn't terrible but C++ is awkward imo.
 
@Jeffrey for some reason i got started on perl
 
@Crowz, yeah, I've found pretty hard to get used to Objective-C
@user1690130, never really tried it.
 
user142019
Objective-C is easy.
 
Objective-C is weird at first
 
1:58 AM
@Crowz do you know how perl and python differ?
 
user142019
Only the syntax.
 
@Zoidberg, yeah it's easy but has a weird syntax for me
 
@user1690130 No idea hah never used perl once
 
user142019
Apart from the syntax it's very similar to Ruby.
 
I've used Ruby before... it seemed fairly intuitive
 
1:59 AM
@Zoidberg never heard of ruby
 
user142019
wat
 
@Zoidberg is it open source?
 
Objective C doesn't have functions, but messages... so something like int funct(int x, char y); is [funct: (int) other: (char)]....
 
user142019
A language is not "open source".
 
user142019
2:00 AM
An implementation may be open source.
 
user142019
And Matz' implementation (the original one) is.
 
@Zoidberg ok perhaps that is what i mean
 
tryruby.com
 
user142019
@Jeffrey Objective-C does have functions.
 
@Zoidberg i run perl on command prompt on windows
 
user142019
2:00 AM
void foo(); // function in Objective-C
 
There are open-source implementations of must mainstream languages.
 
user142019
@user1690130 Perl is not Ruby.
 
@Zoidberg, yeah but it's just because it inherits from C.
 
@Zoidberg could i run ruby on a cmd?
 
user142019
@Jeffrey :P
 
2:01 AM
@user1690130 My condolences.
 
user142019
@user1690130 I suppose there is a Windows implementation.
 
user142019
inb4
 
user142019
 
@R.MartinhoFernandes what?
@Zoidberg that i the only way i can do anything
@Zoidberg no windows implementation, not worth it for me
 
2:02 AM
I'm drunk and I think that programming in C is kinda fascinating....
3
 
user142019
Visit ruby-lang.org. There you can find the official implementation and it probably has a Windows installer of some sort.
 
which is the best language for scraping?
 
user142019
Scraping what?
 

 
2:03 AM
from the internet!
data
 
s
 
user142019
For extracting information from random text from the Internet I'd use Perl.
 
user142019
Also plonk.
 
aaa
 
@Zoidberg that' what i'm doing! :)
 
2:04 AM
t
 
user142019
Ahh this feels good.
 
The language is kind of irrelevant.
 
user142019
Plonked three people today.
 
a
 
user142019
Jeffrey act normal you idiot.
 
2:05 AM
.
 
user142019
Keep your cat off your keyboard.
 
guise i wanna be 1337 hackz0r wut language be hack0r with?
 
user142019
You can track IP addresses with VB. With a GUI, even.
 
Java.
 
@Crowz poking opcodes directly into a hex editor of memory
 
2:06 AM
Here's my next question
 
user142019
Java is even more terrible than VB.
 
user142019
It's a wonder.
 
(And I apologize to @doug65536) for the repeat
 
@Zoidberg why do you hate java so much? What did java ever do to you? :(
 
Suppose I have a database of 8 people
 
user142019
2:07 AM
It made me sick and annoyed and bored.
 
@Crowz which button do I press to hack someone?
 
There is a search engine on a website with 40 million people
 
@Borgleader usually enter :P or left mouse button
 
user142019
It has absolutely no interesting features, and it's just fannoying to work with and fverbose.
 
I meant that I have an 8 million person database
 
2:08 AM
The answer is "yes".
 
I'm wondering what is the best language for searching whether a person in my database in on that website. And if so, how I can scrape the information linked to that persons's record
@R.MartinhoFernandes you talkin' to me?
 
user142019
If I'd need to target the JVM I'd rather pick Clojure or Scala.
 
user142019
Or maybe even JRuby or Jython but I've never tried those.
 
user142019
Or Erlang. :D
 
@Borgleader $ftp (their ip)
 
2:10 AM
I think "What is the best language?" is the wrong question for that, so I think the answer is "yes".
 
The f, just happened?
 
user142019
I can hack Google!
$ ping google.com
 
@R.MartinhoFernandes not the best langugae per se, but best way to do this
 
what's better? a Ferrari or a dump truck? depends on if you have 3,000 kg of dirt to carry somewhere
 
@doug65536 ferrari always
 
user142019
2:12 AM
Ferrari will do just fine.
 
user142019
Only it will take much longer. :P
 
@Zoidberg the leet hackers use pingwait
 
@Zoidberg, I had some problems with my wireless keyboard... jesus
I had to reboot twice...
Sorry guys
 
wireless sucks - I have everything wired
 
user142019
I have built-in keyboard.
 
2:15 AM
@doug65536 same with your internet?
 
yes
 
@doug65536 very conservatve, i like :)
 
user142019
So I don't have the pain of wires and I don't have the pain of batteries.
 
user142019
Also wireless keyboards that don't just work suck.
 
night
 
user142019
2:16 AM
Also sleeptime see you later.
 
wired has near perfect reliability. wireless has the whole battery issue
 
@Zoidberg, same here, but I use another keyboard when I play Minecraft...
see ya
 
Do any places allow dogs at work? I wanna work at a place where I can work and have my dog
 
user142019
Google.
 
user142019
They have a pet centre where they can play and get washed.
 
2:17 AM
@Crowz wouldn't it be a major distraction?
 
user142019
(I'm serious.)
 
@doug65536 I'll just throw the ball REEEEEEALLY far
@Zoidberg Google? I went on a tour tuesday
 
I think that at Google you are allowed to go around the building with skate-boards and stuff
 
You're not allowed pets here (at the hospital) but I guess it's a given.
 
And you have also a "relax" room where you can play ping-pong or xbox/playstation/wii...
 
2:19 AM
@doug65536 you mean that it drains your battery faster?
@Crowz be a professor? dogs all over campu
 
@user1690130 no I mean if the keyboard or mouse or other device is wireless, it must be battery powered and you have the chore of replacing it and the unreliability when the battery gets low
 
@doug65536 oh interesting
 
I wanna take dogsled to work
Meat is cheaper than gas
 
@Crowz how about working while flying around above the ocean with a large para-sailing desk being pulled by a speedboat?
 
Why are you always more social when you are drunk?
 
2:22 AM
@doug65536 don't be ridiculous
 
@Jeffrey Inhibitions are less effective.
 
You'd need more than a speedboat to pull a desk in air!
 
@AndreiTita, why do we have inhibitions in the first place?
 
@Jeffrey Cause we're fucked up.
@Jeffrey were you the one who linked some Lindsey Stirling some weeks ago?
 
@AndreiTita, I don't even know who she is...
 
2:26 AM
Damn
Got the wrong person.
 
I've probably linked this and this in the last few weeks
 
I know the first.
 
@AndreiTita, that's a very good song when you just want to stop thinking and feel...
 
How hard do you guys think it would be to code an app that would dock the SO chat in a corner of my browser?
 
Ah I found it - it was a bloke named jonathon who also had a pink avatar.
I knew it was something like that...
 
2:33 AM
I'm not sure exactly if it should be in browser or not, but I'd like to be able to chat without having to actually open the browser tab everytime
 
@AndreiTita, probably not an LSD tab on the tongue eh?
 
@Jeffrey TIL what's on @Jeffrey's tongue.
 
@AndreiTita, TIL?
 
TIL @Jeffrey didn't know TIL means today i learned.
 
@Jeffrey Today I Learned
 
2:35 AM
Today I learned TIL then
 
TILception
 
It's so hard to do the dance they do in the first video...
 
After I started using this acronym I realized I literally learn something new every day.
Or almost.
 
@EtiennedeMartel guess what: pastebin.com/Uu7Upyet - I'm going to make some people happy at the tubes :)
 
@AndreiTita Most days I learn of a new way in which I'm an idiot. Isn't that great? :)
 
2:39 AM
@Borgleader Whatever works for you, man.
 
@Borgleader, either everybody is an idiot or nobody is. That's my philosophy man
 
@Jeffrey My money's on the first one.
 
@Borgleader, and a life full of idiots is kinda funny
 
It's not as depressing as it sounds. I see dumber people than me every day. I just realize new ways in which I could be smarter/less ignorant.
 
What should someone write about themselves in these "professional" type websites?
 
2:41 AM
And if I ever get depressed about myself, I get a boost from knowing I'm not the worst (peopleofwalmart.com)
 
@Crowz That they are awesome and have a huge penis (if male) or definitely no penis at all (if female).
 
@Borgleader, seriously there's no absolute dumber or absolute smarter. There's smart people in some context that are dumb in everything else. The concept of intelligence is so vast...
 
@Jeffrey That last bit was not about intelligence
Check the website, it's not people doing dumb things... it's indescribable beings
 
@Crowz Perfect. Don't forget to put the link in your CV.
 
2:45 AM
 
@Rapptz: Do you know if google translate ever makes any mistakes in the phonetic typing of the korean alphabet? I'm using it to make sure I read things correctly.
 
@EtiennedeMartel posted at the tubes youtube.com/…
> That link was waaay too spammy. I'm not downloading Livyblabla.exe just to see some notes. So I wrote them down from the original video. See downloads.sehe.nl/stackoverflow/TheExternalWorld.pdf (lilypond source also available)
 
what is the difference between CV and resume anyway?
 
@Crowz That's the second penis related thing I see today...
 
(why don't YT comments onebox anyways) - lol
 
2:46 AM
@Borgleader Did you see a penis today?
 
@Crowz resume is for a typical job.. CV is for profs listing publications
 
@Crowz Resume is the term mostly used in America and CV in Europe but they are the same thing really.
 
@user1690130 Capital Venturists
 
@sehe Lacks the slap.
 
@Crowz Mine yes, but that's not the point. There was a post on reddit which was a screenshot of an email sent by the Google+ team saying something like "we detected that the name you gave for your profile: Penisface McPenis, might not be an actual name"
 
2:48 AM
@Borgleader Ahahahahaha.
 
@AndreiTita Meaning? The slap?
 
@Borgleader "McPenisface... that's Scottish, right?"
 
@sehe Yes.
@Crowz Could be Irish too.
 
@AndreiTita I thought you meant a "bitch slap" with that comment. Cheesy downloader sites must die
 
2:49 AM
there we go
 
He should respond with "how dare ye insult my family name? THE MCPENISFACES ARE PROUD"
 
in Java Sucks, 12 secs ago, by sehe
Can we cut it out with the unnecessary singleton worship?
 
@sehe Oh gods you are still keeping that room alive?
 
Who is?
 
I honestly don't understand why people hate java so much
 
2:51 AM
Java keeps it alive
Anyhoops. Off to bed
 
Nightey.
 
:)
 
Ok i'll be back in 10 minutes, I have to learn those moves
 
@Crowz Well as I don't work with Java and don't use it for anything I can say I don't really understand it either but I'm open to the possibility that it is really as terrible as some people say it is.
Except @Zoidberg.
 
I mean, I wouldn't think it'd be a great choice for many applications... but it's easy to do something quickly in
 
2:56 AM
Hahaha, I love reading korean words out loud and realizing they're actually english words. 서스펜션을 --> seoseupensyeon-eul --> suspension
 
@Borgleader is that a real word in Korean, or is it just an English word in weird characters?
 
@Crowz Well I took it from a korean article
From the brief time I spent studying japanese they have a lot of words taken from english which they simply adapted to their alphabet. I'm guessing it's the same for Korean. They probably didn't have a word for "suspension" already so they just used the english word but wrote it so it would sound as close to the original as the alphabet permitted.
 

« first day (841 days earlier)      last day (4099 days later) »