« first day (897 days earlier)      last day (4052 days later) » 

8:00 PM
Why doesn't this want to work? std::is_same<decltype(int()), decltype(int(*)())>::value;. I get template argument 2 is invalid.
 
because template argument 2 is invalid
 
std::is_same<decltype(int()), int(*)()>()
 
hm, I wonder if I could supply indexing operator
 
@BartekBanachewicz Yeah, but why is it invalid?
 
The result of which is false, but probably not for the reason you expect.
 
8:00 PM
it could return another proxy
thus making
 
@Tuntuni decltype expects an expression. int(*)() is not an expression.
 
vm["table"]["index"]["inception"] possible
 
I think you wanted std::is_same<int(), int(*)()>()
 
Yo dawg, I heard you like proxies so I put a proxy in a proxy so you could return a proxy from a proxy
 
8:01 PM
exactly.
 
@DeadMG Oh, right, it's a type. How come int() is an expression? Isn't it just a type of a function?
 
I will soon have half of lua syntax here :P
 
@Tuntuni No, it's a default-construction of an integer.
 
How do i quote?
 
by quoting
 
8:03 PM
@DeadMG Zoidberg just told me int() is a type of a function that returns an integer and doesn't expect any arguments (his last post, scroll just a little)?
 
Expressions and types live in separate worlds.
 
Ell
ahh awesome :D
 
@Tuntuni Right, so int() is both a valid expression and a valid type.
but int(*)() is not a valid expression.
 
@DeadMG Oh I see. Thanks!
@LucDanton Then how come int() is both a valid expression and a valid type? :o
 
std::function<int()> i = [] { return int(); };
@Tuntuni Context suffices to disambiguate them
 
8:06 PM
@Tuntuni Something can't be both a type and an expression.
Erm, wording might be confusing here. See above. Also below.
 
@Tuntuni The grammatical form int() may be parsed as either type or expression. The result is not- it is either a type, or an expression.
 
Oh so you mean it can't be an expression and a type at the same time?
 
right.
 
Ah, thanks. Both of you. :)
 
in some places, that syntax is an expression, in others it's a type, and the semantic context is used to tell the parser when to expect which.
but int(*)() is never an expression.
 
8:08 PM
Could you give me an example of where it is treated as an expression? (not something like decltype)
 
I just did above.
3 mins ago, by DeadMG
std::function<int()> i = [] { return int(); };
 
@DeadMG So this?
Ah, okay.
 
the first use is as a type- it is the type passed to std::function to tell it the signature.
 
user142019
Round 1 from Google Code Jam 2009 is easy. :v
 
the second use is as an expression- it is the return expression of the lambda.
 
user142019
 
@DeadMG Oh like that. Thanks. :)
 
user142019
Google's 1 April starts early. :)
 
Similarly there's std::vector<int>::iterator (a type) and std::numeric_limits<float>::digits (an expression). So something of the form foo::bar can be either a type or an expression.
 
@Zoidberg timezones nubberg
 
oh, 0:10 here
 
8:11 PM
@Zoidberg ooooh
 
man
I haven't worked on Wide in a week.
 
hm, have you any timeline set?
 
for what?
 
some milestones?
Like, for example, I want MiC playable at the beginning of the summer
more or less
 
no
progress always occurs in unpredictable leaps and boundsx
for example, I made good work in December, then was sick as fuck all January at least
 
8:20 PM
I wish I could follow milestones
 
only restarted about six weeks ago, and disregarding the last week, have been making breakneck pace
but that's never sustainable
 
Well I can't even set them realistically.
 
I think what you mean is "progress always occurs when I'm not sick as a dog"
 
well, not always
for example, for the last week or so I've been doing basically nothing but playing Baldur's Gate
 
s/always/only/
Baldur's Gate is a legit excuse though :)
 
8:23 PM
does Wide have any real milestones though?
 
well
Turing-Complete was a nice milestone
instantiating C++ templates, calling C++ overloaded members, accessing fields of C++ types
etc
 
Sometimes I feel like I have a single digit IQ amidst a group of over 9000
 
IQ is meaningless.
I researched upon it back in 2009-2010
Was fun to do and publish but overall meaningless
 
You know what I mean... Mr.Pedantic
 
Well I'm saying you're wrong regardless :P
 
8:29 PM
@Borgleader I don't.
 
He's saying he's dumber than the rest of us.
 
You have to talk slower.
 
Maybe later.
 
well, here's some progress on Wide I made in the last two minutes
true and false are no longer keywords.
 
I'm saying this is how I sometimes feel:
 
8:31 PM
@DeadMG What are they now? Or don't you provide those at all?
 
they are just variables in the global namespace
 
Xeo
&true?
 
not yet
 
I made them rvalue constants still
it's just that now they are named rather than keyworded
 
8:32 PM
I wonder why that is useful at all
 
I'll probably have to change it back
but for now, fewer keywords is a winner
it's a lot cheaper to re-use the semantic stuff to look up the value in the global namespace than to lex and parse them separately
 
I removed maybe 50 lines of code that dealt with them and replaced it with 2 lines in the analyzer
 
okay, that's something.
 
yeah, I meant complexity-wise
in tterms of performance it's probably actually slower, but hey
 
8:34 PM
I totally want to switch to Wide from C++
so c'mon.
:)
 
well, Wide is a lot easier to code in
 
how about debugging?
is there any way at all now?
(as a side note, I wonder about proxy addresing for non-globals)
 
strictly, LLDB can debug any LLVM-able language
but, uh, I suspect you won't get far trying to use it on Wide.
 
@BartekBanachewicz It's not a convention because for all of this code, it was the only choice
 
@DeadMG I would probably need to be as much of an expert on Wide as you are
 
8:38 PM
I doubt that even I could debug Wide code with LLDB.
for one thing, I don't know how to turn on the debug information :P
 
-G in gcc
so give it a shot.
 
uh
 
I don't think that the Wide compiler respects GCC compiler flags.
 
ehm
ah, you hook to LLVM directly
 
8:39 PM
@BartekBanachewicz Lowercase.
 
yes.
I offer the whole shebang of Clang's options
 
so you could presumably get that to generate debug info
but generating debug info for Wide code itself, well, I have no idea right now
 
hard drives ahh so big
 
writing compilable languages is something I have really no knowledge about
 
8:41 PM
well
I am an expert in them now
as surely as... the robot is an expert in Unicode.
 
he knows a lot.
 
Probably a stupid question... but anything you can use in C you can use in C++?
 
it was a joke
because he claims he's not
 
I know.
Mwahaha, I "know some things" about OpenGL
 
I know somethings... sort of
 
8:42 PM
but considering I have to ask you folks here constantly
well.
 
huh
 
I wrote two things with OpenGL. I had no idea what I was doing
 
guess what I just found at the bottom of my code generator file
// Domagoj, you cockface.
 
@Crowz I started to know what I am doing when I started working for Intel
 
@DeadMG lol wat...
 
8:44 PM
@BartekBanachewicz oh man, I just went to Intel with my school (for a hiring event or something)... looked pretty intimidating what they do
 
@Crowz I went to Intel with my university, they were trying to get us to take placements there, I also found it very intimidating
 
btw there's LLVM-Lua @DeadMG
 
the organisation of the event was hideously incompetent and I saw absolutely nothing impressive whatsoever
I found it somewhat scary that the people behind that event make processors
 
lol, they put people who do random stuff for these events
 
Do they have any software engineering or is it all electrical engineering?
 
8:45 PM
Like me, on incoming friday :P
@Crowz I just told you I write OpenGL. Do you think I use transistors for that?
 
oh yeah... I forgot about that
 
You write OpenGL at Intel?
 
@Borgleader yes
 
TIL
 
@DeadMG processors are made only at some sites
Sites are heavily specialized
 
8:47 PM
it was still a staggering display of incompetence
 
@DeadMG hey, tell me what was wrong, so I can possibly avoid that on friday
 
well
the entire show was a sales pitch as if we were reporters or customers or something instead of potential employees
and half the positions they wanted as interns, they didn't say anything about- the whole day was about sales and marketing, even though they said repeatedly that they wanted C++ programmers
 
I've been doing C++ for 2 days. Time to integrate OpenGL!
 
oh god.
use my wrappers for own sanity
they are fairly independent of each other.
 
8:50 PM
I recommend learning C++ first.
Not for your own sanity.
 
For your own sanity stay away from C++.
 
hm, implementing proxy functions was surprisingly easy
 
Your lua wrapper better have good documentation :)
 
oh it has none at all now :/
 
8:51 PM
When it's done I mean
 
the Wide compiler has 0 docs
 
You guys suck.
 
@R.MartinhoFernandes I am not even sure about API yet!
how the hell am I going to write docs for nonexistent API
 
Here's a question, when someone picks up something in a video game (you know when it floats in front of them) are they basically just drawing the box at playerPositionX+(some number), playerPositionY+(some number) and playerPositionZ+(some number) ?
 
8:52 PM
and API is everything Lundi has
@Crowz no.
Picking objects is a complicated topic.
 
I could imagine, but for the absolute simplest implementation, could that theoritically work if it drew every update?
 
Also listen to robot and don't even touch OpenGL before you learn C++
no, it couldn't work.
Learning language and such complicated thing as OpenGL at the same time is guaranteed fail
 
also
make sure that someone with actual skill informed you that you have at least a basic foundation
 
Either learn C++ or switch to something simpler, like Lua or Python, and use OpenGL from them.
 
user142019
Google is crazy.
 
8:55 PM
it'd be too easy to get, say, Bartek to tell you you were gosu
 
user142019
Round 1C is at 09:00 UTC. ;_;
 
@BartekBanachewicz I've done OpenGL in Java (JoGL)
 
user142019
Google y u make me have to wake up so early.
 
@DeadMG Are you still refering to the one situation when I said Zoidberg is better than me?
 
8:56 PM
nah, I'm just insulting you in general
3
actually it was more like a poke than an insult
I didn't mean to be unpleasant
 
Too late
nah nah nah
I can't C++ a bit less again and that's what counts
 
3 hours ago, by Bartek Banachewicz
also don't forget I can't C++
is what came to mind, actually
 
it's true
 
user142019
Nobody can C++.
 
Just some people can't less than others
 
Xeo
8:58 PM
Oh yeah, did Bartek solve his variant problem?
 
And the less I can't, the more I can :)
 
hey
I'm pretty confident that I can C++
 
@Xeo It so happened Puppy's solution came to my mind, but I thought it's not practical
I have implemented it nevertheless after he told me and it worked indeed.
 
Xeo
What was the solution?
And what was the problem, even. When I asked earlier, all I got was something about a templated ctor.
 

« first day (897 days earlier)      last day (4052 days later) »