« first day (1749 days earlier)      last day (3203 days later) » 

8:04 AM
5 messages moved to bin
 
Thanks
 
user1804599
 
The last one made me chuckle a bit
 
1 message moved to bin
 
Ell
8:20 AM
@rightfold lemme see it
 
user1804599
@Ell ok
 
Ell
I need to do something more interesting with my bottom bar thing
 
user1804599
 
Ell
@rightfold cool
 
Ell
you need to write a syntax thing for mill tho
 
one of you computer science types dumb that link down for me pls
> kim jong deux
 
user1804599
@Ell I have one.
 
user1804599
Just not on this PC.
 
user1804599
 
user1804599
8:29 AM
Fixed1
 
what the hell is up with your line numbers
 
user1804599
They are relative, so that I don't have to add and subtract in my head every time I want to jump to another line.
 
why not improve the jump to line functionality?
 
user1804599
Why not shut the fuck up?
 
b u r n
anyhoo, time for bed. night all
 
8:34 AM
I recently made this: bitbucket.org/edition/book
 
@rightfold well excuse me for having actual solutions
 
user1804599
But more importantly, if I want to copy until some statement, I can just look at its line number and hit yNy where N is the relative line number.
 
this vim?
 
user1804599
Of course.
 
I really should learn to use vim properly
 
user1804599
8:37 AM
vimtutor
 
I use kate as my text editor.
 
user1804599
-1 not Vim
2
 
+1 sexy secretary
@rightfold that's some sort of built in tutorial right?
 
user1804599
Yes!
 
alright calm down nancy
@ʎǝɹɟɟɟǝſ oh I guess I see what you mean... I think Burrows had stone slabs lining them though, that's not trivial.
 
8:53 AM
vimtutor sucks though
you do the tutorial and at the end you don't know how to use vim vov
 
Ell
-1 not emacs
 
@MarkGarcia uhhhh is this vectrex
-1 fanboism
 
haiz
 
Ell
-2 banfoism
@sbi fortunately I am not talking about the SO badge :D
 
user1804599
Acme > Emacs.
 
Ell
9:04 AM
^?
 
user1804599
Acme is a text editor and graphical shell from the Plan 9 from Bell Labs operating system, designed and implemented by Rob Pike. It can use the sam command language. The design of the interface was influenced by Oberon. It is different from other editing environments in that it acts as a 9P server. A distinctive element of the user interface is mouse chording. == Overview == Acme can be used as a mail and news reader, or as a frontend to wikifs. These applications are made possible by external components interacting with acme through its file system interface. Rob Pike has mentioned that the name...
 
@Ell damn I was about to post something similar
 
user1804599
Acne.
 
@Mr.kbok it's a basic intro vOv
woah, one press of d changes the solid fill caret to a half height solid fill
fancy
 
Acme was pretty cool
@thecoshman Don't press your d too much though; you'll have a hard time peeing
 
9:07 AM
o_0 you can lower case u an uppper case U
 
what
 
user1804599
you're really a moron
 
oh right
 
whuh?
 
I may rewrite bitbucket.org/edition/book in C++. Where should I start?
 
user1804599
9:15 AM
Maybe start by telling us what it actually is.
 
sorry. Its a book compiler.
 
user1804599
Don't use C++ for anything that has to do with text or I/O. It's terrible at that.
 
Ell
^
 
What about performance?
 
Shell is good enough for the book
 
user1804599
9:16 AM
How many books are you going to compile per millisecond?
3
 
user1804599
Use Haskell.
 
@edition what's a book compiler?
A typesetting engine?
 
It uses a xpath expression to extract page URLs from each chapter page.
 
user1804599
Ohhh XML. Then you certainly don't want C++.
 
rfold speaks truth
 
9:22 AM
its strange, I seem to be enjoying programming less than normal. : /
The book compiler project was sort of a task.
 
Why did you not use LaTeX?
(just asking)
 
Ell
or XeTeX
 
@rubenvb I intended the compiled book to be in HTML, not publisher-ready LaTeX code.
that is a good idea, though.
 
Why? XML and all its kin are horrible
 
because the chapter pages were in HTML.
 
9:27 AM
there's the old latex2html
and the new, but perhaps more limited latex2html5
 
Ell
@edition latex can compile to html
 
Hi, if i packed bits into an int in java and send them over to c++ with jni, would i unpack the same way or do i need to do something because of (un)signed bits?
 
bits?
 
Dafuq are (un)signed bits?
 
byte
 
9:29 AM
@rightfold there's bound to be a good librar... oh wait, never mind
@nabijaczleweli q-bits?
 
ok nvm bye
 
Why the fuck would you want to pack 4 bytes just to pass it into JNI?
 
performance!
 
hahahaha
 
Ell
@MicroHat11 probably you would need something different
 
user1804599
9:33 AM
'long long long' is too long for your bitch.
 
Xeo
And that was the first scene...
 
user1804599
@thecoshman qubits aren't signed.
 
@rightfold nor are normal bits vOv it was a joke
 
user1804599
They represent a superposition of basis states |0> and |1>.
 
o_0 are you fucking stupid or what?
 
user1804599
9:38 AM
No; I'm not you.
 
so much hate
why did you steal his lunch @thecoshman
 
@Mr.kbok it's my nature <steals Mr kbok's period>
 
Ell
@fredoverflow jesus this is depressing :P
 
what did he say
 
user1804599
she
 
9:41 AM
@thecoshman period Oo
I have a sticky note on my screen that says "se go=agi"
It probably puzzles my coworkers
 
@Mr.kbok ... agario?
not sure if that's the right link...
 
nah
 
> Go package agi implements the Asterisk Gateway Interface
Is that it?
 
nah
 
Hi guyz
1$ question
 
user1804599
9:48 AM
agorio > agario
 
user1804599
just don't tell @Xeo
 
@Rerito Go on.
 
@Rerito sure
 
What separator do the files under /proc use? Spaces or tabs? (I'll echo stuff > onthem)
Oops gtg, I'll read the hypothetical answers. BRB
 
/proc is fucking weird
 
user1804599
9:51 AM
Imagine the answers weren't hypothetical.
 
New keyboard?
 
@Rerito It depends, see manual: linux.die.net/man/5/proc
There is no single format of the files I think.
 
@Rerito it's usually one file per information
 
Now where's my dollar?
 
:O why is % functionality not the first thing people tell you about vim?
 
9:58 AM
Blindfolded solve
Well, almost.
 
You only used one eye?
 
Xeo
@R.MartinhoFernandes nerd!
 
@R.MartinhoFernandes how can I attract females?
5
 
@Ell Nice :D
 
@FlorianMargaine @rubenvb Thanks guys (can't respond to 2 messages at once)
 
10:02 AM
@edition The fuck do I know.
 
To be more precise, I'm interested in /proc/sys/net/ipv4/ip_local_port_range
Which outputs X<sep>Y
 
huh... if 'j' moves down one line, and 'nj' moves down n lines... wouldn't it make more sense for 'J' to move to end of file?
 
I like join.
 
Ell
@R.MartinhoFernandes thanks :D
same to you wrt the rubicks cube :P
 
Oh, cosh is learning vim.
@rightfold Btw, in recent vims you can :set rnu nu and you get relative line numbers, but the useless zero becomes the absolute number for the current line instead.
 
Xeo
10:13 AM
@R.MartinhoFernandes It's the best
 
Like this.
Buzz's travel expenses voucher. Pay close attention to the itinerary.
 
Ell
the moon
 
user1804599
@R.MartinhoFernandes the line number is in the status bar anyway
 
user1804599
@R.MartinhoFernandes looks awful.
 
10:28 AM
Have fun with that zero, then.
 
user1804599
Why?
 
user1804599
Also, I have more fun with a well-aligned zero than with a misaligned absolute line number.
 
user1804599
lol, olympic winter games in bejing
 
@R.MartinhoFernandes This looks more interesting then a completely solved cube.
@ʎǝɹɟɟɟǝſ lol 90s OO hype aftermath
@ʎǝɹɟɟɟǝſ Give him a copy of "Learn C++ in 10 minutes".
@ʎǝɹɟɟɟǝſ What kind of recursion? I find teaching recursion for control flow rather silly most of the time, but structural recursion (aka linked lists) is way more relevant in practice.
 
Xeo
10:44 AM
1 message moved to bin
 
what are relative line numbers useful for?
 
164
A: How to open Windows CMD so that it starts in the current folder?

The_IT_Guy_You_Don't_LikeEnter cmd in explorer's address bar & press enter

TIL
 
kek @ people using windows explorer
 
@melak47 Definitely relative speed to the Sun. I looked up NH's speed vector relative to the sun, and it's some 14.5km/s wolframalpha.com/input/…. So Randall is right, but I guess don't understand why 16.5km/s is quoted as the solar escape velocity it was launched to beat.
 
Xeo
11:03 AM
@AndyProwl commands having to do with relative lines :P
 
user1804599
bukkake
 
@AndyProwl "delete n lines up from here", etc.
No counting.
And summing up Earth's heliocentric velocity with NH's geocentric velocity at launch (wolframalpha.com/input/…) gives 38.4km/s. Heliocentric escape velocity from Earth's orbit is >42km/s (wolframalpha.com/input/…) :S Nothing makes sense.
 
@nabijaczleweli Every time I tell a Windows user to "open Windows Explorer", they open Internet Explorer...
 
hello
 
@fredoverflow Tell them to open a folder, that should be easier to understand
 
11:07 AM
@R.MartinhoFernandes I never understood the concept of escape velocity. Can't I simply build a rocket that escapes with any velocity I wish, like 1m/s?
 
Also don't use Windows Explorer
 
@fredoverflow Not from the surface, no.
 
Why not?
 
It will fall pretty soon.
 
It has boost.
Oh, escape velocity means no acceleration?
 
11:08 AM
@fredoverflow Once you reach escape velocity, you don't need any more acceleration.
 
ah
that actually makes sense
 
So, yes, you can escape at 1m/s but you need to be far away.
 
I bet if I'm somewhere between earth and moon, I can "escape" with a negative velocity ;)
 
(the distance you need to travel is the solution to the equation 1m/s = sqrt(2*G*body mass/r))
 
Are you familiar with the concept of Terminal Velocity?
Terminal Velocity is the speed with which a hacker types in the terminal.
 
user1804599
11:11 AM
I only have experience with Terminal Velociraptor.
 
Wolfram Alpha seems unwilling to cooperate :< wolframalpha.com/input/…
 
Guess I could have solved it meself.
It's kinda trivial.
 
> I don't say anything against transsexuals(?), but against this type of hair in an official interview...
lol wat
 
it may be simpler to take into account the Earth radius
r=R+d
and juste compute d
 
11:14 AM
@fredoverflow To escape Earth at that speed, you'd need to travel 739 light-hours away.
 
and d is your distance from the surface
 
 
@coincoin The Earth radius is irrelevant at this scale.
 
that is the only variable parameter finally
 
The result is 5330 times the radius of Earth's orbit. I think we can ignore the Earth radius.
 
11:16 AM
@R.MartinhoFernandes I don't get it. You are trying to see at what distance from the surface a 1m/s velocity is enough to be in space right ?
 
user1804599
What is a roomba?
 
@coincoin If you put it like that, yes.
 
Then you can guess R but you ll never get the distance...
 
11:17 AM
What's that nonsense.
 
i mean r*
in your case
I dont get how you compute this distance
 
user1804599
@nabijaczleweli OIC
 
WTF, now I looked up NH's heliocentric speed at launch, and it's 42.9km/s, which is correctly about heliocentric escape velocity wolframalpha.com/input/…
 
wow, lori is back
hi lori
 
How come adding Earth's heliocentric velocity with NH's Earth-relative velocity doesn't match that :<
@coincoin Er. I showed above.
9 mins ago, by R. Martinho Fernandes
(the distance you need to travel is the solution to the equation 1m/s = sqrt(2*G*body mass/r))
 
11:19 AM
My friend told me that simple program like ideone.com/x26Qo4 invokes UB because it doesn't end with newline. Is he right? I think he is wrong. How can this program invoke UB?
 
Ell
this is not undefined behaviour
I think
 
well for you x represent the distance ?
 
@coincoin It's the distance at which the Ek = -Eg.
 
Ok
 
Ek = kinetic energy, Eg gravitational potential energy.
 
11:20 AM
this distance is therefore between the center of the earth and your point right
 
@fredoverflow: what you think?
 
That equation gives v = sqrt(2*G*m/r)
 
what am I saying
 
@PravasiMeet It is UB in C++03 if the file is included by preprocessor into another file. AFAIK. C++11 IIRC makes it work even without the EOL.
 
is that you did not get yet the distance from the surface
 
11:21 AM
@coincoin Yes, but since the result is 5330 larger than the radius of the Earth's orbit, the radius of the Earth itself is meaningless.
@coincoin It's negligible.
 
@PravasiMeet If a newline makes or breaks your friendship, I would suggest seeking new friends.
 
@fredoverflow: I didn't understand what u r saying???
 
@coincoin Just so you get the scale we're talking about here: the distance in question is 45 times the radius of the freaking Solar System.
 
@R.MartinhoFernandes I kind of agree but following your statement then it means that what the point of knowing the escape velocity then ?
 
It is the weekend
 
11:23 AM
if you don't care about the distance you are in
 
@coincoin Er. FFS, 6000km are less than a grain of sand when we're talking about distances 45 times larger than the Solar System.
 
Are you talking about Bartek's driving speed again
 
aaaaah
I see sorry @R.MartinhoFernandes
 
I kinda expected an excessively huge result before doing the calculation so I deliberately ignored the radius of the Earth.
(Actually it was much larger than I expected o_O)
4
 
175
A: Why should files end with a newline?

Bill the LizardEach line should be terminated in a newline character, including the last one. Some programs have problems processing the last line of a file if it isn't newline terminated. GCC warns about it not because it can't process the file, but because it has to as part of the standard. The C langu...

 
11:32 AM
@fredoverflow: thanks for the link. So, it is UB prior to C++11. right?
 
> Since this is a "shall" clause, we must emit a diagnostic message for a violation of this rule.
Doesn't sound like UB to me.
 
does anyone know if mainstream c++ compilers reorder if statements, with comparison of non-volatile primitive variables to literals, so as to perform a sort of binary search?
Not sure if this sentence makes sense btw
 
If you want a binary search, use switch/case instead of if statements?
 
user1804599
People who don't end source files with LF are badlets.
 
user1804599
Especially those who end them with tabs.
 
user1804599
11:37 AM
Everybody in the Haskell community is either called Simon X for some X, or Y P Jones for some Y.
 
@fredoverflow I was looking at: stackoverflow.com/questions/31743359/…
and I was wondering if compilers nest if chains like this.
 
Why it isn't an error to call trivial destructor explicitly in C++? I tried this program & it compiles & runs fine. check this: ideone.com/j5cZpo
 
Anyone here have experience with dllexport and undefined references to vtable?
I can't pinpoint what implicitly defined functions are the cause :(
 
@PravasiMeet Because one of the basic assumptions of C++ is that the programmer knows what he's doing.
 
11:40 AM
@PravasiMeet Why would it be an error.
 
@R.MartinhoFernandes: why it is allowed?
@fredoverflow: OK
 
@PravasiMeet Why would it not be allowed?
WTF
 
You call a member function, what's wrong?
 
It's completely harmless.
 
@R.MartinhoFernandes Why is ;; not an error?
 
11:42 AM
Should explicitly calling implicitly-defined constructors also be an error?
 
user1804599
Warning: he/she is on my plonklist.
 
@fredoverflow Why should it be?
 
@nabijaczleweli: But it isn't ordinary member function. It is special member function.
 
@nabijaczleweli Because it doesn't do anything, just like the empty destructor.
 
@PravasiMeet So? Why should it be forbidden?
 
11:43 AM
The program is UB though, right? Because the destructor is called twice.
 
Not sure
@fredoverflow ;; is two separate statements, IDGI
 
@fredoverflow: yes, good observation...
 
@fredoverflow Debatable.
 
@nabijaczleweli There is nothing to "get", I was just trolling.
 
Trivial objects pop up as needed.
 
11:44 AM
@PravasiMeet Do you not call constructors either in your code?
 
@LucDanton You mean placement-new?
 
No. That’s not a constructor.
 
@PravasiMeet So what?
 
@LucDanton How do you call a constructor on an object in C++ then?
Isn't this by definition impossible?
 
@fredoverflow f00 inst{"ugh"};
 
11:46 AM
@PravasiMeet it's supposed to be used with placement new
 
Hell, f00("ugh")
 
Ell
I thought placement new was an explicit ctor call
 
@Ell: yes.
 
@nabijaczleweli But you can't call a constructor on an object. The object does not exist prior to the constructor finishing its job.
 
@fredoverflow Is that important? Take assignment operators instead if you’d like.
 
11:48 AM
Oh, you can definitely call the assignment operator on an object.
 
I feel like you’re missing the point entirely.
 
What is the point?
 
@Ell oh, congrats on the scholarship btw :)
 
> asdf.cpp:8:10: error: cannot call constructor 'asdf::asdf' directly
> a.asdf::asdf(0);
 
@fredoverflow object lifetime ends with the destructor call only for objects with non-trivial destructors. Otherwise it ends when the underlying storage is deallocated/reused. So this should be valid.
 
11:49 AM
@fredoverflow That a member be a special member or not should not be an objection to using it or not.
 
Ell
@rubenvb thanks pal :)
 
@LucDanton Well maybe not technically, but gotta admit that it's pretty unusual to explicitly call a destructor on an object. Where would you need that, apart from implementing std::vector?
 
@fredoverflow Implementing std::deque, for example
 
@fredoverflow I had a use case for it once.
 
11:51 AM
I don’t see how frequency is relevant.
 
I don't remember.
 
And other containers
 
Ell
@fredoverflow even then you wouldn't, I think most std containers are allocator aware
 
@LucDanton Well, I wouldn't teach noobs to call destructors, for example.
 
12 mins ago, by Pravasi Meet
Why it isn't an error to call trivial destructor explicitly in C++? I tried this program & it compiles & runs fine. check this: http://ideone.com/j5cZpo
 
Ell
11:51 AM
the allocator is responsible for the actual call to ~T()
 
@PravasiMeet I still don't see how any of this is relevant. You haven't explained why you think it's wrong to call a trivial dtor explicitly. Until you do so the answer to your question is "because there's nothing wrong with it". So there. You can either go happy with this newfound knowledge, or you can explain why you think it is wrong.
 
placement new is also nice for object pools with reusable slots.
 
@fredoverflow Irrelevant again.
 
Meh, losing interest. Call me when you figured out what I'm missing.
 
No spoon feeding.
 
11:54 AM
@Ell It is? I never knew that.
 
Ell
the container calls allocator.destroy(ptr)
 
interesting
 

« first day (1749 days earlier)      last day (3203 days later) »