« first day (1612 days earlier)      last day (3338 days later) » 

2:01 PM
I suppose there isn't a standard function to test if two doubles are within a certain number of ulps.
 
std::within_ulps
 
@R.MartinhoFernandes std::near_enough
 
may the ulp be with you
 
C++ standard library being helpful for numeric applications? That would be probably the first time.
 
"If you have to ask about the maximum length of a command line" -> JAVA!
 
2:04 PM
no that doesn't actually exist, I was being facetious
 
ulp fiction
 
I failed to work with java packages several times on Windows because of the 255-char path limit
encoding a url into a package name is just madness
luckily not everyone does that
mycoolorganization.ialsohaveasubdomain.org.somefancypackagename.thisismygroceryl‌​ist.todayimfeelinglucky.classname
darnit
 
@MarcoA. \\?\path to package?
or is java just stupid?
 
@Mgetz probably the developers I worked with were stupid
not java itself
 
bool close_enough(double a, double b, int ulps) { for(int i = 0; i < ulps; ++i) { a = std::nexttoward(a, b); if(a == b) return true; } return false; }
 
2:08 PM
@MarcoA. you'd be surprised at how much software can't use long paths because it used the shell path functions (which only support 8.3)
it was part of the reason they moved those out into their own library in windows 8
so people could use unicode paths
 
user1804599
So I have this function that takes 128 parameters.
 
@Mgetz I can understand unix stuff ported to windows might cause problems (wildcard expansion and such), but java packages... I mean.. come on developers
 
@MarcoA. Java was originally written to run on windows 9x, which didn't support unicode paths. I wouldn't be surprised at all if the loader was using ancient functions
or even ANSI apis
 
@MarcoA. org.mycoolorganization.ialsohaveasubdomain.* FTFY
 
@sehe right, that's the format. Thanks
 
2:12 PM
@R.MartinhoFernandes I pursued a permutation approach but it’s a dead-end. The number of cycles varies a lot, no OEIS hit with this.
 
@MarcoA. just confirmed that java uses deprecated ANSI apis for it's pathing using dumpbin
 
@LucDanton Yeah, I tried too. I'll do it with a copy instead.
@райтфолд Famous last words.
 
@райтфолд everyone does. It's called the lizard brain
 
@milleniumbug Seems good.
 
@R.MartinhoFernandes In all seriousness, Boost apparently has one boost.org/doc/libs/1_57_0/libs/math/doc/html/math_toolkit/…
 
2:19 PM
I just need to test for 1 ulp, anyway.
return std::nextafter(a, b) == b; does the trick.
 
@milleniumbug bool close_enough(double a, double b, int ulps){ return true; }
 
@R.MartinhoFernandes Have you seen this? Taking a (very) quick glance at is, it’s the dual problem no?
 
@BartekBanachewicz do you actually have to carry your licence? ICBW, but I'm fairly sure you should because it makes it easier if you get asked for it, but if you get caught with out it, they just say you have to show it at stations within some reasonable time or they come down on you like a tonne of shit
 
@LucDanton Yeah, been there.
I have the dual solved already.
 
oh okay
 
2:24 PM
@LucDanton the dual problem?
 
@thecoshman The other way around.
 
(Though it's not quite)
Hmm. There's no sign function in the stdlib either.
Gee.
 
There is an std::signbit thing
 
Better use the preprocessor since I can’t abstract over the sort of (basic source set-only) string literals.
 
Xeo
@AndyProwl That.
 
2:35 PM
@AndyProwl Not it.
Not copysign either.
 
@R.MartinhoFernandes What should it return? -1, 0, 1?
 
hm, I see
 
In mathematics, the sign function or signum function (from signum, Latin for "sign") is an odd mathematical function that extracts the sign of a real number. In mathematical expressions the sign function is often represented as sgn. == Definition == The signum function of a real number x is defined as follows: == Properties == Any real number can be expressed as the product of its absolute value and its sign function: It follows that whenever x is not equal to 0 we have Similarly, for any real number x, The signum function is the derivative of the absolute value function (up to the i...
 
looks like a swastika
 
2:37 PM
Write one
 
2 red lines, 2 black lines
4 lines
-1 at the bottom, we ignore the one at the top
 
Writing one should not be hard but this ought to be in the stdlib
 
4 - 1 = 3
half life 3 confirmed
 
(Please type proper words.) You're messing something else up. Boost 1_55 gives "Size of Multi 1" just the same — sehe 17 secs ago
Arg. Freaking 4chan language ticks me off
 
Xeo
@AndyProwl Boost at least has a signum function.
 
2:38 PM
@thecoshman you can get fined like €12 for not having it
so contacted floor company WRT my flat
 
Xeo
And then there's also this.
 
having wooden floors is fucking expensive :/
 
@BartekBanachewicz thats... an odd amount to fine someone...
 
I ordered the most expensive coating though because fuck it the floors are done once per 20 years or something
@thecoshman 50 PLN
 
@BartekBanachewicz coating?
 
2:41 PM
> It's a template so it'll take forever to compile.
 
@BartekBanachewicz oh... I see...
 
> A coating is a covering that is applied to the surface of an object, usually referred to as the substrate
 
wait, you guys not €? I thought Poland was in the EEC
 
@BartekBanachewicz you case harden your floor, cool
 
@BartekBanachewicz you mean varnish? paint? carpet? hookers?
 
2:42 PM
lacquer-ing?
 
oh... yeah... I think you done overkilled there bud
 
uh
> Paints and lacquers are coatings that mostly have dual uses of protecting the substrate and being decorative, although some artists paints are only for decoration, and the paint on large industrial pipes is presumably only for the function of preventing corrosion.
I am p sure the use was correct.
 
I did a 10m room with varnish for like €75... including buying some sanders. sure it took me a few days to do it...
 
I'm going to pay around €600 for this :|
 
@BartekBanachewicz usage of the word, sure, but still overkill
@BartekBanachewicz you've been had bro
 
2:44 PM
@wolfPack88 Yes. To avoid branching. — VAndrei 32 secs ago
if/else -> goto isnt a branch?
 
@thecoshman That EEC, renamed in 1993 to European Community which was then abolished in 2009 (because we have the EU now)?
 
@BartekBanachewicz his time isn't worth anything
 
@BartekBanachewicz imagine how many pizzas the company selling you that shit is gonna buy
 
@thecoshman I'm not going to sit there for hours sanding the floor dude
 
2:45 PM
@BartekBanachewicz either you do manual labour that you can, or you shut up about how expensive it is paying people to do shit you can do your self with a bit of time.
 
Mar 2 '13 at 18:06, by thecoshman
@ThePhD you clearly have no self worth if your time means that little
 
Any way, minicraft... didn't get too far did you @bart :P
@sehe €600 for few days work, I think I value my time rather well.
 
o.O
If you say so
 
@thecoshman Yes and no. I got pretty nice results WRT voxel rendering and coordinates and whatnot, but functionally it wasn't particularly nice. That being said, it took just a few months
 
@Borgleader Silly, only function calls are branching.
 
2:46 PM
@Borgleader OHMYGERD MOAR PERRFORRRRMANCE
 
@EtiennedeMartel only git has branches Let git sort them out
 
@thecoshman GOSH THE WHAT
 
@BartekBanachewicz I also think you did player-world collisions 'wrong' you treat the player as a point and test if that point is in blocks, so you can be half in blocks.
 
@R.MartinhoFernandes He's right. Poland seems to be ~20 years behind
 
@thecoshman a) no you can not. You need expensive equipment and knowledge to do stuff like that, because it takes experience. b) Why do that instead of working my normal job as a programmer?
 
2:48 PM
I think you may be a too enthusiastic software engineer here. — Alex M. 12 secs ago
 
@thecoshman yeah that was added around the end and was really buggy. Just for tests, really.
 
@sehe And I live in the French Empire!
 
@BartekBanachewicz dude, it's varnishing a floor. sand till smooth, apply varnish. Christ, next you'll be telling me you call the electrician to wire a plug for you o_0
 
I would
 
@LucDanton <typical USA white flag joke>
 
2:49 PM
don't wanna risk dying
 
@BartekBanachewicz I did like you're passing of a lambda to do the player-world collision though
 
@thecoshman "sand till smooth". My floors need at least 3-4 mm of sanding. For 30msq that I have doing it manually would take weeks.
Also they said they are going to pick the coating basing on how well preserved the wood is. I couldn't assess that.
 
but I think I need to tweak the way it's done to return how the player and wall collided. atm you can't 'slide' along the edge of a wall, you just get stuck.
 
@sehe k, deleted
 
And then the chemical lacquers are highly toxic and not really that easy to lay down properly
 
2:50 PM
you're right
 
@BartekBanachewicz nor would I, I'd rent a big sander for a day and get it done real quick
 
@AlexM. :D Deleted mine too. I think it was too harsh
 
meh it was just sehe being sehe
 
@BartekBanachewicz what sort of hipster flooring you going for? just varnish it, you are not living in some listed building ffs
 
I was trying to be funny
 
2:51 PM
@thecoshman it's going to take 3 or 4 days for people who do it on a daily basis. Fuck if I would do everything in a day or 2
 
meh
 
Can't have that on SO :)
 
@thecoshman thick pine wood planks
 
RMS is giving a talk at the university I work, should I welcome this?
 
and I'm getting, as mentioned, the highest-durability coating
 
2:52 PM
@BartekBanachewicz my point, you are starting with a cheap crappy floor
@BartekBanachewicz at the highest price
all I know is, I would rather put my money else where vOv
 
@Mikhail if you like politics
yes
 
@thecoshman pleb
 
it will probably not be about writing software
and more about licenses ;)
 
he had a talk at some uni in my city too
 
user1804599
 
@BartekBanachewicz ... you are self confessed short on money...
 
Well thankfully we live in a world where I can pay people to do tedious manual labour like floor sanding or writing Perl for me.
 
user1804599
The function takes all request handlers and returns a routing table. :D
 
@thecoshman No, I'm not short on money; I was expecting the costs around that, but it still hurts.
 
@thecoshman poland uses orens
 
2:54 PM
@R.MartinhoFernandes how could anyone not know it :\
 
I learned this from the witcher
 
Also, you're never not short on money when redoing a flat completely from ground up
 
user1804599
I should learn how to write Maven plugins.
 
@BartekBanachewicz like I said, chose where you put your oney
@райтфолд hint: don't
 
user1804599
Why?
 
2:55 PM
@R.MartinhoFernandes erm... what's the Pooland flag?
@райтфолд vOv haters gonna hate
 
> Pooland
8
 
Pool land
 
@thecoshman pool && flag
lol
 
Polen best country
 
@thecoshman if it took you a few days to do that 10msq room, it would take you at least two weeks in my apt. btw
 
user1804599
2:58 PM
@thecoshman Help me write a Maven plugin for Mill.
 
I've heard Polish workers are popular here because they are cheap and work hard.
 
And hot
They're hot as fuck
 
@ParkYoung-Bae sorry, what?
 
are polish girls hot?
 
Xeo
2:59 PM
@milleniumbug pool and flag
 
@thecoshman Within the European Union, outside the Eurozone, and in the Visegrád Group.
 
@ParkYoung-Bae good stuff
 
@AlexM. You really need to get laid.
 
keep at it
 
3:01 PM
@BartekBanachewicz I used a tiny sander. If I did another room that size, I would definitely not make the same mistake.
 
@ParkYoung-Bae NSFW please.
 
@R.MartinhoFernandes that's three of them :\
 
@AlexM. Maybe eventually you'll get the message.
 
@R.MartinhoFernandes lol
 
@Mikhail are you in any position to welcome it?
 
3:02 PM
@R.MartinhoFernandes Too late to edit
 
@thecoshman ...
 
@thecoshman The leftmost of those three.
 
@ParkYoung-Bae inb4 too late to apologize.
 
is it it the one with the moldy blue wedge?
 
Dafuq is a wedge
 
3:03 PM
@thecoshman Leftmost doesn't mean center.
 
IIT @thecoshman doesn't know how the flag of Poland looks like.
 
@R.MartinhoFernandes I sent that just as your message came through
 
@AndyProwl Where were you born again, if I may ask?
 
neither is he able to tell left apart from right
 
8 mins ago, by thecoshman
@R.MartinhoFernandes erm... what's the Pooland flag?
 
3:04 PM
@BartekBanachewicz So?
 
ITT fartteck does't know right from middle
 
I know it may seems weird, but Poland is not the center of the world.
Italy is.
 
I'm going to name my company FartTech
If I ever create one
 
@BartekBanachewicz your country has the nicest guy in the CS pro scene with the most broken english known to man imgur.com/a/250p7
 
3:06 PM
@AlexM. typical CS player
 
@Jefffrey Italy looks like a boot. Poland looks like a potato. I rest my case.
 
@BartekBanachewicz his english is considerably bad compared to everyone else's
 
Also, Sweden looks like a dick
 
dat edit
 
3:07 PM
dat message
 
@milleniumbug Norway as well.
 
And Finland looks like a scrotum
 
lol, in SR-71's manual, the recommended anti-rocket maneuver is "accelerate"
 
@AlexM. Reminds me of SC2 player White-Ra's famous quote.
 
@Jefffrey Sure, I was born in Forli' (somewhere between Bologna and Rimini)
 
3:10 PM
@EtiennedeMartel lol
 
probably the most boring place on Earth
 
@AndyProwl uh, I actually live kinda near there (the region below.. Marche)
 
more GG more skill
I'll remember that ahahah
 
@AndyProwl there are many boring places on earth, mind you
 
@MarcoA. Are you Italian too?
 
3:12 PM
txt.jpg.jpg.doc
 
@AndyProwl yep, my name should tell that :/
 
guys, I need to tell you something
I've been hiding this for a long time
...
I'm italian too
 
@AlexM. we already knew it
oh
I thought of something else, sorry..
 
@AlexM. Is that a codeword for being gay?
4
 
@MarcoA. naughty
 
3:12 PM
kinda :>
 
@AlexM. With all the pizza you eat.
 
@EtiennedeMartel phft, casual
 
ITT mafia infiltrated the lounge
 
@MarcoA. lol yeah, I had to follow the twitter link actually
 
@thecoshman MORE GG, MORE SKILL
 
3:13 PM
thought the family name was "diiga"
 
@AndyProwl Sounds like it's a place outside Italy
 
@EtiennedeMartel apologise for that stereotype!
 
It's definitely not above Po
 
@Jefffrey lol
 
:P
 
3:14 PM
@thecoshman NO
 
I think I'll use the more gg quote to motivate my teammates when losing
 
@AndyProwl uh nope, that means "Dipartimento di ingegneria Informatica, Gestionale e dell'Automazione", university gibberish for "computer science"
 
ITT Italians, Italians everywhere
 
"Remember guys, it's not about winning, it's about getting better."
"MORE GG MORE SKILL"
 
@MarcoA. Wait what
 
3:14 PM
@EtiennedeMartel hey, you spelled it wrong
 
@MarcoA. Ah that makes sense. Btw @Jefffrey you are even less special now :D
 
Computer Science here is "Informatica - Dipartimento di Scienze Matematiche Fisiche Naturali"
 
We need a few people for 2nd ship in Guns Of Icarus
cc @CatPlusPlus @melak47
 
@MarcoA. That's a mouthful.
2
But it almost sounds like French.
(but with more vowels)
 
3:15 PM
We could fly 4+4 and that's absolutely ubercool
 
tired
 
Shitstorm meeting about to start
 
come on you fuckers
@CatPlusPlus not right now, duh.
 
@Jefffrey CS comes in two flavors IIRC, there's the Ingegneria Informatica and there's Scienze dell'Informazione
 
3:16 PM
@EtiennedeMartel Italian can be as verbose as German unfortunately. Especially with stupid bureaucratic stuff (and it seems we love it)
 
@AndyProwl Mine is neither
 
@BartekBanachewicz wtf is that? do/should I care?
 
@Jefffrey If it's just "Informatica" then it's probably what was called "Scienze dell'Informazione" at the time I was in uni
 
@CatPlusPlus you mean a meeting?
 
Look it's me
 
3:17 PM
We noticed
 
😎
 
@thecoshman it's a cool multiplayer game where you fly a steampunk ship and shoot other ships
 
@DemCodeLines you already said that
 
Said what
 
@AndyProwl We have "Informatica" and "Scienze dell'informazione"
A friend of mine is in the latter.
 
3:18 PM
43 secs ago, by DemCodeLines
😎
 
And we are not under engineering
 
Each ship has 4-man crew and typical modes are 2vs2 or 3vs3 deathmach or KOTH
 
We are under "Math"
 
👀 how about that
 
€?
 
3:19 PM
Goodbye
@Jefffrey no, you're over engineering
 
@thecoshman I mean a meeting on deadline day
 
@sehe Yup, fuck engineers
Especially if they are women
 
@Jefffrey I actually don't know what "Scienze dell'Informazione" is..
is it about computer science or..?
 
If you don't like WP keyboard smileys, then fine,I won't do that too...
 
@Jefffrey ?
 
3:20 PM
@MarcoA. They do nothing, while trying to be like "Informatica"
@MarcoA. "Ingegneria dell'informazione": unipd.it/offerta-didattica/corsi-di-laurea-triennale/…
 
Do any of you guys reddit?
 
@CatPlusPlus my condolences
 
@DemCodeLines Those are not "WP keyboard smileys". They're emoji.
 
@DemCodeLines sometimes
on /r/GlobalOffensive
 
@DemCodeLines i have a whopping one post
 
3:22 PM
@CatPlusPlus Good luck
 
There's only one set of emoticons
 
@Jefffrey it sounds good, it's surely organized better than mine
 
Fuck emoji
 
@CatPlusPlus You are literally being Hitler right now
 
You can call it whatever pleases you.
 
3:24 PM
Hitlerally litter
5
 
@DemCodeLines can I call you dick then
 
hey, that's a jeef!
 
Lol desperate Google
 
I will never abandon my yahoo mail
 
3:26 PM
@Jefffrey github.com/Jefffrey/Inom I like the introduction :D
 
Fuck Google
2
 
@CatPlusPlus vOv but they make finding porn so easy
2
 
Aren't you guys supposed to love everything Google and hate everything Microsoft?
 
lol "makefile"
 
@DemCodeLines Didn't you know? We hate everything!
 
3:27 PM
@DemCodeLines we just hate
 
It's Makefile you badlet
Also don't use tabs to align assignments
 
makeFile pls
 
@CatPlusPlus Its whatever I call it
I'M IN POWER
 
> but given that Firefox is used by only 12% of Americans, the long-term effects will be limited
 
/r/technology is filled with Google fanboys
 
3:29 PM
@DemCodeLines bah..
 
lol reddit
 
What is a reddit but a miserable pile of reposts
3
 
ekmett posts polls and links on redit
 
Isn't that "a violation of intergalactic reddit law"?
 
@ParkYoung-Bae Perhaps the same could be said of all social media
 
3:35 PM
how do you want to spread news if not repost?
Not everything has a headline worth sharing.
 
@ParkYoung-Bae it has cake days!
 
I was referring to the poll posts
 
@DemCodeLines that was yesterday
Pol Pot (Khmer pronunciation: [pɒl pɒt]; Khmer: ប៉ុល ពត; 19 May 1925 – 15 April 1998), born Saloth Sar (Khmer: សាឡុត ស), was a Cambodian socialist revolutionary who led the Khmer Rouge from 1963 until 1997. From 1963 to 1981, he served as the General Secretary of the Communist Party of Kampuchea. As such, he became the leader of Cambodia on 17 April 1975, when his forces captured Phnom Penh. From 1976 to 1979, he also served as the prime minister of Democratic Kampuchea. He presided over a totalitarian dictatorship that imposed a radical form of agrarian socialism on the country. His government...
 
🐙
 
@DemCodeLines Erm.
Life doesn't work that way.
 
Xeo
3:50 PM
Welp, I have to write an animal AI. This will be fun.
 
@Borgleader that, sir, is source-level obfuscation
 
@Xeo What animal?
 
Xeo
Bunny
For now
wolf, bear, boars and others later on
 
@Borgleader - lol you found a tabs + spaces :)
 
Xeo
3:54 PM
I wonder what kind of structures exist for AI programming.
 
@Xeo mm
@Xeo When in doubt, randomize. Fuzzy logic, FSMs, neural nets if you're really fancy
 
if (is_carrot(x)) { eat(x); } else { run(); }
 
Xeo
Well, the dummy implementation at the moment is to just randomly walk somewhere, then stop for x seconds, then repeat
 
@BartekBanachewicz FSMs should probably do the trick.
 
@Xeo - So it has to path find then
 
3:55 PM
@Xeo sounds ok for a bunny
 
Especially if there are not that many actions that an actor can perform.
Then you can keep the state machine small.
If you really want to get fancy, try something like GOAP.
 
@Xeo Do you plan stuff like "don't run towards a wolf" etc.?
 
Xeo
@AndyProwl ye, that's for a bit later aswell though. Also "run away from human hunters"
 
> I originally implemented GOAP for F.E.A.R. while working at Monolith Productions. This A.I. architecture simultaneously powered Monolith's Condemned: Criminal Origins.
 
Xeo
pack behaviour
etc
 
3:56 PM
I see
 
In computer science, A* (pronounced "A star" ( listen)) is a computer algorithm that is widely used in pathfinding and graph traversal, the process of plotting an efficiently traversable path between points, called nodes. Noted for its performance and accuracy, it enjoys widespread use. However, in practical travel-routing systems, it is generally outperformed by algorithms which can pre-process the graph to attain better performance, although other work has found A* to be superior to other approaches. Peter Hart, Nils Nilsson and Bertram Raphael of Stanford Research Institute (now SRI International...
 
sounds interesting
 
@EtiennedeMartel IIRC Fear's AI SDK is opensource /cc @Xeo
 
That is pretty widely used for path finding techniques.
Fairly straightforward to implement
 
@Xeo most usually, AI is not really AI. it's just randomized stock responses
 
3:57 PM
@Xeo You can probably get away with basic steering stuff.
 
Xeo
@EtiennedeMartel ye - designate pack leader, generally follow him
 
Keep some distance with nearby agents.
 
mhm, leadership works quite nice
if you run AI for leader and do BOID on others it really looks natural
I did experiments with that back in the high school
 
@TravisJ Hard to get tuned for 5,000,000 bunnies in one scene (and you can just wait for that to happen)
 
You can get really neat school-like behaviour without a leader and with few very simple rules.
 
3:59 PM
@sehe - 5M? Heh, I guess they breed quickly :P
 
Xeo
@TravisJ We already got pathfinding - but that's the easy and boring part
 
Oh, sorry for interrupting with that then :)
 

« first day (1612 days earlier)      last day (3338 days later) »