« first day (874 days earlier)      last day (4299 days later) » 

17:00
Ok I'm off home
@MartinJames To be fair, the algorithm is quite simple (apply the casefold to each character, compare). You just have to know that that is the right tool.
lmao : this is better than the movie:

http://www.youtube.com/watch?v=l2KSPiTOMR8
And have access to it.
@R.MartinhoFernandes Almost no languages come Unicode-Conscious or compatible.
Either through legacy or just not giving (enough of) a shit.
@JerryCoffin Well, damn.
17:01
@ThePhD C# and Java have case insensitive comparisons. (they don't expose the casefold function, because it's an artificial construct useless outside of case insensitive comparisons)
@ThePhD Delphi has Unicode strings as standard.
Hence 'Almost'.
@MartinJames Isn't Delphi dead?
@ThePhD Nope. Pretty much only C++ and C suck that much.
@R.MartinhoFernandes C++14: and we're still supporting ASCII. :D
@ThePhD No. Certainly not here.
17:02
Oh, well then.
I agree that most languages don't make it natural to use Unicode, but that's a different matter.
I had thought Delphi died a while ago.
Don
Don
Anyone familiar with socket server programming here by any chance? ;x
That scripting app I posted a day or two ago was Delphi.
Anyone played Cities XL
17:04
Delphi :3
used that in school
@melak47 I'm still using it.
for std::map
Is there an erase that takes a key?
At the moment, I'm only finding ones for iterators of values or an iterator value.
Vimperator installed let's see how this goes
Third overload.
@CatPlusPlus It's probably going to crash and burn because you're the one using it.
@CatPlusPlus Tried it about thrice, never really caught on.
@ThePhD Delphi is a bit like Objective-C -- it was well on its way toward completely dead, but then got revived and has made at least something of a comeback. Unlike Objective-C, Delphi is actually competing on its merit though.
@EtiennedeMartel Funny
17:07
@JerryCoffin Wasn't Delphi part of the work of Heljberg, the guy behind C#?
Delphi has COM-support, right?
@melak47 Delphi has Unicode-aware visual components, Unicode strings, is OO, has no GC and compiles to one exe. Just about everything I need for intenationalized GUI apps.
@ShotgunNinja Yeah.
@EtiennedeMartel Better tell me if you played Cities XL
My ex-roommate did.
17:08
@CatPlusPlus I played some SimCity for four hours in a row yesterday.
@R.MartinhoFernandes I thought so. One of my old coworkers at my previous job was stuck with the arduous task of porting the functionality of a Delphi program into C#. Turns out there's a converter.
Had to stop because it was time to go to sleep.
@R.MartinhoFernandes Used to anyway -- I assume it still does.
Also had to stop at one point because I had to eat.
@ShotgunNinja haha
17:09
When it works, it's amazing.
Isn't there a Delphi => CLI compiler?
@R.MartinhoFernandes It worked for everything except low-level memory manipulations and some language features that aren't directly translatable. I/O also didn't work.
@EtiennedeMartel Does SimCity have err.. 'issues'?
@MartinJames An infinity of them.
an uncountable infinity of them
Funny thing is, he's a computer engineer, and is about the farthest from high-level languages as anyone I've ever met.
17:10
@CatPlusPlus hey, I don't mind at all :) thanks, we cool.
@R.MartinhoFernandes There's Delphi.NET and Oxygene.
Oxygene looked not bad last time I looked at it
@MartinJames Took them a while, but I think they've finally managed to sort their shit out.
@DeadMG Oh - 'cos they've been pushing it on TV adverts here.
I want [[deprecated]]
17:11
@EtiennedeMartel Oh really? They used the revenue of the initial sales to buy better servers or something?
Fun fact: ogonek will ship with deprecated functionality.
@R.MartinhoFernandes it is in VC++ extensions
__declspec(deprecated("reason"))
Xeo
Xeo
@R.MartinhoFernandes I think Python3 actually gets that one right.
@ShotgunNinja No, they realized that not doing an open beta to estimate the affluence of players at launch was a bad idea.
GCC has deprecated too
17:12
@Xeo One of the few things Python gets right by design...
So they had to scramble to improve their server infrastructure.
@Xeo Yeah, Python3 is nice (I mentioned it before to someone else here; @Borgleader I guess)
@ShotgunNinja Python gets most things right by design
@CatPlusPlus Wait, Python is designed?
Xeo
Xeo
@ShotgunNinja I think built-in tuples and list comprehension is good too.
17:13
Yes
@ShotgunNinja 3.0 certainly is
@MartinJames They probably didn't mention how the game requires an always-on internet connection, and EA's servers can't handle the load by ten million miles, so there's nothing to connect to.
@BartekBanachewicz Thank god, finally.
@ShotgunNinja It's not PHP.
Xeo
Xeo
If only you could have static typing in Python. :<
17:13
I've got BEER LPCWBEER
2.x was designed too
@DeadMG You keep whining.
They handled the load just fine yesterday.
@Xeo RPython
@DeadMG No - that somehow slipped by the adverts.
@CatPlusPlus Then everything got shoved into it, and they had to redesign some of it to more seamlessly integrate new features?
17:14
Also, I sometimes got "connection lost" messages or something. But it didn't yank me out of the game.
Xeo
Xeo
@DeadMG Hey, a buddy of mine got a 5€ coupon because of server downtime on release... for SimCity DLCs.
Singletons aren't the one true evil, they've got their uses. — Nicholas Smith 16 mins ago
Then the connection came back on. I'm guessing it just delays the syncinc.
At least they're trying to keep up with it.
17:14
@ShotgunNinja Language evolution != lack of design
Is C++11 not designed?
Every language that evolves accumulates deprecated features
Python 3 wasn't a redesign, it's was a pruning
assert(ogonek::numeric_value(U'X') == 0);
// or
assert(ogonek::numeric_value(U'X') < 0);
// or UB? (N.B. there is a separate is_numeric test)
@CatPlusPlus A rather agressive pruning.
@EtiennedeMartel I don't even have the game, it's just what I've read on innumerable gaming news sites.
@CatPlusPlus That's not what I was getting at; I was saying that the language itself lacked a formal initial design, but is being pruned to make it more of what its users need.
@DeadMG Yeah, well, it was that way at first.
17:15
@EtiennedeMartel cynicing.
@R.MartinhoFernandes Domain error?
Xeo
Xeo
@R.MartinhoFernandes Uh... wouldn't any of the first two be bad?
@R.MartinhoFernandes Yes.
I'm not saying that lack of design is a bad thing, as long as they make up for it by being adaptable.
@ShotgunNinja It had initial design
17:16
@Xeo The first one, yes.
Don
Don
Anyone familiar with socket server programming here by any chance? ;x
I don't think there's any negative value though.
It was designed for specific purposes, then released to public, then requirements slowly shifted and language evolved
They took an agile approach to the creation of the language, which is the right thing to do: Start out with a minimal design, then incorporate changes carefully as the requirements change.
@Don Can you be more vague?
Xeo
Xeo
17:17
@R.MartinhoFernandes Wait, what exactly does numeric_value extract?
Numeric value
Probably
^ How much numeric value?
;P
@Xeo numeric_value(U'1') == 1, numeric_value(<1/2 fraction>) == 0.5, etc.
@Don A lot of us are, but if you want to ask a question, you should post one on SO, (unless you are bashing PHP/Unicode/SimCity at the same time).
Xeo
Xeo
@R.MartinhoFernandes Okay, so you only do that for single characters?
@R.MartinhoFernandes What if they add characters for negative numerals :v:
SimCity. More like NullCity: Dereferenced Edition.
@CatPlusPlus That would be retarded.
@CatPlusPlus I would need to check stability policy on that.
It should be optional<int> or something methinks
17:19
@CatPlusPlus What about fractional characters?
Xeo
Xeo
Hm, so less than 0 may be acceptable, if they got the negative part stable.
optional<number> whatever
optional<5>
@CatPlusPlus That'll work.
@R.MartinhoFernandes Out-of-band info goes there.
17:20
Meh, nothing about Numeric_value for new characters, so everything goes. Yeah, none of the first two.
Today, I'm feeling an utter lack of will and motivation. Even breathing seems tedious.
@DomagojPandža Story of my life
@CatPlusPlus :( Have a hug
I'd give you a hug, but that would require me to exert more effort than I have in my effort capacitors
Am I the only one that thinks that "Old Friends" from The Hobbit OST is like 10x better than original "Concerning Hobbits"?
sorry for offtopic
17:24
Concerning Hobbits was awesome. Therefore, if what you state is true, I'm about to pass out from awesomeness when I hear Old Friends.
@DomagojPandža Meh - I've been beaten up by just about everyone on here today. Later, however, there is beer and music, so WTF :)
windowsblind 1 month ago
The critics are wrong this movie was epic
What prick dissed this movie?
@MartinJames LPSWSTRBEER
Hmm... looks a bit menacing for a Hobbit.
17:25
@DomagojPandža hear and tell me what you think then :)
@BartekBanachewicz I'll be dereferencing that about 20:30.
@MartinJames I've already acquired that resource
They both seem awesome. This one is a bit better to me because it has more of that dark line.
@BartekBanachewicz Looks like we're both gonna crash, then :)
"string job", if I may say so, is imho much better here
@MartinJames meh, my GF will drink half of that when she'll be there
17:27
Enough about alcohol (for now). It's only 1030 here, and I never drink anything stronger than Whiskey before 1100.
Jerry Daniels.
@JerryCoffin oh gawd.
well it's 18:27 here, so feel free to knock back as much as you like :p
maan. I launched minicraft and it works. How cool is that
17:29
haha, minicraft ? :P isn't that minecraft just C++ ?
@MartinJames Reminds me of a time a girl at a bar went to the bathroom. While she was gone, I got the bar tender to hide her Jack Daniels, and put a Southern Comfort in its place...
Twitbin is absolutely useless
@Paze exactly that :)
@JerryCoffin ..and you lived to tell the tale. Impressive.
@R.MartinhoFernandes: I'mma go walk the dog, and then stuff my face, and then it's Unicode proposal time.
17:30
lol you're still struggling with Twitter apps?
@Paze More like "Minecraft only..it works."
haha right :P
Ell
Ell
I want to tell a sexist joke but I think @EtiennedeMartel will tell me off :(
@DeadMG Hmm, I'm leaving to get drunk have a few drinks in about half an hour.
@MartinJames Barely! :-)
17:31
well, at least what works works.
anyone here going ot the gathering the 27 of march ? ^^
There are still some thing that don't
@R.MartinhoFernandes OK. Tomorrow, then.
@Ell Oh, go for it.
@Ell Especially on women's day.
17:31
@EtiennedeMartel Etienne is so cute and likeable.
guess no one is going to the gathering then xD
does ftell reset the current position in the file? or modify it in some way?
@R.MartinhoFernandes I like your attitude.
Ell
Ell
@JerryCoffin Today is international joke's day. Oh wait...
17:32
@Paze what gathering?
@Paze What gathering?
lol
Tweetdeck is absolutely useless too
I guess that's it for me using Twitter
I once asked my dad why there was a women's day and not a men's day. He told me we already had 364.
its the gathering TG its a huge lan with over 5k people and a really good programming section called creativia
17:32
@CBenni no
Anyway. What's the best way, in C++03, to convert an int to a string?
idhafc what is going on then
@CatPlusPlus You need to find something to do that doesn't involve computers.
Sleeping
Ell
Ell
@EtiennedeMartel stringstream?
Don
Don
17:33
@MartinJames @EtiennedeMartel Here's the question then: stackoverflow.com/questions/15299926/basic-socket-server I'd appreciate it if you could have a look at it :)
@CatPlusPlus can I ask what is wrong with using it through WWW exactly? Also, have you tried, IIRC, "Empathy"?
@DomagojPandža Don't fuck with the downthrodden when I'm around.
@Paze I have no idea what that is.
@CatPlusPlus Let me simplify this for you: anything and everything of, by or related to Twitter in any way, shape, form, or fashion is useless, stupid, vapid, and moronic.
I have a file parser, that iterates through the file. It terminates after a finite amount of steps. If I add ftell(file) at the very start, it gets caught in a infinite loop
17:33
@Paze so... no free beer then?
@BartekBanachewicz I'm not going to check it every 5 minutes I want notifications
@Ell I'm trying to avoid using that.
@JerryCoffin Replace Twitter with Internet
get phone-> install app-> get notified
@CatPlusPlus well, to be honest, you don't want to read all feeds. That is just impossible
17:34
well u can haz beer there xD and its mostly people from sweden, norway and some from the UK there ;)
Maybe you can't
@EtiennedeMartel sprintf (I know it's C, but I can't see how else you'd do it)
depends on the number of followers, of course
@EtiennedeMartel DIY?
17:35
However, I will agree with Tony here : hardware really helps
@DomagojPandža Yes, but what to put in that function?
I'm not buying a smartphone for Twitter
you can grab a tablet if you don't have one
buy a smartphone to smart
17:35
@EtiennedeMartel lexical_cast
I don't need a tablet
damn you microsoft! restricting my raw sockets since 2000 and late... :'(
@CatPlusPlus you need a life by the sounds of things :|
@CatPlusPlus you do, you just don't know it yet :3
@BartekBanachewicz No, I don't
@CatPlusPlus Doesn't that use stringstream underneath?
17:36
@CatPlusPlus And come on, we have free 3G in Poland
One that you enjoy, preferably :)
@EtiennedeMartel Maybe
NOT using it is lame
Then fuck it, I'm going it the ugly way.
For great justice.
Xeo
Xeo
@EtiennedeMartel What's your exact problem with std::stringstream?
17:36
@EtiennedeMartel You can use Boost.Format or FastFormat
@Xeo Purrformance.
But really
it's a stream
mumble server empty :'(
17:37
@EtiennedeMartel It does, but only as a fallback. There are performant specializations for things like int and string
Xeo
Xeo
@EtiennedeMartel Have you meowsured it?
@sehe Hmmmmm.
@BartekBanachewicz whislte
@Xeo Why should I? It's a game engine, I'm allowed to prematurely optimize.
4
@BartekBanachewicz I have 60/6 uplink I don't need 3G
@EtiennedeMartel Optimise by not converting ints to strings in the first place
Ell
Ell
17:38
stoi
@sehe you don't hear us?
Ell
Ell
itos
@BartekBanachewicz nope. I'm cooking
@Ell Stop speaking Greek.
@sehe ooo-keey
17:39
@CatPlusPlus But, I need to do it, it's for a debug output!
Oh wait....
:thumbsup:
Hahahahaha
@EtiennedeMartel Use a switch that covers all cases :D
Just realized how pointless that all is.
17:39
r u real
Ell
Ell
Lookup table yes :P
Congratulations
You've optimised debug logging
Have a cookie
@EtiennedeMartel Non-standard, but quite a few compilers have an itoa.
strtol if you really want to go down that hole
itoa is terrible
17:41
itoa can't signal errors
last time I used it, it didn't work
so I changed to sprintf
user142019
boost::lexical_cast
43
Q: C++ performance challenge: integer to std::string conversion

Ben VoigtCan anyone beat the performance of my integer to std::string code, linked below? There are already several questions that explain how to convert an integer into a std::string in C++, such as this one, but none of the solutions provided are efficient. Here is compile-ready code for some common m...

Questions like this used to be allowed :)
Someone tweet something
user142019
@CatPlusPlus døné.
17:44
Tweeting something for the Cat's benefit.
Nope the tab doesn't change colour
Well, make a lookup mapping between 0-9 and their stringy counterparts, do some simple math and there. Or you can hack around with ugly switches and tricks. Also, if you're looking for game engine optimizations, concentrate more on... I don't know... Acceleration structures behind your scene graph and this thing we call overdraw.
Overdrawing is a nightmare.
Some say it might be beneficial, but currently it cannot be proven without lying.
Use ogonek::decimal_value! I just finished implementing it.
17:46
I use very non-culture-sensitive TryParseand ToString methods.
enum class category : unsigned {
    Lu = 0x1, Ll = 0x2, Lt = 0x4, Lm = 0x8, Lo = 0x10, L = 0x1F,
    Mn = 0x20, Mc = 0x40, Me = 0x80, M = 0xE0,
    Nd = 0x100, Nl = 0x200, No = 0x400, N = 0x700,
    Pc = 0x800, Pd = 0x1000, Ps = 0x2000, Pe = 0x4000, Pi = 0x8000, Pf = 0x10000, Po = 0x20000, P = 0x3F800,
    Sm = 0x40000, Sc = 0x80000, Sk = 0x100000, So = 0x200000, S = 0x3C0000,
    Zs = 0x400000, Zl = 0x800000, Zp = 0x1000000, Z = 0x1C00000,
    Cc = 0x2000000, Cf = 0x4000000, Cs = 0x8000000, Co = 0x10000000, Cn = 0x2000000, C = 0x3E000000,
Also, artsy.
It's quite refreshing because it's pointers and super duper fast. :D
No iterators, fuck yeah~
You got some things backwards
I can't name at least half those elements.
Thought the same
17:47
I dont' know what any of those categories are for...
Great minds etc.
Clap. Clap.
Hmm, I think I can name them all. :|
@R.MartinhoFernandes Yeah you did mention it to me.
@EtiennedeMartel Also, you can always optimize the framerate counter. :P
17:50
@StackedCrooked Missing a voice:
3
A: Do C++ formatting libraries generally fall back to *sprintf for numeric formatting?

seheBoost Spirit doesn't use *printf, as can be seen from the code (real.hpp and int.hpp) and the benchmarks for e.g. ints and doubles. The benchmark pits Boost Spirit Karma's generators against Boost.Format against sprintf and std::stringstream. Only for gcc compilers does the performance of sprint...

ahahaha faggots
And... pushed github.com/rmartinho/ogonek/blob/master/include/ogonek/…. Now I need tests, but not today. I'm off. Later!
I should make an indian-looking sockpuppet and come here to ask terrible questions
@CatPlusPlus You involved?
Don
Don
17:51
I'd really appreciate it if anyone could try to help me here ;/ stackoverflow.com/questions/15299926/basic-socket-server
@R.MartinhoFernandes In dutch that would be rude: "Doing something for the cat's [cunt|fiddle|...]" is idiom (meaning: it's useless, in vain)
@DomagojPandža What?
Wow.
Boost.Format is FAST.
The project you linked. :D
@Cicada ahahaha faggot
17:52
I lol'ed
Xeo
Xeo
@ThePhD Well... not really
@Cicada good day
OOH
That's the other way aound.
@DomagojPandža No, it's from Wolfire
Herpaderpa.
17:52
@sehe Hello there sehe
It looks cool and we should play
@Cicada You haven't already?
Yes we all wee
17:53
@Borgleader 1 star best seller.
where do you get the game?
What a paradox.
@MartinJames I have, actually. It's on the starboard.
@ThePhD Hence the laughing
Wolfire account if you've preordered Overgrowth, or wolfire.com/llc
17:54
I did wonder..
Kill The Lounge 3D: Uncensored.
8 players max it seems
Xeo
Xeo
Hm, it was part of Mojam, right?
Seems like it
was explaining to a colleague that he shouldn be returning references from a function... and that made me wonder... is taking address of a temporary defined. I mean it will destroyed, but does that address points to smthing real or not ?
Xeo
Xeo
17:56
Oh, you get 2 llc gift codes if you donated, it seems.
@NoSenseEtAl Yes, you can take the address of a temporary. But it might not be useful though.
Actually...
@Mysticial but where does that temp live? On stack ?
@NoSenseEtAl Taking the address of a local is defined -- but trying to use it after exiting the scope in which it was defined gives undefined behavior. If you're actually dealing with a temporary rather than a local, it's (normally) destroyed at the end of the complete expression that creates it.
Xeo
Xeo
@NoSenseEtAl You officially aren't allowed to do &T(...)
mumble anyone?
ah, Ill believe Xeo because he has cool avatar :D
Xeo
Xeo
& requires an lvalue to be exact, IIRC.
@NoSenseEtAl that's like the best reason ever
Tonight's event: Mumble Rumble - many drunk poles, and perhaps more (more info: procrastination station)
6
i hope it is clear what was confusing me... the fact that it was taking an adr of a thing that isnt stored anywhere. :D
either way tnx...
17:59
Ooh Twitter tab does change colour
Cool
@BartekBanachewicz Politicians mostly seem to be elected based on who has the best hair...
Apparently I confused it with something else. So what was that I heard where a temporary is required to live until the end of the scope?
@JerryCoffin lol
@Mysticial const references extend the lifetime
Xeo
Xeo
@Mysticial T const& x = get_T_temporary();?

« first day (874 days earlier)      last day (4299 days later) »