« first day (1578 days earlier)      last day (3386 days later) » 

12:00 AM
It's like those people aren't even trying to pretend to make coherent arguments any more
which is even more insulting than the crappy arguments themselves
 
@LightnessRacesinOrbit Which is why it's funny.
 
4 hours ago, by Rapptz
https://www.reddit.com/r/programming/comments/2vadoz/snake_implemented_using_onl‌​y_c_templates/coga8uz
 
-20
Q: Naming convention for Stack Overflow chatrooms?

ItachiUchihaSome time back I came across a chat room created on Stack Overflow Chat named as Java Sucks. I wanted to flag about the name of the chat room, but didn't find any way to do it. Nevertheless, I thought that some moderator would come across it and eventually it will get blocked. Today, after few m...

^^ lol
The comments...
 
@Mysticial I lol'ed at the robot's answer
 
12:09 AM
has anyone tried react native
 
I react natively sometimes
night, kids
 
naively maybe?
 
just took a selfie. might use it as my next avatar.
user image
2
@Jefffrey ;p
byee
 
I hereby grant you permission to change your avatar to the pic above.
 
i prefer the current one
 
12:27 AM
@LightnessRacesinOrbit bullshit
 
is a folder a file?
 
@Blob Do you prefer to think of it as one? There's no universal definition of either "file" or "folder" that makes it clear whether or not one can be the other or not.
 
depends on the filesystem i guess
 
For example, at one time Unix stored directory information in fairly normal files, and included a header with a definition of the structure used to store a directory entry, so to read directory information you basically just opened a file and read in structs that represented the directory entries.
 
@JerryCoffin And that's no longer true?
 
12:40 AM
If I can't change it's file extension and open it with a text editor, it's not a file. Or at least this is the way I think of it.
 
@Blob Internally, it is but user programs now (at least normally) use opendir and readdir to do the job; I believe (but haven't tested) that attempting to pass a directory name to open will fail.
 
std::basic_fstream::open fails :C
oh well, at least it gave me an answer.
i'll just follow c++'s definition of files
wait wait wait
 
@Blob I was talking about the Unix/POSIX open system call (but fstream::open undoubtedly calls it indirectly, and its failing is probably because the system call fails).
 
$ objdump -d somefolder
objdump: Warning: 'somefolder' is not an ordinary file
 
So a folder is a file? Weird.
I learn something new everyday.
 
12:49 AM
well, not necessarily
 
why doesnt lounge<cpp> have a bot
 
Effort.
 
have you tried to write a good bot in C++?
i'd cheat and use python
 
Also, if anyone ever makes one, please name it KoalaBot.
 
it should be named Prismatic
 
12:55 AM
That doesn't have any 'Koala' in the name though.
In other words, it doesn't koalafy.
 
if i wrote a bot it would kick users who make bad puns
 
guys
open() doesn't discriminate against directories
also, i #included everything just to be sure
A FOLDER IS OFFICIALLY A FILE
 
@Pris Guess it would never kick me then, as I only make good koalaty puns.
@Blob Let's celebrate!
 
:D
can we get a pinned message saying folders are files please
 
Ask a room owner.
 
1:04 AM
wassup
 
Theeskyyy
 
@Blob What makes this worth pinning?
 
most productive thing i've done
 
@Blob Okay. I've pinned it.
 
ty
 
1:07 AM
Now I'm going to un-pin it.
 
well, it had its time
RIP greatest thing i've done
 
@Blob open does not care about what the pathname points to
It can be anything
 
@Blob Your accomplishment remains, even without a monument to its greatness.
 
@AMostMajestuousCapybara it'll return -1 on error
 
@Blob It lived by the wasp, and died by it.
 
1:08 AM
i consider a valid file handle to be "ITS A FILE :D"
 
@Blob Irrelevant
@Blob Well that's not the case
 
it's not?
 
You can open directories, sockets, pipes, virtual files, etc etc
Anything that has a path
 
they're all considered files, aren't they?
 
In the UNIX philosophy yes
In Linux I guess it's arguable
 
1:10 AM
if my keyboard can be a file, i want my folder to be a file >:C
 
what are we arguing..?
 
Your keyboard is somewhere in /dev/input/by-path
On Plan9 you can even do crazier things like cat /net/tcp/80/google.com
 
Ell
I don't like "everything is a file"
To me its a very leaky abstraction
 
Why not?
All abstractions leak. Your mom is no exception.
 
1:13 AM
"open, creat - open and possibly create a file or device "
As the call doesn't return -1, it's reasonable to say that it's either a file or device. As people wouldn't agree with "device", "file" it is :D
 
Ok, whatever floats your boat.
 
0.0f
 
1:18 AM
@AMostMajestuousCapybara F 0.0, and all the zeros it rode in on!
 
"Our programmers had to think about memory management! And thread concurrency! And laying out subviews!"
6
Our programmers had to think! Oh no!
 
I'm always afraid of thinking.
 
thinking sucks but its a necessarily evil
 
@Pris I'm tempted to bin that just on the basis of containing an embarrassing number of wrong words.
 
bin it
i cant fix the typo
 
1:29 AM
@JerryCoffin I didn't even notice :P
 
Ell
@AMostMajestuousCapybara yeah but most of them not like a seive
 
@Pris typos--plural. ("necessary" vs. "necessarily", "its" vs. "it's", no Cap, no period). Oh, and it's "can't". "Cant' is also a word, but means something similar to "tilted". :-)
 
@JerryCoffin Maybe he's taking the pill!
 
@AMostMajestuousCapybara Perhaps.
 
1:37 AM
i tend not to use properly punctuated language in chat messages
be thankful I dont completely butcher things like 'r' and 'u' :p
 
rusrs
 
smh
 
woah lounge <zoo>
lounge<animal++>
 
user image
6
damn
Good morning.
 
@MarkGarcia Combo breaker :P
 
1:43 AM
including everybut but me?
i don't know how i feel
 
I think I just made something glorious.
 
?
 
didn't have to say html. i'd figure it out
i'd try perl first, though
 
Do it.
 
1:49 AM
nice
 
Mhmm.
 
May I keep this with me? As a token?
 
Of course :)
 
@Pris I've noticed.
@Pris I am thankful. It saves me from having to kick you! :-)
 
Ell
I predict that its a dickbutt
 
1:51 AM
It isn't.
It's glorious-er
 
@MarkGarcia Good, sure. Not so sure about "damn good" though.
 
@Nooble Interesting...
 
Hehe.
 
@JerryCoffin TBH I don't know how to have "Damn good morning"s.
 
I don't get why this is cool. :(
 
1:57 AM
I take too much time to boot up.
@BaummitAugen wat
 
I just "see" some whit # on white ground.
 
> So that the code can be secure and knowledge.
 
@AMostMajestuousCapybara Security through obscurity poor documentation.
 
@BaummitAugen What browser?
 
Oh now it worked. Guess I fucked something up.
 
1:59 AM
@MarkGarcia Security through broken English
 
@MarkGarcia Wake up still drunk?
 
@JerryCoffin Wat how? What I can think of is when you won the lottery and all you're thinking about is how you'll spend the cash.
 
@JerryCoffin Drunk wasps
 
@Nooble Baseless libel.
@MarkGarcia I've never tried to confirm it, but I've heard that if you look at something like 3 or 5 years afterwards, lottery winners have a much higher suicide rate than others.
 
2:16 AM
I'd be happy with all that money.
I mean, can you imagine being so rich that you no longer have to work for the rest of your life?
 
@Nooble that's assuming you're careful with it
 
I guess you're right. But assuming that you won, say, $200m, what exactly do you spend it all on?
 
@Blob The local TV once reported of a family who won the lottery. Their ticket was crumpled by their baby and the big daughter decided to iron it (below a couple of clothing). Little did she knew that the paper was heat sensitive and the serial was blackened-out beyond recognition (the lottery agency would have still accepted the crumpled ticket).
 
@Nooble Well, I'd give half of it for tax because i'm so nice
 
2:23 AM
:P
@MarkGarcia Oh crap that must feel real bad.
 
if your friends/family find out, it can easily go from the remaining 100m to just a few K
few hundred K*
so, just enough to pay student loans
and at this point you realize i'm pulling numbers out of my hypothetical rectum.
@MarkGarcia the dude's face in the picture :|
 
> student loans
Inferior non-european detected
 
US. sorry :C
 
do you guys use any tools for automatically inserting headers into your source files
 
what auto header stuff?
like the ifndef crap? (i just #pragma once)
or like comments with author/copyright
 
2:27 AM
Yeah
 
@Nooble I felt it too. How much more for the family? The report stated that the father's relationship with his daughter had a fallout. Damn I just know he can't sleep with it.
 
yeah to which? D:
 
The inserting author/copyright
 
if humans were logical, random +money and -same amount of money should be equal. everyone lives as if nothing happened.
@Pris don't bother with copyright, and one problem solved. change name to "", and you solve the other.
 
@Blob Non-standard.
Although maybe I should start doing it for the sake of ease...
 
2:31 AM
@Nooble Accepted by virtually all modern compilers
 
@Nooble pragma once? pretty much all compilers worth using support it
 
@Nooble name a decent compiler that doesn't support it
 
You have a point.
 
but how will I absorb all the sweet sweet praise and glory attaching my name to my projects will doubtlessly bring me
 
@Blob rightfold's
 
2:32 AM
> decent
 
"oh, you wrote this incredible piece of code? you magnificent man!" /swoon
 
@AMostMajestuousCapybara Oh right. Also with that MSVC doesn't count.
 
What the heck, I'll start using #pragma once
 
MSVC isn't "decent". Most likely to be "descent".
@Nooble Good.
 
@MarkGarcia We didnt say all compilers supporting pragma once were decent, we said all the decent ones did.
:P
 
2:44 AM
 
 
1 hour later…
4:12 AM
reading book for english: "She then placed her left foot on his right and made a gesture, such as a woman makes when she invites a man to that kind of enjoyment of love which the holy books call 'ascending the tree.'"
whaaat
 
Can you give the author? That style is familiar.
 
Hesse
book's name's "Siddhartha". The book took a really big turn. :|
 
A book translated from German for an English class? Seems roundabout.
 
he also meets his friend in a dream.. then the friend turns into a woman.. then he drinks milk from the woman's breasts
last 5 books or so were translated from ancient greek
lol
 
 
1 hour later…
5:21 AM
> Haskell has its own advantages such as [...] clear, intuitive syntax inspired by mathematical notation.
> clear
> intuitive
enough internet for today
 
Do you really think someone would lie on the internet?
 
@Nican At least IMO, very few actually lie--but even fewer tell the truth.
 
5:47 AM
@StackedCrooked Do you watch these youtube.com/watch?v=DGbN_fIoX0o ?
 
6:16 AM
@AMostMajestuousCapybara I don’t know about intuition, but how would you make it clearer?
 
@LucDanton Mathematical notation is "clear" and "intuitive" for mathematicians.
I think "clear" is subjective.
 
Haskell syntax is very much pared down though.
 
A bit too much IMO.
 
eh, syntax
 
Syntax is the UI of a language.
 
6:28 AM
he says while putting every language pragma known to Man at the top of every source file as everybody does
@AMostMajestuousCapybara No.
 
There’s not much syntax because there’s not much going on. Adding more syntax won’t have the language do much more on its own.
 
It's not about adding more syntax, it's about making it more legible.
 
That’s a different goal from 'clear' imo.
 
That's the meaning of "clear" to me. Legible. Understandable.
 
6:33 AM
'Clear' as in I can tell at a glance that there are function calls, function abstractions, data constructors and pattern matches—because there’s not much else going on anyway. 'Legible' as in you can gather what all those calls, functions, construction & destructuring are meant to perform/represent.
 
I'm not convinced you can have clarity without legibility.
 
Do you find Forth syntax unclear?
 
I don't know Forth.
 
-2
Q: Internet is very slow with a new PC

DovydasDoubsI bought new PC and I have problem now. My internet is very slow and keeps changing it's speed. In old computer the speed was around 200 kb/s, now it's around few kb/s. My internet is slow everywhere (while browsing, downloading, playing games online). When i plug my internet cable to old PC the ...

 
Refreshing question like a mad man.
 
6:34 AM
It looks like a bunch of words, and it is.
 
For example, I find OCaml way nicer to the eye than Haskell. Maybe it's just the difference in experience, also.
 
That is what I am doing right now.
 
> : square dup * . ;
ok
> 4 square
10
(slightly edited to make it look like there is an > prompt)
 
Forth is insane.
 
Syntactically speaking you have some words (i.e. functions) and some literals (just the one really), as well as some operator-looking functions (:, *, ., ;). That’s it.
@AMostMajestuousCapybara Eh ML-like looks all the same to me.
 
6:37 AM
@wilx not having to name your temporary variables is convenient though :)
 
Also when I say Haskell syntax I really mean the base language. The actual GHC Haskell programs in the large are more… interesting.
 
I'm more talking about that second, slightly obfuscated category :)
 
Well, I do find arrow syntax cumbersome.
@AMostMajestuousCapybara Obfuscated at the syntactic level?
> focusOnDashes z | Dashes _ <- extract z = True
^my second go at it, at first I had focusOnDashes (extract -> Dashes _) = True. Can’t say I really prefer one over the other though.
 
@LucDanton Yes.
 
What programs do you read?
 
6:42 AM
Bartek's it varies, but usually by experienced Haskell programmers
 
Don’t get me wrong, there are plenty of Haskell programs where I can’t tell what’s happening. But I can parse and understand the individual bits. Just like I can read the words of a Forth program, but not tell what it is doing.
And I don’t think there’s much syntax that will make me understand those programs better.
hex : f* * e >>a ; : sq over dup f* ; 4666 dup negate do 4000 dup 2* negate
 do bl a + i j 1e 0 do sq sq 2dup + 10000 > if 2drop 3drop bl 0. leave then
 - j + -rot f* 2* k + loop 2drop emit 268 +loop cr 5de +loop
^supposedly Forth
 
Maybe not the best example actually.
 
Yeah that syntax is 90% calls, functions, constructors & pattern matching.
> getResults (Query { resource = resource }) =
no record magicks!
 
-2
A: Msgpack between PHP and C++

Muster popWTF....you went to use msgpack? it must a joke~~~ use JSON to transfer the data between PHP and C++

 
lol
 
6:48 AM
I'm trying out MATE instead of XFCE because I'm a dirty commie.
 
@AMostMajestuousCapybara Do you find anything suspicious about the Forth examples I gave?
 
-2
Q: why used override method into oops ? I am Confuse about used

Raj Kr. Sharmawhy used override method into oops ? give me reason. Actually I confuse about used override method into programming. so please tell me .

 
I really thought they would serve as a good example of near inexistant syntax :(
 
destroy please
 
I'd say the syntax doesn't qualify as "clear", maybe barebones, if any? :p
 
6:50 AM
@Rapptz That's a lot of tags.
 
I'm not even sure how to define "clear syntax" actually. Probably something that gets "close" to human language. Or something I am used to. Bias.
 
Right, barebones! And it’s all 'calls' so to speak. Although I suppose it would make sense to consider : … ; a special form for definitions. So the program is a handful of definitions, that stand out from the rest, and lots of 'calls'.
A garden path sentence is a grammatically correct sentence that starts in such a way that a reader's most likely interpretation will be incorrect; the reader is lured into a parse that turns out to be a dead end. Garden path sentences are used in psycholinguistics to illustrate the fact that when human beings read, they process language one word at a time. "Garden path" refers to the saying "to be led down the garden path", meaning "to be misled". According to one current psycholinguistic theory, as a person reads a garden path sentence, the reader builds up a structure of meaning one word at a...
 
@LucDanton Ooooh nice
I can't read it because it got deleted :(
 
@AMostMajestuousCapybara I wrote this Haskell program yesterday, is that too much or too little syntax (the fun starts at line 54)?
 
I read it yesterday hehe :)
 
7:03 AM
Well then I actually fixed a bit. now it’s
        lefts = unfoldr ((dup <$>) . left) z
        rights = unfoldr ((dup <$>) . right) z
        dup = join (,)
which I think is not too nice—I’ve never used (foo <$>) . bar before, curiously enough
 
I don't understand everything, but tbh I'm not proficient in Haskell.
I can read the "OCaml bits" so to speak
 
Right, but the syntax!
 
It's OK.
Nothing too fancy
 
That’s honestly what most of the Haskell I read looks like.
 
You write what you read ;)
 
7:08 AM
> and i know what sequential processing means, conceptually. but here, memory access wise, it is irrelevant which 'index' each object has - what matters is only where it is found in memory. and in this case, the question is why it should matter when the data the CPU needs is the same size as the cache line. – d7samurai 3 hours ago
 
@Rapptz Oh, thanks. I'm not sure but I think this guy may not have heard of prefetch?
 
> focus:reverse pre ++ post
I actually don’t know which way this associates, and whether there’s any way it’s preferable.
 
@AMostMajestuousCapybara I got lost in that comment thread.
 
I'm not sure why he deleted that question.
 
Isn't Focus a stack-based language?
 
7:33 AM
-4
Q: Java vs PHP career

twindicated70I have a background in Java and I also have a year internship experience in this field (web app). Now, I have job opportunity about web development using HTML, CSS, MySQL, and PHP. I also have educational background in HTML and CSS but I have no experience in PHP. I am more interested with web de...

 
@LucDanton Oops. I didn't read it all yet :/
 
@LucDanton not this again!
@R.MartinhoFernandes o_0 AGREED!
 
@LucDanton yeah, it's things like that that keep me from grokking Haskell (or: feeling comfortable). I'm bad at remembering stuff like that, so I will just add parens or stay away...
@thecoshman pfft
 
7:59 AM
@sehe FTR both cases mean the same thing
and yeah parens are fine
 

« first day (1578 days earlier)      last day (3386 days later) »