« first day (1566 days earlier)      last day (3376 days later) » 

7:00 PM
Why can a new language have so many quirks?
 
user377628
Well both scala and swift are based on existing runtimes, so they have to be kind of weird
 
@JerryCoffin lol, templated bit fields
 
What runtime does Swift depend on?
 
user377628
Objective C runtime
 
7:02 PM
I am not sure if that is less or more evil than my naked inline assembly templates I use for generating interrupt handlers :D
 
user377628
Unless I'm mistaken...
 
@FredOverflow :(
 
user1804599
LOL
 
user1804599
Where did you find that?
 
7:04 PM
@рытфолд Google search for "martin odersky".
 
user1804599
One thing I really dislike about Scala is that people in #scala are even more assholic than people in Lounge<C++>.
 
I've heard nice things about the folks in the SO Scala room, though ;)
 
@рытфолд Wait. What? We need to crank it up a few notches?
 
Hello I just need help so excuse me if I'm in the wrong place but I need to know is whether or not my job the request was canceled or not accidentally sent to delete request last night but then realized that I had didn't want to do that so I sent another request X asking to cancel the request this morning still wasn't deleted so I'm not sure whether or not my request was sent through or not or whether not my account is still going to be deleted I was just wondering if a moderator can check to see whethe
 
serrano ham, spaghetti and mozzarella di bufala... It's killer
 
7:06 PM
@Griwes Note that I said it was "easy", not "advisable"! :-)
 
user1804599
@TrevorClarke Punctuation or GTFO.
 
Im on mobile. Sorry.
 
@TrevorClarke WTF are you talking about? What job request? Also, there are no moderators here that could help you.
 
user1804599
Mobile phones have punctuation keys. Try harder.
 
@TrevorClarke So what?
 
7:08 PM
Can anybody make sense of his message?
 
Also we have no fucking clue what you're going on about.
 
Maybe he's an alien trying to figure out if mankind is worth making business with based on their ability do decipher weird messages.
 
Right, you emailed SE asking them to delete your account, but then you changed your mind so you emailed them again, but they didn't reply so you don't know whether your account will be deleted.
 
shrug Nothing to do with us! Hopefully they'll reply to your email soon. Good luck.
 
7:09 PM
Why would you want your account to be deleted?
 
user377628
Well, I guess we're worth doing business with
 
And next time don't be so bloody lazy when you're asking for help. Format your messages coherently.
 
@LightnessRacesinOrbit Wait, I thought this room could help you with anything, including tooth decay and heartaches?
 
@Hassan It was really a test to see whether we've developed enough intelligence to be worth the bother of exterminating. LRiO just set up the destruction of the entire human race.
 
user377628
On most phones you can double tap the space bar and it'll put a period in there for you
 
7:10 PM
std::common_type<int, const int> is...
 
user377628
Shit you screwed us all
 
@gnzlbg Run it and find out?
 
@Hassan What if you want 2 spaces instead?
@gnzlbg volatile long?
 
On most phones you can tap period and it will put a period in there for you.
 
Since the rules are the same as for the conditional operator, you could do this:
 
7:13 PM
Technology is amazing
 
user377628
lol
 
@FredOverflow almost!
 
const int& x = (true ? (int)1 : (const int)2);
and see whether it compiles
 
@LightnessRacesinOrbit Is the optimizer allowed to see the true and then simply use the type of the first argument?
 
7:14 PM
@LightnessRacesinOrbit i know the answer, it is not what i expected
 
Can you cast literals to const?
 
 int& x = (true ? (const int)1 : (int)2);
lol
 
@LightnessRacesinOrbit :D
 
@LightnessRacesinOrbit lvalue reference to rvalues?
 
no that's shit too. ffs.
 
7:15 PM
You suck
 
just fuck it
 
@gnzlbg What is the answer? int?
 
user1804599
/me fucks it
 
( Thu-19:15:38 ) ( tomalak ) << typeid(std::common_type<int, const int>::type).name();
( Thu-19:15:38 ) ( geordi ) int
now let's move on
 
@FredOverflow yes
 
7:15 PM
I win!
 
I have been watching too much of Scott Meyers' talks, apparently.
Still haven't received EMC++ yet :(
 
i got a binding "int to value type const int drops qualifiers" error and was wondering what when wrong, after i found a common_type<..> call it was a matter of nanoseconds :D
 
> i got a binding int to value type const it drops qualifiers error
wat
 
some function was returning int&, but in a branch a const iterator was dereferenced returning const int&
 
7:19 PM
@MartinJames SO is full of party poopers :(
 
Why would you return an int& from a function? operator[] on an int list?
 
in a join view, the common reference type for two ranges was computed using common_type
that was a mistake
 
@LightnessRacesinOrbit TYPE<>, you geordi noob :D
 
@LightnessRacesinOrbit Perfect answer (for an alternate universe where every compiler is 100% bug free)!
 
my unit tests are out of sync :(
buuuut, I planned to move from microsoft's unit test framework to something like boost's or google's
so might as well do it now
 
user1804599
7:23 PM
Maybe you don't run them often enough!
 
indeed, I don't
last 4 weeks were pretty chaotic
I'll try to catch up
the only issue is, microsoft shows me a pretty GUI for tests in VS
I won't get this with boost or google's
 
the MS test framework is shit, though
 
like, I won't see green checkmarks and red crosses
 
from memory it only works to test functions in DLLs or someshit like that.
 
yeah, I test a static lib only
I don't think it works with other stuffs for C++
 
7:24 PM
@FredOverflow You'll get further listening to robot.
 
@Puppy Is he writing his own books and giving his own talks about Effective C++?
 
nope, you can get all the good stuff for free just by hanging out in here.
and also as a much more important concern, you'll also get to hear from me
 
is writing sparse documentation a prerequisite for writing a boost module
 
@Columbo Ha, his username is French for "ham".
 
@Pris Are you complaining about existing documentation? Or are you considering contribution?
 
7:27 PM
complaining, its what i do
 
@Pris It's a little more complicated than that. You're required to write sparse documentation, but then there' s a committee that goes through it to find the most crucial parts (and remove them).
 
Well, make the world a better place. But not by listening to Michael Jackson!
 
@FredOverflow Listen to Bobby McFerrin instead!
 
I never got why MJ was so concentrated on stuff like world peace and making the world a better place
did the audience really dig that?
I was a baby when MJ was at his peak
 
what, michael jackson the baby-fiddler?
 
7:31 PM
lol
 
Did MJ peak at you when you were a baby
 
c'mon, I was just asking, since those themes are not exactly memes today :A
 
@AlexM. He wasn't. He was interested in becoming more famous, and singing that crap did that.
 
and I can't think of the majority of people really believing in things like world peace and making the world a better place by changing yourself
when you change yourself you end up realizing how different you are from the others now :( that's about it
that being said, Earth Song is pretty nice
 
@AlexM. And then if you're a sane man, you rejoice.
 
7:35 PM
man in the mirror is also nice
 
@Columbo Jambon is the french word for Ham
 
@Columbo holy fuck
@Mysticial are you thinking what I'm thinking?
can you get me a screenshot of that question?
 
@AlexM. Which question?
 
the one I replied to with "holy fuck"
it's deleted so I can't link to it
 
oh
hang on
 
7:39 PM
I'll compose a challenge in the meantime
 
I don't know what the question id is. Gimme a sec.
 
What's so special about it
 
@Columbo What's the question id for that?
 
@CatPlusPlus you'll see
it'll either result in lots of upvotes for me
or lots of downvotes for me
 
7:40 PM
the suspense, the unknown
 
@AlexM. Too old to be memes
 
Just another shitty snack overflow question
Nothing amazing about it
 
thanks! I love you
 
There you go, @AlexM.
 
7:42 PM
on to the codegolfmobile
 
I always wanted to watch that movie
but I'd always forget
 
@Mysticial Click the goddamn number thingies already.
 
NO
 
@AlexM. Do it. Do it now! Your life is currently incomplete in ways you don't yet realize.
 
7:44 PM
YES
 
his number thingies are a goldmine
 
@AlexM. I think he must have at least some degree of red/green colorblindness. I can't stand that bright red/green (right next to each other, no less) on the black background. I usually don't even look at what pops up, but click them as quickly as possible to get rid of those hideous colors.
 
user377628
red/green color blind people can still see the red/green, they just can't tell them apart
 
Wall of text crits you for 9001 dmg. — Borgleader 8 secs ago
 
@Hassan Yes, they still see something, but the strong contrast between the two is pretty much gone.
 
user377628
7:50 PM
Ah.. well if that's what bothers you, then yeah being color blind would be a solution to that
 
user377628
lol
 
8:06 PM
Much more bearable (not that I'm asking to be color blind, mind you).
 
@Mysticial didn't SE remove your numbers in the past?
 
user1804599
> [p] for a singleton list holding one element
 
user1804599
I'd like to see a singleton list not holding one element.
 
@AlexM. Dammit, hurry up and post your thing so I can stop camping the front page of codegolf.
:)
 
almost there
I just can't find a proper problem for this to solve
> I'm guessing OP's challenge is a bit too difficult (or is it?), so to make it simpler, try a problem like finding an algorithm to solve the traveling salesman in constant time.

Wait, that's the wrong challenge scenario I'm reading. For this one you only need to find the first X primes, where X is defined by you, and somewhere above an arbitrarily selected 5.

If, however, you can think of much more interesting problems to apply this sort of inter-language mangling, you can of course show the world the awesomeness. I admit finding primes is a bit boring. Especially when thousands of other
I'd drop it like this but that last part is like "I can't think of any problems this could solve, so w/e do what you want"
the idea of mixing languages like that can give birth to some neat scenarios
but what are those scenarios
I'm not sure open-ended challenges are exactly ontopic
I rarely visit that site
 
8:22 PM
How about printing hello world, but going through as many languages as possible.
 
I like that
let me write that down
 
Using JNI in Java to print hello world in C would be a valid 2-language solution.
Creating a SQL database in Java and having a query spit out hello world would be another.
 
> The description is pretty clear! We need to start something in a language, take it through another, and finally finish in yet another language. How close can you get to this, and what is the most interesting way you can do it in? Any sort of communication is accepted, like RPC. Less straightforward ways of communicating are most likely going to be more attractive though!
should I remove the 3-language limit then?
and make it multi-language?
 
Make it unlimited.
 
ok
 
8:24 PM
Basically start with one language, which invokes another, which invokes another, etc... eventually printing out hello world in some form.
It could even be using C++ to hijack the mouse to open a web browser to go to some site which will print hello world.
 
@Mysticial Sorry you get this so late, here's the link stackoverflow.com/questions/28222164/…
lol account deleted
Someone ate him
 
@Columbo I found it via google.
 
What is this, "swim with your dog day"? :)
 
@Mysticial lol
 
user1804599
8:26 PM
Nice.
 
I invented a new word: Noobody
It's everybody that is a noob
Noobody will use that
 
0
Q: The multi-language challenge

Alex M.In our previous episode, we called a method without calling it. This time, for something more exotic, we have... The description is pretty clear! We need to start something in a language, and then take it through at least one other language in order to finish the job. How close can you get to ...

there we go
 
user1804599
// clang optimises this:
int result = 0;
for (int i = 0; i < n; ++i) {
    result += i;
}
return result;
// to this:
int result = n * (n + 1) >> 1;
 
@Mysticial thanks for the help, hello world is definitely interesting and challenge-fitting
 
8:29 PM
@AlexM. Put one of my examples in to make it clear what you're looking for.
Such as the JNI or the SQL example.
 
@Mysticial put them both :D
them stats. Did you log in after 10 years ? or that is just from 1 day of inactivity ? — Optimizer 26 secs ago
it has begun :D
 
@рытфолд rly? wow
 
@AlexM. lol
 
I hope you never click on those buttons
we make a good team <3
ahahaha
they're getting it
shit a downvote
 
user1804599
8:36 PM
@AlexM. It's a vague and bad question.
 
it's more vague than the call a method without calling it question
 
What does it even mean to write a string in C and compile it in C++?
 
id assume use a C-style string with g++
or whatever c++ compiler you want
but std string allowed
 
@FredOverflow I seem to recall an April first/fools that had a music score for violin in C that wouldn't compile with g++.
 
i wish ihad money indiegogo.com/projects/…
 
8:42 PM
@Pris WTF IS WITH THAT GUYS ARM
Why would you put him in that video
 
i think he's the CEO
mark something or other
 
user1804599
@Pris I read that as "the world's first crowded toilet."
 
user377628
Wait what's wrong with his arm?
 
user1804599
Junctions are a wonderful technology.
 
@рытфолд People have known about JFETs long enough that you really don't need to tell us about them now.
 
8:46 PM
looks like a birth defect... does it really matter?
though tbh how is he supposed to use a tablet with one hand?
 
@AlexM. Looks like that single downvote knocked it off the front page.
 
c++ api for a tablet, what a concept
 
@Mysticial someone retracted their upvote too
 
Probably the same person changing his vote.
 
nah I had +1 -1 at some point
then it went to 0 -1
 
8:47 PM
oh
 
i tried to do some dev for a blackberry playbook way back when those were a thing, and in spite of the crap support by BB, the API was so nice to work with. it was QNX and extremely clean and well documented C
and then i did some android dev and i felt like puking
 
user1804599
ARRGHAGRHRGHAHGRAH FUCK HTML
 
user1804599
WHY CAN'T YOU HAVE FUCKING NESTED FORMS
 
user1804599
WHAT THE FUUUUUUUUUUCK
 
@Pris BB can't afford to output shit
not today
 
8:50 PM
@AlexM. BB10 is good. It's better than iOS and Android imo... it might be too little too late, but they're still hanging on
 
It's time for me... See you later m8zzz
 
user377628
Hey android development isn't that bad
 
user377628
Nor is iOS really
 
I didn't enjoy my time with Android either
 
user377628
No I agree it's not great, but I think the biggest problem with it is the tools, not the APIs necessarily
 
8:51 PM
@AlexM. Yeah, fuck Java... Fuck it hard
 
@Rerito Java is great for classes.
fuck android though. fuck it hard.
 
@Hassan BB10 is almost like working with a desktop. You can pack files into your application in directories (what a concept!), pack shared libraries and run them as you'd expect etc.
 
user377628
Well you can do the same on Android, but the tools required to do so are a bit cumbersome
 
user377628
You have to use the ndk
 
user377628
But all in all, it's not too bad
 
8:55 PM
Android is just... they have to do everything 'different'. You need to have 'resources', and weird changing file paths and intents and fragments and other change for the sake of change processes
 
I'm still waiting for a bare Linux smartphone to come :(
 
@Rerito see the Jolla tablet I linked
 
@Rerito bare Linux has no mobile-specific functionality out of the box
try Ubuntu Touch
 
user377628
You know, the android ndk compiles your native code to several architectures, since android can run on different architectures. So it's not really possible to drop a shared library and have it run
 
@AlexM. Couldn't drivers be developed?
 
8:59 PM
by you?
 

« first day (1566 days earlier)      last day (3376 days later) »