« first day (654 days earlier)      last day (4285 days later) » 

10:00 PM
Haskell not so much, though.
Python was OK.
PyObjC :P
 
user457812
MacRuby is pretty nice, actually.
 
It’s fast as fuck.
 
user457812
Probably helps that it's not really, really Ruby.
 
I am going to bed.
See you guys.
 
user457812
Ciao.
 
10:01 PM
Right now.
 
@RadekSlupik exit(0);
 
user457812
He's actually in bed and just typing on a laptop.
 
iPod*
 
user457812
Entirely under the covers aside from his hands and bulging eyes at the thought that I'm promoting vim.
 
I'm not under my covers.
 
10:03 PM
@RadekSlupik which IDE do you use?
 
@bamboon none.
 
user457812
@RadekSlupik Stop ruining my fantasies.
 
I use an editor. It's called TextMate.
 
@RadekSlupik ah ok nvm, then
 
And I use a terminal emulator. It's called Terminal.
 
user457812
10:04 PM
I use Sublime and iTerm.
 
Those two tools make me happy and give me an orgasm.
 
user457812
Though I could get along with any terminal emulator, really (not including anything on Windows because they are dirty lies).
 
Not Windows' one.
 
what is it with you people and the terminal?
I don't see the point
 
Terminals will terminate you.
 
user457812
10:04 PM
@DeadMG We're just good with them.
 
They are fucking easy to use.
 
user457812
Use what you know, you know.
 
Terminals allow me to quickly do things. Git works perfectly in terminal, quickly execute a bunch of tasks, works great.
I usually have about five terminal windows open.
 
user457812
And for me, something like rm **/*.o is preferable to using an IDE to clean up my object files (though there are better ways than rm).
 
user457812
Only five? I'm guessing you have a bunch of tabs in each window.
 
10:06 PM
@nil Except the IDE can clean up a lot more than just object files.
 
One for database server, one for web server, one for Git, one for Python and one for database interactive shell.
 
user457812
I only have object files to clean up. I don't use IDEs that litter crap around.
 
I clean like this: rm -rf _build
 
user457812
I technically just do make clean because I wrote a bunch of tools to generate makefiles for my stuff, but eh.
 
Build systems are chanceless.
Shell script + cabal = awesomeness.
I have two scripts: build.sh and run.sh. run.sh runs build.sh and if that is successful (i.e. exit code 1), runs the resulting binary.
build.sh runs clang/cabal/GCC/whatever
 
user457812
10:09 PM
I'm not sure cabal is all that useful if you don't use Haskell, which I don't.
 
I do. :D
Shell scripts just work.
 
user457812
I just run build-sources.rb, which generates a makefile for my source, and then run make. The important thing is that it throws all dependencies for a given source file into the makefile, so it's fairly pleasant.
 
user457812
That said, the makefile runs the script for me, so it's kind of pointless to run it myself.
 
Why doesn't it just build immediately?
 
user457812
Because its purpose is to build a makefile, nothing else.
 
10:12 PM
Why not use Rake then?
 
user457812
Because I don't like Rake.
 
Why the fuck do people use make??!
 
user457812
Because everyone (that matters) has it.
 
Good old ./configure && make && sudo make install xD
Everyone has bash too.
 
user457812
I also hate autoconf and such.
 
user457812
10:13 PM
They are of the devil.
 
user457812
Make is as well, but it's a tolerable level of evil since it's a very dumb program.
 
I like Haskell and Python.
Haskell has a de-facto build system which just works and Python doesn't need to build.
 
user457812
I just like to use Ruby when I can.
 
user457812
Python's nice too, but I just get along better with Ruby.
 
user457812
Anyway, shouldn't you be going to sleep?
 
10:16 PM
What do you think about Haskell?
Sleeping is a waste of time.
 
user457812
No real opinion yet, haven't sat down and spent any amount of time with it
 
user457812
Well, you could probably do that with whatever the latest thing is that Microsoft is saying people should use. They change their mind every couple years, so I'm not actually sure what it is right now.
 
@Cicada just on windows?
 
10:21 PM
@Cicada Yuck.
 
@nil metro
 
user457812
@MooingDuck Ok, so you couldn't do it with that.
 
user457812
Metro demands enormous fonts and whatnottery.
 
to me, the real question about cross-platform UIs is whether or not you want to look consistent across platforms, or to consistently look like the host platform.
 
user457812
To me, looking like the host platform is the most important.
 
10:22 PM
@nil harder though
 
Consistently look pritty across Linesc, Windus and Maq
The others I don't care
 
user457812
Well, write the base logic in C++ and then hook it up to a UI built on each platform?
 
@Cicada is there a reason you spell things like that? (I'm not saying you shouldn't, merely curious) Is 4chan part of the answer?
 
In 10 years when I finish my sweet c++ cross-platform GUI library, it will be easy.
 
@KeithLayne if*
 
10:24 PM
oh ye of little faith.
 
user457812
Every now and then I start writing a cross-platform GUI library. Then I get bored and realize it's stupid.
 
@MooingDuck what
 
pretty much. But it's needed. The situation sucks.
 
@Cicada why do you misspell things?
 
user457812
Well, it could be worse. The situation could be split across platforms where one uses Java.
 
10:25 PM
what misspell?
 
@MooingDuck The french don't like any words that could possibly be rooted in english :)
 
for @CatPlusPlus
 
@KeithLayne seems to be computer-term/nouns that she goes after
 
#4: delicious sausage
 
user457812
The French are weird people from a country whose only notable monument is a phallic spire. They're pretty awesome if you go by that logic.
 
10:26 PM
Misspelling on the internet is a crime of a serious nature.
 
đŸ˜ 
 
@nil I wouldn't call that their only notable monument.
 
đŸ˜ƒ
 
user457812
@KeithLayne I'm exaggerating.
 
NO! YOU'RE NOT! YOU"RE TOTALLY SERIOUS111
 
user457812
10:27 PM
surrious!
 
for cereal.
 
user457812
.. Now I want cereal.
 
don't we all.
 
i might just port windows to work on linus
 
with yummy kitty sausage.
 
user457812
10:28 PM
Preferably Lucky Charms. I like the idea that I'm eating a commercialized leprechaun's soul.
 
so i can get metro
 
@Cicada Wine/mono?
 
Did you guys know that std::string s(NULL); is UB?
:O
 
@LuchianGrigore I knew it was failure, didn't know UB
 
@nil dude I always ask my wife to buy me cereal when she goes shopping, and she comes back with healthy crap :(
 
10:28 PM
mono can't wfp -> no metro
 
user457812
@KeithLayne Your wife is smarter than I am, apparently.
 
@nil why? What do you buy for Keith's breakfast?
 
So you'll buy me some fruity pebbles next time you're out?
 
user457812
I buy him puppies.
 
user457812
He'll eat the puppies, but only after putting up an angry fit and talking about how he doesn't like them with the skin on.
 
10:30 PM
yeah, I'm picky.
 
@CatPlusPlus Just curious. What do you consider as a good looking UI?
 
I totally want fruity pebbles now.
 
user457812
A good looking UI is not KDE or Gimp.
 
1 hour ago, by Radek Slupik
@Cicada The Cat says that everything sucks except WikiDot, Haskell and Python.
 
user457812
That simplifies things.
 
10:31 PM
I don't think UIs fall anywhere in the range of things he finds acceptable.
 
user457812
If it r not terminal it r bad UI
 
user457812
Excuse me while I stroke my neckbeard.
 
._.
 
@Cicada to impress the cat, will take a lot more effort than you really want to put into things.
 
user457812
It's actually impossible. Cats are never impressed.
 
10:33 PM
or get some spiders, they'll impress him :P
 
user457812
Cats wander off, kill mice, drop 'em on the doorstep, and act like it was nothing.
 
There should be a flag to make it an error when a header doesn't include all it's prerequisites.
 
I'm a cat too
and it's not that hard to impress me
and the whole wide world doesn't suck either
imho
 
Can someone explain Lua to me in 2 sentences?
Where the hell are the includes?
 
no includes in Lua, afaik
 
10:38 PM
There are
 
@LuchianGrigore everything is global, and runtime. doesn't need includes
 
Include a file => load it and execute it
 
that's not what he means
 
Sorry for being correct.
 
@LuchianGrigore dofile "myfilename.lua" causes it to execute myfilename
 
10:40 PM
It's called from C++...
X|
 
@LuchianGrigore so whats the specific problem?
 
State your problem in a clearer way
 
@Cicada I don't care about good looking UIs. I want functional UIs.
And ones optimised for keyboard and mouse, not stupid touch screens.
 
where is the SHORT typedef?
 
#typedef SHORT uint16_t <--- here it is
 
user457812
10:42 PM
@LuchianGrigore I'm not sure what problem you're having with Lua there.
 
I can't google it :/
 
Since only WinAPI is crazy enough to use that, WinBase.h or WinDef.h.
 
@CatPlusPlus I thought I'd tried those, but I was wrong. Thanks
 
10:54 PM
typedef struct APP_CFG_STRUCT; Wait, that's valid C++?
 
is it not the same as struct blah;?
 
@MooingDuck I don't like it when programming languages are used together
 
like C, I guess?
 
@KeithLayne it seems to be
 
I know sometimes you have to
I just don't like it
 
10:55 PM
I guess it has to work so you can include C headers.
 
@KeithLayne no, just old code/coders
 
mmmmmmmm Brie cheese goodness :)
room topic changed to Lounge<C++>: The Cat says that everything sucks except WikiDot, Haskell and Python. [c++] [c++11] [c++-faq] [fun]
 
Why are comments preceded by --??
 
because Lua
@CatPlusPlus what's so good about WikiDot?
 
Why is there then after if... what is this, Pascal?
 
11:00 PM
@LuchianGrigore oh, you're talking about lua?
 
@MooingDuck Y
 
1 min ago, by Tony The Lion
because Lua
 
I think with all the discussions lately, we can add to the room's tags instead of .
 
& what is lua_State
wth
 
It's the state of the VM/interpreter.
 
11:01 PM
@LuchianGrigore lua_State holds the "globals" (including functions)
 
And the stack.
 
@RadekSlupik is it? Never heard that
 
What else would hold the stack?
You can have multiple lua_States and they all have their own stacks.
 
@RadekSlupik I sortof thought that would be intrinsic to the interpreter. I guess the stack could be a series of objects like any other and in lua_State. Kinda makes sense.
 
If I want to call a function from C++, I just call lua_pcall and modify the lua_State parameter?
 
11:04 PM
@LuchianGrigore generally you push the parameters onto lua's stack, then call lua_pcall. Then pop the results off lua's stack.
 
Manual stack management. Awesome.
 
@MooingDuck It actually does that somewhere in the code
 
@RadekSlupik oh right, duh. The lua object stack thing. not the callstack. my bad.
 
wish I knew Lua
 
@LuchianGrigore pft, if you know any programming language, learning lua takes half an afternoon.
 
11:05 PM
The call stack doesnt need to be stored in it.
@Moing Duck nice pun.
after*noon*
moon
Meh. Never mind.
 
@RadekSlupik ....anyway
@LuchianGrigore ideone.com/ZBv1K read this, and you know the lua language (everything else is the library)
2
 
@MooingDuck funny. It's actually going back and forth from cpp, so I don't think it's that straight-forward
 
@LuchianGrigore yeah, the C side of the interpreter is ugly and confusing.
 
user457812
I loves the Lua. It's so simple (to use).
 
11:22 PM
@nil me too
 
user457812
Also I got paid to write a lua interop libary, so that helps too.
 
The only trick with lua is that it's so simple that the standard library is very important to know. Like C.
 
user457812
Thankfully that's well-documented, so not too hard to do.
 
user457812
Though most folks I've known never venture into using metatables despite their awesomeness. Kind of a shame.
 
@LuchianGrigore It's a super-simple language.
 
11:35 PM
we all feel a bit like the guy in the Engineering bubble, no?
 
yep
 
@TonyTheLion no, I'm getting married in September
2
 
Congrats :)
 
and Drise is also engaged
 
user1182183
@MooingDuck Lol I just learned lua from this, nice and thanks.
 
11:36 PM
and several others mentioned wives/gfs
 
:(
@DeadMG at least you can commiserate with me
 
@GamErix nil observed I forgot to go over metatables (operator overloading), but whatever
 
user1182183
@MooingDuck well send me a complete file then and I'll keep it as a tutorial, many people ask me if I know lua because they want me to script for them - instead I'll send the mini-lua-learn txt to them xD
 
@GamErix hmm, I also forgot string concatenations
 
0
A: Getting last N segments of URL in C++

paddyNothing wrong with just using a loop.. Don't know of any STL string functions that will do what you want in a single call. By the way, what happens when You ask for the last 3 segments of http://www.google.com/? Call me old-school, but personally I would not use any STL searches here... What'...

 
user1182183
11:40 PM
@MooingDuck not a big deal I think..? xd
 
user1182183
btw anyone knows if fwrite needs the pointer array data to be aligned?
 
@MooingDuck Wow, I came in late on the conversation and ... learned a new language.
 
highly unlikely
 
user1182183
@KeithLayne I still prefer pawn with its C-Like syntax, typeless language, and also easy to learn. and in some cases more powerfull than lua. At least the #emit stuff rocks. with #emit you can even emulate C++ code xd
 
no language is typeless
 
user1182183
11:42 PM
Someone managed to create some code which runs compiled machinecode
 
user1182183
PAWN is, it has only Int32, that;s it
 
user1182183
strings are arrays of integers
 
@GamErix never even heard of it. I just shy away from weak dynamic typing.
 
user1182183
and Floats are just represeted in some other way
 
28
A: C++ preprocessor: avoid code repetition of member variable list

PaulWhat you need to do is have the preprocessor generate reflection data about the fields. This data can be stored as nested classes. First, to make it easier and cleaner to write it in the preprocessor we will use typed expression. A typed expression is just an expression that puts the type in pa...

what you guys think of this answer?
 
11:43 PM
@GamErix Obviously not. An array of an integer is not an integer.
 
@TonyTheLion first impression - way too long
 
and technically?
 
user1182183
@DeadMG so int myvar[3] wouldn't be the same as int myvar1,myvar2,myvar3; you mean?
 
@TonyTheLion Haven't read it, but I starred the question & will read it when I have some time
 
@TonyTheLion Not much. He needs a tuple, not a class.
@GamErix Of course.
 
11:45 PM
lol
 
a string is not an integer, no matter how you choose to represent that string.
 
NEW TOPIC: Do you guys drive? If yes, what?
:D
 
user1182183
ah ok xd then why is it called a typeless language?
 
I'm learning though
 
11:46 PM
@KeithLayne ideone.com/ZBv1K added concatenation and metatables
3
 
@GamErix Because the author is an idiot.
 
user1182183
also it has support for 16,32 and 64 bit variables and it's called an 32bit typeless lang ;$
 
user1182183
@DeadMG heh xD
 
@LuchianGrigore 98 honda accord
@GamErix because it doesn't have user defined classes
 
@LuchianGrigore I drive a Chevy S10 extended cab 03, which I added 2 10" sub woofers and a 500 watt amp. I also put in a bluetooth and pandora capable stereo.
 
11:48 PM
@MooingDuck You, sir, are a gentleman and a scholar.
 
user1182183
metatable.__add = function(left, right) print("ADDITION") return left end --now we have an add operator
 
user1182183
I don't get it, just return left?
 
@LuchianGrigore I enjoy volume. Don't really care what, so long as it's not Country music, and it's modern. Just so long as it can get loud.
 
the returned value is irrelevant
 
@GamErix the point is to show how to overload +, so yes, I went with a lazy implementation
 
user1182183
11:50 PM
@MooingDuck ah k xD
 
@GamErix obviously, return whatever makes sense. If nothing makes sense, don't overload it. just like any other language :D
huh, I don't htink I've seen a linker warning before
 
@MooingDuck Wait. The linker isn't asking for your first child? That's new.
 
So on ideone I get an ad for Chili's on the side and some facebook crap in some Eastern-European-looking language at the bottom. I don't get it.
 

« first day (654 days earlier)      last day (4285 days later) »