« first day (1091 days earlier)      last day (3848 days later) » 

1:01 PM
Why are you printing out code in the first place
 
^
 
^
 
@CatPlusPlus because compiler doesn't understand his handwriting
 
1:06 PM
@EvgenyPanasyuk classic.
 
Gets me every time.
Unfortunately, this is the only font that my hand supports. That would be very sad if I am unable to program in C++ because of this. Do you think Java would support this font? — James McNellis Apr 1 '11 at 1:35
 
Actually that code has bug - it doesn't include <ostream> for std::endl.
 
:/
 
@EvgenyPanasyuk <iostream> is guaranteed to #include <ostream> (among others)
 
<iostream> includes <ostream>.
 
1:14 PM
@R.MartinhoFernandes no
@Jefffrey no
 
Not in C++03
 
In C++11 <iostream> includes <ostream>, but not in C++98/03
 
@BartekBanachewicz But you aren't the one using Qt instead. So, what you mean is less relevant than what they mean.
 
1:16 PM
@EvgenyPanasyuk nobody cares about C++98/03
 
Without specific examples, I'm inclined to think that you - like so many others, and also like you did earlier this morning - are zooming in on the one argument that doesn't make sense en "miss" the other part.
 
@BartekBanachewicz Quoted question was about C++03 - stackoverflow.com/questions/5508110/…
 
I like turtles.
 
all the way down
 
"you have broken me, all the way down"
both a great movie and soundtrack
 
1:22 PM
hm time to create a repo for Hs86
 
JBL
@EvgenyPanasyuk False.
 
@JBL S.T.L - "This is actually an interesting story. In C++98/03, <iostream> provides cout but not endl, which lives in <ostream>."
@JBL You can check ISO.
 
@BartekBanachewicz can't be Haskell86, it's not that old...and Hassium's atomic number is 108...so what's Hs86?
 
And it should arguably be in iomanip
 
1:26 PM
@BartekBanachewicz Wow impressive.
 
@BartekBanachewicz this is what you do for fun? :E
 
@R.MartinhoFernandes linking to (empty) repo was faster than copying readme
@melak47 pretty much, why?
 
Xeo
@melak47 For learning Haskell
 
It was faster to confuse :/
 
aaaand it's not empty.
 
1:27 PM
Nobody called it empty
 
robot did indirectly
well, time to code in the ideas I've been thinking about
 
@BartekBanachewicz You did. He just called it impressive. Which it wasn't.
 
JBL
@EvgenyPanasyuk I never had such issue. And compiling with -std=c++03 or -std=c++98 just works fine without including <ostream>.
 
Also, we've seen the code (I think the robot was there?)
 
@sehe I know you did.
@sehe stop being so correct, it's weeeeekend
 
1:29 PM
@JBL If you never had such issue, that doesn't mean that it was guaranteed by ISO.
 
Xeo
@BartekBanachewicz asmFile = many line <* eof :D
 
JBL
@EvgenyPanasyuk Then, good thing implementers were smarter than ISO wrt/ that. (well, at least GCC)
 
hmhm Visual Haskell
 
@BartekBanachewicz Except it isn't!
 
@JBL Actually, it's a case where they were just as dumb as they could get away with.
 
1:29 PM
lol IDE #1 Vim (on Haskell wiki)
 
I've been over this countless times already: implementers could make standard headers magical and ensure they don't pollute namespaces silently, but for some inexplicable reason they don't.
(The inexplicable reason is often "OMG magic can't have that has to be all C++ except where it isn't anyway")
 
@JBL Fun fact: #include <boost/spirit/include/qi.hpp> get's you iostream, string, vector, set, algorithm, iterator, numeric, type_traits, shared_ptr, utility (and possibly more) at once. Profit!
9
 
(And FWIW, the magic necessary is already there in the compilers.)
 
JBL
@sehe Nice. Is the include itself rather small ? I'd use that next time I need these standard headers and I'm too lazy to type for more than one include.
 
@BartekBanachewicz Interesting. I would have expected emacs, to be honest.
 
1:33 PM
@JBL #include <*>
 
JBL
Ugh.
 
#import or GTFO
 
@sehe I acutally had an idea to propose something like <include_all_standard>, but realized that it is usefull only for small tests/demos.
 
#import exists
 
template <typename T> #include <T>? :D
 
1:34 PM
@JBL lol - for widely varying values of "rather small"
 
@melak47 what
 
@EvgenyPanasyuk actually, with pch it can be quite effective. But I don't like it
 
@CatPlusPlus also last C++ package manager I remember was bundled with Dev-C++
 
@CatPlusPlus MSVC
 
dude, it even had preconfigured OpenGL project
 
1:36 PM
#import is just #include with implied #pragma once, even if it's not there
 
@BartekBanachewicz Nuget++?
 
@sehe it has a silly name, I don't trust it
 
@sehe Yeah, I used pch with a lot of stuff inside during experiments with Boost.Spirit.
 
@CatPlusPlus not in MSVC - in MSVC it's a thing that interprets idl/typelib files into autogenerated COM wrapping stuff
 
also Haskell Platform installer just hanged on me
 
1:37 PM
@sehe Maybe
 
@EvgenyPanasyuk Oh hey. I should try that. I only ever configure pch on projects. And 90%+ of my work with spirit is for SO, so, no project
 
Make a scratchpad project. :v
 
@CatPlusPlus I used that. And I haven't heard the feature pulled (in fact with C++/CX I think it got extended)
 
ugh solarized scheme for haskell looks fucking terrible
 
Funny thing about non-standard things is that they can do anything.
 
1:38 PM
@sehe Do you use CMake? There is nice module for it: Cotire - it automaticly enables .pch and unity builds, and supports different compilers.
 
@CatPlusPlus I have a scratchpad makefile. I can just :CPP in vim and it sets it up. But the makefile doesn't include pch
 
Why are unity builds still a thing
 
user1804599
Powder Toy is fun.
 
@CatPlusPlus shudders
 
1:39 PM
@EvgenyPanasyuk I have been looking at it. But I hate how hard it was to add custom flags to certain objects/targets. I mean, discoverability of features in CMake is really really bad
 
Wasn't someone from the Lounge working in a build system a while back?
How terribly did it end?
 
not too terrible I guess
 
Probably suicide
 
I considered it, but after early discussions and a scope creep I let it go
 
since it hasn't gone too far to be terrible enough
 
1:40 PM
@rubenvb has a build system
 
A art
 
@CatPlusPlus he's also trying for native win32 UNIX userland
 
I would consider building smart phone controlled droids
but that more $ motivated
 
hm it looks better on a light background
 
1:42 PM
I need more $ to build better 'toys'
 
I should work some more in ogonek. It's been a while since I did and Unicode 6.3 is out now.
At the very least update the UCD.
 
> "lol this is sooo fake they don't send them into space lol"
 
@R.MartinhoFernandes ruben and cosh. Cosh's one was in perl.
 
Well. Perl. That kinda sums it up
 
1:44 PM
@sehe By the way, I remember that .pch was something like 300MiB-1GiB.
 
asm.hs:12:11: parse error on input 'eof'
what the hell
 
@BartekBanachewicz Bad indentation?
 
Xeo
@tweet_xeo But then we are back to using a different pattern - more stuff to learn - more complexity - more bugs
Whatever.
If you're playing with std::forward, you lost your innocence already anyways.
 
@R.MartinhoFernandes aha.
 
1:46 PM
What's so funny?
 
that's not laugh
 
Are there any std::codecvt gurus in here?
 
@BartekBanachewicz Then what is it?
 
@EvgenyPanasyuk Ah. Now I remember I had removed the gch because it doesn't sit well with ZFS snapshot retention. My SSD is "precious" to me.
 
1:47 PM
@wilx Are there any std::codecvt anywhere on the planet?
 
@R.MartinhoFernandes Polish something for ~ "mhm"
 
Xeo
@R.MartinhoFernandes You never heard "aha" in German?
 
I am trying to test that unshifting the state works. I have chosen to use Japanese with SJIS.
 
I want a shell inside of vim
what do I do?
 
Xeo
1:48 PM
@BartekBanachewicz :!blah
 
Afraid I can't help you there. I explicitly delayed work on Shift-JIS for ogonek for later.
 
@Xeo no, a separate shell window hsplit with my code
 
Xeo
oh
 
@Xeo It's not an exclamation without an exclamation mark!
(See, that was an exclamation)
 
yes!
now tell me how to get my shell :<
 
1:49 PM
@BartekBanachewicz Ctrl+a %
(You're tmuxing, right?)
 
Xeo
@R.MartinhoFernandes Btw, we'll probably play Mascarade this weekend. Wheee.
 
@R.MartinhoFernandes I want it inside vim. And, bear with me, I'm on windows.
hmmm
Conque looks nice
 
@sehe Same thing - I tried to economize space on SDD, but eventually it became ~30GiB free space.
 
I want Vimdows
 
@TonyTheLion has been for years
 
1:51 PM
what?
 
Vim on windows
 
@BartekBanachewicz Tell me how well it performs when you have used it for a while. (Genuine request; I never got to trying it since I usually just use screen or tmux)
 
class Database <--- shitty names much?!
 
Yeah, should be class database.
 
1:52 PM
While I'm on it, tmux is awesome and you should use it.
 
C# not C++
 
@TonyTheLion class DataManager // FTFY
 
I wonder whether some 60 yo man would start prey on minitech
 
WTF dudette.
WTF is wrong with you.
 
@R.MartinhoFernandes sure.
 
1:54 PM
why so emo?
 
@R.MartinhoFernandes I am going to put it as a default shell on Overmind when I finally replace its fan.
 
^ I love it when I run into recordings of pieces that make them sound completely fresh, and without virtuoso pretense
 
Xeo
@BartekBanachewicz Eh, I just alt-Tab for that
 
1:55 PM
@Xeo meeeeeh
so far I've noticed slight lag
also cursor works weirdly
but it looks functional
 
I keep browser and stuff on left screen, and vim on right screen. Press Alt+` and a nice colorful console fullscreens the left screen.
Also works as boss key if needed, but it isn't.
 
Xeo
@BartekBanachewicz ghci asm should also work
 
@R.MartinhoFernandes reminds me - still need a terminal client to SE chat
 
yay this vim has "+p working
i have to get a proper build on my xubuntu too :|
 
Xeo
@BartekBanachewicz behave mswin ftw :D
 
1:59 PM
sudo apt-get install vim-gnome?
 
@sehe Recently I found Vivaldi Andante. Surprisingly, but I never heard it before:
 
@sehe gnome?
 
1:59 PM
@Xeo OUCH. That's the first thing that I lose! I absolutely loath the default windows _vimrc
 
Xeo
@R.MartinhoFernandes I'm too tied to Ctrl-C :(
 
@Xeo waaat
 
@BartekBanachewicz Well, I'm not a destkop puritan. Dunno. vim-gtk?!
 
I dissected behave mswin into individual stuff, and use only some of those
 
2:00 PM
@Xeo Also, set clipboard=unnamed
 
set clipboard sucks.
 
@EvgenyPanasyuk Extremely wellknown. I think I used to play that in music school. With two actual mandolin soloists, as intended by the composer
 
There's too many operations that touch the default register, tying it to clipboard is frustrating.
 
also when I do Ctrl-W -> to get to shell I still have to hit i :/
 
@EvgenyPanasyuk also that recording is a bit cheesy. The vocals are nice (Bobby McFerrin, no doubt). But the rest... spartan and not very well registered
 
2:02 PM
@BartekBanachewicz Ugh. :setlocal insertmode
I never thought I'd find that useful.
 
@R.MartinhoFernandes and now how I am going to get back to the previous window? :?
 
@BartekBanachewicz imaps :P Just remember to put it all in your vimrc.
 
:F
I think I broke my vim
I mean, I can't get back to normal :)
 
@EvgenyPanasyuk Found it: (timed link to the movement). Mandolin double concerto, indeed.
 
2:06 PM
<C-O> is nice to know anyway: if you're in insert mode and need to quickly run a single normal mode command, <C-O>command, and it drops you back in insert mode ready to proceed.
 
@BartekBanachewicz You're much too late to take any credit for vim being broken. Bill Joy broke vim before it even existed.
 
@sehe SO ate time, but I found - 4:09.
 
You can always read the link (#t=243) :)
@EvgenyPanasyuk Also, Bobby McFerrin changed the key to d-minor (from e-minor). Not as up-beat
 
*Main> parseASM "mov ax, bx\njz cx"
Right [BinaryInst "mov" "ax" "bx",UnaryInst "jz" "cx"]
cool.
 
@sehe I looked, but not noticed, because I thought that it only support 4m09s
like this:
 
2:12 PM
@EvgenyPanasyuk The link is what YT gives me (right click, "copy url at current position") and it works for me. Perhaps you're using a "smart" browser (Chrome?) or plugin
 
@Xeo open-std.org is back up.
Downvoted for not knowing the basics about encodings.. — user2799617 4 hours ago
Ow
 
open-std is a standards organization.
carbonite is back up
Robot, something in your vast memory?
I guess the simplest way to insert this would be std::this_thread::sleep_until(std::chrono::system_clock::now() + std::chrono::milliseconds(msecs));. I'll have a look if boost provides some conversion. — DyP 2 hours ago
 
?
(sleep_for btw)
 
@R.MartinhoFernandes hehe that's what I used in my answer
 
2:15 PM
Oh, it's in your answer.
WTF.
What.
 
sleep_until does do slightly different things...
I don't think it's important.
+1 for not rolling your own scheduler — sehe 4 hours ago
 
@sehe why does she have that cloth under her chin?
 
> How to sleep until next Sunday
oh.
Oh gosh. Where did this come from.
Why did you show this to me?
 
@R.MartinhoFernandes lol didn't you see it earlier?
 
(He's right though; if you want to sleep until Sunday, use sleep_until; but don't ask me how to get "Sunday" in a time_point)
 
2:18 PM
@BartekBanachewicz It's to make holding the violin a bit more comfortable. Chin rests are often clunky and don't hold well when sweaty. Many professional violinists don't use a chin rest at all, and most of them have permant skin scarring in the neck from where the 'tail-pin' hits
@R.MartinhoFernandes His comment is the only thing I can think of myself. I deemed it unimportant. I'm too lazy
 
I can't imagine holding the violin w/o the chin rest, it's just too thin at the end :v
 
@BartekBanachewicz There is "bridge"
wait, not bridge (should be another term in english)
 
@EvgenyPanasyuk um?
 
@BartekBanachewicz With proper technique, there's no need to "clasp" it with the chin. But I agree. I find it "tricky" and fear I'll drop the instrument sometime
 
Anyway, I'm upvoting the other answer.
 
2:21 PM
you can rest your hand on the guitar bridge, but that's arguably a bit different instrument :P
 
@R.MartinhoFernandes Yay. Makes us the two upvoters
 
that's a shoulder pad
 
@EvgenyPanasyuk shoulder rest
 
2:22 PM
Anyways, my sister graduated with a teacher that didn't use any of the two. It's possible. But I think she's back to using one now
 
@sehe Thanks. (in russian it is "bridge")
 
I prefer my trusty leather guitar strap to those thingies :P
 
@EvgenyPanasyuk In english, bridge is the upright thing that supports the 4 strings at the highest point
@BartekBanachewicz but not on your violin
 
@sehe yes, I understand that when I googled for "violin bridge"
 
@sehe I don't know what's wrong with violin, but I just don't get it.
I could play cello.
 
2:23 PM
Which reminds me. I'll probably buy a self-built instrument from a person I know
 
I'm happy with my current guitar, I still think I've pretty much robbed the poor guy for the price I paid.
 
Oh. It's the age no doubt.
I try sometimes to play the flute (since my daughter started taking lessons) but I'm doing pretty miserably
 
@sehe I remember that I was confused by term "Right triangle" - because if translate it literarly to russian - it becomes "Equilateral triangle".
 
Okay guys, need to run
 
oh also in other music-related news we already have the drumkit set in our basement
@sehe see you around.
 
2:26 PM
In Portuguese it's "rectangle triangle".
 
@R.MartinhoFernandes same here
 
@R.MartinhoFernandes In russian it is too "rectangle", or literarly "triangle with rect angle"
 
Xeo
@R.MartinhoFernandes In German, it's "right-angled triangle"
 
English is dumb. QED.
 
A right triangle (American English) or right-angled triangle (British English) is a triangle in which one angle is a right angle (that is, a 90-degree angle). The relation between the sides and angles of a right triangle is the basis for trigonometry. The side opposite the right angle is called the hypotenuse (side c in the figure). The sides adjacent to the right angle are called legs (or catheti, singular: '). Side a may be identified as the side adjacent to angle B and opposed to (or opposite) angle A, while side b is the side adjacent to angle A and opposed to angle B. If the length...
 
2:28 PM
Either Triangle
 
Gah.
Got distracted by bosses.
How do I make std::codecvt::unshift() return more than zero bytes?
So.
Assuming I want to use Shift-JIS.
 
WTF is unshift supposed to do?
Goddamn these fucking stupid 80s-era names.
Flush the state?
> This function is called by std::basic_filebuf::close() and in other situations when finalizing a state-dependent multibyte character sequence.
Yes, seems so.
@wilx Is unshift for use when encoding to Shift-JIS, or when decoding from it?
 
@R.MartinhoFernandes When converting from internal characters to external representation in streams. Basically, when converting wchar_ts to bytes.
 
Actually, can't you just use a table with no "shifting"?
 
2:35 PM
As I understand it, you can be left in non-default state and the unshift should generate a shift sequence that gets you back to default state.
 
@wilx it's meant to terminate an uneven sequence. Say in base64 it would write out the last bits and the ===s.
 
Yeah.
 
Speaking of iostreams, how do you enable exceptions on this shit, I can't remember
 
Ok...
 
Then I should use JIS instead? Do Windows support that?
 
Thanks.
 
@CatPlusPlus something like .exceptions(*::failbit | *::badbit)
 
Xeo
@EvgenyPanasyuk std::ios::blah please
 
2:37 PM
@wilx How would I know? If you need Shift-JIS use Shift-JIS. What I mean that I don't think you need state to convert Unicode <-> Shift-JIS.
 
No, I need something that lets me test my code. :)
 
If you're converting JIS <-> Shift-JIS, that's another matter.
 
I thought SJIS would require the unshift. Apparently, it does not.
 
The algorithm seems to be similar to UTF-8 (find start bytes, read continuation bytes if needed, decode) except it's not self-synchronising (i.e. some values are used for both start bytes and continuation bytes).
 
@R.MartinhoFernandes There's both JIS and Shift-JIS?
 
2:40 PM
Off the top of my head, base64 is the most obvious example of something that needs unshift.
I think the compression forms (SCSU, BOCU-1) would need it too.
@DeadMG Shift-JIS got its name because it uses some values from JIS but shifted.
(There's not a single Shift-JIS though; fucking messy as hell)
 
> Haskell's records are totally ugly and nerfed.
 
@wilx Basically, if you implemented it as a stateful encoding, the only situation where you would be left with some state at the end would be if the input was corrupted and had unterminated sequences.
 
that sucks
I want proper records
 
Use lenses.
 
Use lenses.
 
2:46 PM
Hmm.
I will have to use something else than SJIS then.
 
Try one of the three I mentioned above. base64 is probably the simplest.
 
Okay guys, the two-week C course ended today. The world is safe for another 50 weeks :)
 
Eh that would mean I should get back to RTFM
after a few weeks of learning still not ready to write a first program
welp.
 
:justwrite:
 
I think that stateful is only needed if a character can be encoded as different sequences depending on the position.
 
2:48 PM
@CatPlusPlus I'm trying
 
Xeo
yesterday, by Xeo
Tbh, I read about them for roughly 5 months before using them in my Haskell bot. :)
That was specifically about Monads, but I grazed Lenses on the way
 
    data Machine = Machine { ax :: Register
                           , bx :: Register

    mov :: Location -> Location -> Machine -> Machine
    mov a b m = m { b = a m }
if that works, I will proceed to hit my head against the wall repeatedly
 
Guys, I just had a perverted fantasy:
int * zero_based = malloc(100 * sizeof(int));
for (int i = 0; i < 100; ++i) printf("%d ", zero_based[i]);

int * one_based = zero_based - 1;
for (int i = 1; i <= 100; ++i) printf("%d ", one_based[i]);
 
@FredOverflow that's indeed perverted
 
@BartekBanachewicz What is Location
 
2:51 PM
(and UB iirc)
 
@CatPlusPlus ax or bx or something.
 
you must live a very uninteresting life if you think that was perverted ... :'(
 
That doesn't tell me anything
 
@BartekBanachewicz Meh, just use records until you find out why they suck so much.
 
What is Location?
 
2:52 PM
you need to live ... dangerously ...
 
@ArneMertz Was just about to say that myself.
 
:t location == :t ax
 
@CatPlusPlus a point in space
 
Ugh. The type definition.
 
in record syntax it's also a function, no?
 
2:53 PM
randomly deleting pointers would be a good start
 
How about writing past the end of an array?
 
also always malloc 1 size too small
 
good idea!
 
m { b = ... } won't work anyway
 
@FredOverflow its not writing past the end. you dont even get to that. its using a pointer one before the start. one_based is UB already
 
2:54 PM
@CatPlusPlus I was refeferring to this
 
Xeo
@FredOverflow IIRC, that's UB
 
@R.MartinhoFernandes It can replicate itself, but only very basically. Dependency resolution was there, but quite strict on ordering of project file contents.
 
accessing unprotected variables in heavily multithreaded programs
 
And then I decided to do a rewrite.
 
@BartekBanachewicz You can't use a variable as a field name, it has to be static
 
Xeo
2:55 PM
@BartekBanachewicz IIRC, you can't use variables as the names
 
@sehe oh yes, that.
 
suckage.
 
You need lenses for that
 
2:55 PM
SFML?
 
no thanks, I'd rather keep my dick to myself
 
Is there a Windows equivalent to touch?
 
@EtiennedeMartel touch dot exe
 
2:57 PM
^this
gnuwin32 at your service
 
Wait, I got a Git Bash.
 
echo "" >>!
 
@ArneMertz That's part of the reason I considered it perverted.
 
@R.MartinhoFernandes That's not the same.
 
2:57 PM
@EtiennedeMartel man touch lol
 
@FredOverflow That gives undefined behavior. You can create a pointer to one past the end of an array, but not to one before the beginning. It's much cleaner to simply add one to the allocation size, and ignore the first element when you want to use 1-based indexing.
 
@CatPlusPlus Ooops.
 
@JerryCoffin Doesn't malloc internally create a pointer to something before the payload, anyway? :)
 
@FredOverflow What about what the compiler will assume holds?
 
@R.MartinhoFernandes what?
 

« first day (1091 days earlier)      last day (3848 days later) »