« first day (1152 days earlier)      last day (3811 days later) » 

user3010322
12:00 PM
No, I don't have any parsing library.
 
user3010322
I whipped up a quick parser and that was the end of it
 
somehow I am not surprised
Get a proper library and you will have it done in no time, shader languages aren't that hard to parse
 
user1804599
boost::lexical_cast<declaration>(input)
 
especially if you want to limit yourself to some syntax
 
@ThePhD Deprecated, but not removed, afaik. Wouldn't the simple approach just be to use DX11 Effects until you have a clear need to do something more complex?
 
12:01 PM
I write manual parsers faster than Spirit too
 
@CatPlusPlus yeah people writing javascript also write code faster
-.-
 
Yes, it's very related
 
No, it isn't
 
no, you don't get it. apparently.
 
12:02 PM
Yes it's not.
 
I wrote a parser in javascript once, so there!
I win
 
There's nothing to get
LR/LL is not the only way to do parsers
 
there is.
 
user1804599
I’ve only written JavaScript generators. :>
 
And it has nothing to do with correctness
 
user3010322
12:02 PM
I wasn't going for speed. If anything, my parser is notoriously slow, which is why I was asking for help.
 
Or speed
Or whatever
 
writing parsers by hand is not the good way to write parsers
and it has a lot to do with correctness
 
Sometimes it's the only way to write parsers
No, it doesn't
 
user1804599
Have slaves write them.
 
yes it does.
 
12:03 PM
How many parsers have you written
 
enough.
also irrelevant.
 
Classify Parsec
 
Christ, it's like kindergarten all over
 
Parsec is cool.
 
It's writing parsers manually
 
12:04 PM
Parsec is not manual by any stretch of imagination
 
user1804599
Of course it is, boon.
 
And recursive descent is because...
 
lol arguing in cat way is funny
 
user1804599
Only you’re using a handful of combinators that were provided for you by the library.
 
I need to practice typing less interpunction though.
 
user3010322
12:06 PM
@jalf That would work out, but I also want to be able to do the same thing with GLSL (organize into passes, techniques, and collections of the prior 2). So I ended up building up the system from the bottom up with my own shader types.
 
Fallback harder, it'll better cover the fact that you have no arguments, as usual
2
 
well I thought the fact I was mocking your discussion style was obvious
 
of coruse I don't, I don't really know much about parsers.
certainly less than you
however, the experiment was very interesting
 
user3010322
Wrapping the DX11 Effect API actually seems like it'd be more trouble than its worth, unfortunately.
 
Xeo
12:07 PM
@BartekBanachewicz Yes it is. You're assembling grammar parser by hand, instead of writing up a formal grammar and having the parser deduced from it (cf YACC, AntLR and the likes)
 
I've worked in a coupla parsers, always had plenty bad to say about the approach, but not sure how I'd like to bet my life on describing how I'd have done it different.
 
1
A: Gcc: force compiler to use unsigned char by default

Lightness Races in OrbitThe flag you are looking for is -funsigned-char. From the documentation: -funsigned-char Let the type char be unsigned, like unsigned char. Each kind of machine has a default for what char should be. It is either like unsigned char by default or like signed char by default. Id...

Downvoted! Wtf
 
@Xeo mmhm, I guess I can see it.
 
@LightnessRacesinOrbit most likely karma:
I found this out in ten seconds by Googling gcc force unsigned char then reading the GCC documentation that comes up. What prevented you from performing this research? — Lightness Races in Orbit 8 mins ago
 
@CatPlusPlus anyway, one important thing for me was that your style of discussion is deliberately passive-aggressive in a way
or, in other words, you're not really discussing.
 
12:09 PM
@BartekBanachewicz "that your style is" (assertive, factual) ... "in a way" (weasely)
 
@BartekBanachewicz Gosh, that certainly makes him stand out here. I can't think of anyone else who does that
 
@sehe Answer votes are not supposed to be votes on comments elsewhere
 
@jalf I never, ever said that I am perfect in that matter.
quite the contrary
 
user3010322
@LightnessRacesinOrbit It's all on the same screen page, though. Not everyone's so clean and compartmental (sp?) with their voting, especially if its on the same page.
 
so if you were intending to tell me that you thing my discussion style is bad, flawed, or otherwise not okay, just tell me that
 
12:10 PM
@BartekBanachewicz Also, you're reinforcing his point: "I have no arguments, but I don't need to have arguments, because >you're not really discussing<".
I think that's even almost passive aggressive :)
 
@ThePhD So, in other words, people are dicks.
 
@LightnessRacesinOrbit IKR. The +1 was mine
 
user3010322
@LightnessRacesinOrbit Huge, waggling dicks.
 
user3010322
Fields of them. As far as the eye can see.
 
user3010322
12:11 PM
It would be paradise... if they showered once in a while. ;~;
 
WAZZUP BITCHES
 
Helicopter dicks
 
Xeo
@LightnessRacesinOrbit flag
 
@BartekBanachewicz no, if I could be bothered, I would have called you out for trolling, but really, it didn't seem worth it
 
12:11 PM
@sehe I was referring to the fact that using his style I were able to still participate in the discussion, despite having no arguments.
 
@BartekBanachewicz "his style"... sure
 
Get over yourself, please
Grow up and/or go away
 
user1804599
@BartekBanachewicz him.discussion_style.use(); // no arguments!
 
12:12 PM
At least take responsibility for your dumb behavior
 
user3010322
Hm. Catch is harder than I though. u.u
 
@ThePhD wat :|
 
#include <catch.hpp>
 
@jalf for what dumb behaviour now
 
12:12 PM
REQUIRE(x == y)
 
user1804599
@ThePhD I’m still way harder than you, though.
 
Guise, make love not war, condoms are cheaper than guns
 
It can hardly be easier
 
user1804599
@jalf Also main function!
 
user3010322
Functino.
 
user3010322
12:13 PM
Sounds like a functional library.
 
That's two lines in a fire and forget TU
 
@BartekBanachewicz you mean other than getting into an argument you know nothing about, insult the other side for 10 minutes, and then say "but it doesn't count, because I was emulating your debating style, nyah nyah!"?
 
@jalf I don't think I insulted anyone TBH.
 
@TonyTheLion but guns are reusable, so in the long term, they'll be cheaper
 
user3010322
@rightfold Your typo has been saved: loungecpp.net/PrimaryRandomProjectNamingList
 
12:14 PM
and if I did, it wasn't on purpose.
 
zch
@jalf Guns need ammo
 
user3010322
@jalf Magazine of condoms vs. Magazine of Bullets
 
@zch not always.
 
@zch moving the goalposts! The original question was condoms vs guns, and nothnig else. :p
 
Xeo
@ThePhD Is that a nickname for the robot?
 
user3010322
12:15 PM
Though, that's an interesting concept. Birth Control Heroines run around with condom-loaded guns, shooting dicks all around the planets.
 
also ew, this coffee is gross, why am I drinking it?
 
zch
@R.MartinhoFernandes ?
 
user3010322
@jalf High-Five!
 
user3010322
\o
 
12:16 PM
:P
 
user3010322
@Xeo It's rightfold's typo turned into a nice project name.
 
zch
I don't think it counts. You are not using gun as a gun but as a spear.
 
user3010322
People use condoms for a lot of things condoms weren't originally intended for. Is it not a condom?
 
Xeo
@ThePhD I feel like it's missing something, though... hm... yes, Functinho!
6
 
You're still dead at the end of the day, though :P
@Xeo oh gosh please
 
12:18 PM
@Xeo I lol'd
 
can you use a balloon as a condom?
 
Sounds painful
 
user3010322
@Xeo Functinλo, for style points? :D
 
Holy crap, that coffee
 
user3010322
Albeit the latter doesn't fit. Hm.
 
user3010322
12:19 PM
@R.MartinhoFernandes 20 bucks says somebody in the world tried it.
 
I wonder why people still use C style arrays and naked new in C++. It's almost 2014 god damnit!
 
user3010322
@Jefffrey The fear is ripe, and the Java is Strong.
 
I blame bucky's tutorials
 
Oh gosh bucky
 
@MartinJames Imagine the bird is not a kookuburra but a magpie!
 
12:24 PM
@Telkitty OK, I have. Now wishing it could catch fire and crash.
 
user3010322
To just have my dream written down in some place:
 
user3010322
I'm going to create a video game where you play as C++14. You start out weak and with little memory, and you encounter people that help you. Various libraries that have been there: boost, ICU, etc. And then you also encounter people, who teach you many things. Herb Sutter, Alexei, R. Martinho Fernandes, Xeo. The ultimate enemy, in the end, would be a terrible monster only called "The Legacy", who you find out is the Phantom of your former self.
7
 
zch
What genre?
 
user3010322
Who the fuck knows, it's mostly a story and hardly a game.
 
@ThePhD hahaha
Do I get a character? :(
 
user3010322
12:27 PM
Teacher Schools you in Orbit, maybe.
 
^ I'm impressed
 
user3010322
In order to be taught, however, you have to give him a drug called "Repz."
 
hahahaha
 
12:28 PM
@TonyTheLion Speaking of patents, Sony patented the Smart Wig recently :)
 
@ThePhD lol
 
user3010322
I think the start of the game is with the death of Bjourne Stroutsup, and in his last dying moments he used the last of his own life to breath into the Abstract Virtual Machine and make it become alive and sentient.
 
@jalf heh
@ThePhD lol
 
user3010322
When he dies, he comes a sparkling Bjarne statue. These are the save points or the resting places in the game: in the arms of your "Father", who you only know as "The Great Stroutsup."
 
Look martin, your beloved!
 
12:31 PM
@ThePhD The Great Strout! 'Sup?
 
@Telkitty It's fatter than the statues. I blame you!
 
user3010322
@jalf That would be an awesome way for the Statue to greet you. In order to save, you have to say "The Great Strout!" "Sup?"
 
@ThePhD (you do realize that his name is Stroustrup, yes? :))
 
user3010322
@jalf (Shhh, it's close enough. :P)
 
12:35 PM
Strutsoup
 
@qwr Yeah - not like it's documented in man pages and on several million websites.
 
urhg seriously GL_GET_MAX_x_SIZE is the dumbest thing in OpenGL since texture API
 
@jalf strutsoup sounds like a description of some KSP rocket designs
 
user3010322
What is that for? o.0
 
@ThePhD getting maximum sizes of things
but it doesn't work obviously
i.e. there's no guarantee the size returned will ever work
 
user3010322
12:37 PM
I'll use it on my kid.
 
user3010322
GL_GET_MAX_OFFSPRING_SIZE
 
basically you have to check if the creation happened anyway
 
user3010322
Now I'll know whether or not they'll be a midget, and parent accordingly.
 
your jokes are not funny because I am the one that has to deal with that crap now
 
OFFSPRING_SIZE is ambiguous. It refers to penis size.
 
user3010322
12:38 PM
A penis is your offspring?
 
No, your offsprings penis
 
@MohammadAliBaydoun On a daughter?
 
@MartinJames I am not in canberra and the bird is ... I told you many Australians love feeding magpies. I could not emphasize it enough many
 
A daughter can still have a penis <;
Besides, this constant describes MAX_SIZE
So it still works~
 
I am reading my code and I want to cry
boost::shared_ptr<void> tempbuf (new char[max * max * test.pixSize]);
 
user3010322
12:41 PM
Kinky.
 
user3010322
I like it.
 
@TonyTheLion looks cool
I'd like to get it.
@ThePhD you like good and bad code equally so that tells me nothing.
 
user3010322
Haha
 
user3010322
For half the game, it'll be roguelike.
 
user3010322
12:44 PM
When you die, you'll throw an uncaught exception and will terminate.
 
user3010322
Later in the game, you'll be taught try{} catch{} blocks, and so can leave a former version of yourself in various places by using those blocks.
 
user3010322
When you are caught, you return to the state you were originally in, so it makes for interesting puzzle mechanics (jump, try/catch, die, jump again, you made it!).
 
ThePhD just loves code - good or bad
 
user3010322
I think I'll make PhilSquared the person that teaches you try/catch, just because he made CATCH.
 
user3010322
12:48 PM
As a self-insert, I will be the one that demonstrates UB code, and shows you the dangerous Cowboy Cast. :3c
 
Xeo
aka you're the first mini-boss.
 
user3010322
Yep.
 
Baby, I wouldn't fight you, not even in a game
 
user3010322
<3
 
12:51 PM
btw, while we're at it, cowboy cast didn't solve any problem right?
 
@BartekBanachewicz are you ever non-acidic towards him?
 
@R.MartinhoFernandes yeah, sometimes. When he doesn't act like he likes to act usually.
 
user3010322
@BartekBanachewicz It solved some!
 
user3010322
Like that union trick in the hacker's bit twiddling page.
 
user3010322
Totally worth the cowboy_cast.
 
12:52 PM
How do you "solve" the union trick?
 
unsafe_union_cast. there, "fixed" it.
 
user3010322
I didn't really solve, so much as use it as an excuse to use cowboy_cast. :3c
 
@jalf Contract workers.
 
hrm, given that std;::shared_ptr::operator bool is explicit, is there a nicer way to check that the shared pointer is not null than static_cast?
 
Xeo
12:53 PM
p != nullptr?
 
Doing a code review which inserts a million static_casts all over the place just for that
 
Xeo
@jalf example snippet?
 
> a sensor embedded in the wall activates a magnetic field to repel the paint. The problem? Spray paint isn't magnetic.
 
user3010322
Can TEST_CASE be free-floating?
 
12:55 PM
@ThePhD what do you mean by free-floating?
 
user3010322
Er, not inside a main call.
 
wait are you using your own main function?
 
You're doing everything wrong.
Stop right now.
 
user3010322
12:55 PM
u.u
 
user3010322
I didn't know..
 
@R.MartinhoFernandes cough
 
@Xeo Just a bunch of stuff like small functions with return type bool, and which used to return some_shared_pointer and now return static_cast<bool>(some_shared_pointer)
 
@ThePhD have you looked at how Lundi or Ogonek tests are structured?
 
Xeo
12:56 PM
well... return bool(sp); would be another option
 
user3010322
@BartekBanachewicz I'm looking at Lundi, which is why I asked.
 
@ThePhD TEST_CASE is the most top level thing.
 
Xeo
Or, really
2 mins ago, by Xeo
p != nullptr?
 
@R.MartinhoFernandes the most top levellest
 
I want to be a 3-ampersand programmer
 
12:57 PM
You usually don't write a main(). This is my "main" everywhere: github.com/rmartinho/wheels/blob/stable/test/runner.c%2B%2B
 
user3010322
Is there no way to write a main and just have Catch test cases inside of it?
 
Why would you want that?
 
user3010322
I don't know. Visually similar.
 
You can just put the TEST_CASEs anywhere else.
 
user3010322
Well, okay.
 
12:59 PM
@ThePhD You can write your own main function, but you're not generally supposed to, unless you're writing your own test runner to do something more than just running your tests
 
@jalf And you'd still write your tests outside.
 
Yes
 
@ThePhD visually similar to what?
 
user3010322
@jalf I wanted to do some general setup of the lua state, so I don't have to redeclare it every time...
 

« first day (1152 days earlier)      last day (3811 days later) »