« first day (1633 days earlier)      last day (3541 days later) » 

10:00
Wait a minute...
Lua 5.3 has no JIT
I can solve my problems myself if I try hard enough anyway
or so I discovered
Somebody needs to write a JIT for Lua 5.3
Don’t use package.seeall and you have to require your parent modules. Because no lexical scoping (and/or modules aren’t really sought after or elaborated on in the community anyway).
user1804599
Alright, I can almost release Mill 0.0.2.
user1804599
Only 8 issues remaining.
10:04
Also, writing a standard library requires manual assembly?
Right, module being deprecated in 5.2 and removed for 5.3.
aaaa fuck I don’t want to put local everywhere
yeah module is removed
@LucDanton Hm? You don't have to.
the new way of making modules is a lot more sane than the old way
@Rapptz I thought there was no canonical way.
there is
local my_table = {} and then you fill it up and return it
if you want private functions you do local function private() etc.
a) that’s not canonical b) I just told you I don’t want to put local everywhere
10:15
local in one place!
assuming no private functions
then it's a bit more than one place
Guess what function module.lol() foo = 3 end does?
@LucDanton I know it makes a global foo object when called.
I'm talking about the new module system vs the old one.
Wouldn’t the old system pollute your module, not the whole environment?
the old module system spilled globals a lot more
In the one direction, but not the other.
Now there’s no direction at all :v
10:22
@MomotapaLimpopo okay, it's getting old
After a 2nd time only?
You're difficult to entertain
@LucDanton The old way of doing e.g. local print = print was stupid though.
The new way at least resembles the expectations someone would have because it's as-if writing a lua file without many gotchas that the old module system had.
The 'new' way is back to not having modules.
how though
Because you affect the caller.
10:24
how so?
the only thing I have to do as a user compared to back then is using local stuff = require("stuff") instead of require "stuff"
@Cinch why? how? it looks exceptionally meh to me
@sehe it is
but it's a place to funnel any people who just don't get it in the future
@Rapptz Everything you touch affects the caller.
i.e. they get -10 and they don't understand? send them here
@LucDanton Sorry still not getting it.
10:26
'Load' a 'module' that does print = 3 and boom can’t print stuff.
@Cinch "they"? well well. A: I think it's horrendous to punish answerers for answering a poor question (especially with -10!).
the same was true with old modules too though
@Cinch Just don't upvote. Downvote the question. The only reason an answer should ever be at -10 is because (a) it's very bad (b) the author is too dumb to delete it
@sehe SO is not a place for bad questions--they already decided in Meta that they don't like bad questions to be answered at all
7 mins ago, by Luc Danton
Wouldn’t the old system pollute your module, not the whole environment?
10:28
@Cinch "they". Come on. Be less sloppy. You can do it
I don’t have 5.1 on hand to test and cba to install it just to see
@Cinch Also, SO is not the place for bad ethics either
Sleep well
@sehe IF you send them to chat then maybe we can help them
@MomotapaLimpopo Bye
10:28
@Cinch "them"? Who the fuck are you talking about?
@sehe People who get their questions downvoted
Probably a bad idea but we'll see
Why. Just don't let that happen. How does sending them to chat help them? PLease tell me you're trolling drunk
@sehe No I have many ideas and a majority of them are bad
user1804599
Cooool my compiler now accepts only valid UTF-8.
@Cinch Oh, the bad questions. Nah, majority of bad question askers don't deserve more attention
10:31
@sehe But somehow people keep coming
@райтфолд Nice!
@Cinch Where.
@sehe Oh, you see bad questions pop up from time to time
@LucDanton Apparently I'm misremembering.
Come on you can do better than the vagueness. And just incremental opposition each time. My children know how to argue better than with "but (this)" "but (that)"
@Cinch Selbstverständlich
user1804599
It was as simple as the following:
user1804599
10:32
my $code = do {
    local $PerlIO::encoding::fallback = Encode::FB_CROAK;
    read_file($ARGV[0], binmode => ':encoding(utf8)');
};
@sehe "Your children"
I'm in awe.
I try to remember that most of you are probably not in college and like 22 or so but the profile pictures often make me think differnt
It's not hard to have children. Surviving, that's the cinch :)
@Cinch (in case you didn't see the ambiguity: "but" was not a contrast to anything before and "coming" could have been to the lounge or to the main site or whatever)
@Cinch Yeah. Most polar bears I know are your age
@sehe No it's just they're all so cute
I use the polar bear because my portrait would be too cute for most
Maybe it's just that I talk to a Puppy, a polar bear, two anime characters, random geometric images an a random African prince on a daily basis.
Idk
10:35
> two anime characters
And then you have LRiO who I suspect has a beard.
thanks
but I'm just fat
@Cinch He posts vanity selfies quite regularly. He's known as for a reason
LRiO is pretty hot
6
makes me wonder why he spends time here with us losers instead of constantly having sex with every chick he encounters
Start bait not opted
@AlexM. Because the chicks have more choice
10:38
wait you mean there are more tomalaks out there?
There aren't many c++ chats around
Wat
What do you mean LRiO is pretty hot
he's a nice guy and a good looker
@Cinch what do you mean what do I mean
@AlexM. I haven't seen any pics
No pics no mas
10:41
well search, it's not that hard
also on an unrelated note, mum just fucked my whole week :')
she had this awesome idea of taking some of my clothes with her to wash at home last time she visited
took 2 of my 3 available trousers
now I'm left with one pair for the whole week
I can't find any picutrers
the worst part is
these were last week's trousers
fml
I just realized I had no trousers this morning while hurrying to work
Wait LRiO is a girl?
are you 12?
Oh wait
Oh I see now
Wow he is
@AlexM. Given his personality manifesting here, I do not wonder. :D
Welp
found him on Facebook
You can dispense with the export table and just return mod you have something close to Python-style.
HM has such good music holy shit
also Carpenter Brut is one of the most awesome artist names I've seen so far
10:53
@AlexM. Are you from the UK too?
no
and I'm glad I'm not
I heard people there go to jail for watching the hentai I watch
Oh...
I see...
Yeah I'm not going over to the dark side
Sorry
...if you only knew the power of the Dark Side...
user1804599
That should work.
user1804599
11:09
hahaha, dynamic_cast<::foo::bar*>(…) digraph.
Mill-lang eh?
...What domain does Mill reside in?
Indeed, a "recursive regular expression" is not a regular expression. But this an often-accepted extension to regex engines... Ironically, this extended regex doesn't match extended regexes :D — ephemient Oct 6 '08 at 5:22
This stuff is right up your alley, isn't it? :)
user1804599
Fuck computer science regexes. I want programming regexes.
user1804599
Parsing a Perl regex requires parsing Perl, since Perl regexes can embed arbitrary Perl code.
user1804599
And parsing Perl requires executing Perl, since Perl code can do arbitrary source modifications at compile-time.
11:13
Why is Perl used again?
I thought Perl was like legacy code or something
2
user1804599
Because Perl is awesome.
user1804599
My compiler is written in Perl!
@райтфолд Oh right
@Cinch Because it is awesome if you are not a bigot.
Shall we talk about viruses today, folks?
11:19
no
we'll talk about how Kinder Delice is the best shit ever
spongy cake with chocolate and milk cream
covered in chocolate
@AlexM. replace that k with a t
why would I do that
@AlexM. y⋅
user1804599
@AlexM. Terrible.
Xeo
Xeo
@AlexM. All Kinder stuff is great.
Bueno especially.
11:23
yeah they make the best chocolate overall imo
Also...
QQ No LuaJIT for 5.2
No LuaJIT for 5.3
the taste is much nicer than the other mainstream brands like Milka
bueno is amazing
user1804599
Alright, time to implement integers.
Xeo
Xeo
Best pure-chocolate-y stuff is the Kinder Egg
2 hours ago, by Luc Danton
Puppy being told how to C++ by Cinch.
Xeo
Xeo
11:23
Nothing can match that taste
Was I really that bad?
@Xeo I always buy two of those whenever I go to a store :D
Xeo
Xeo
too bad it's so expensive
I know it's so little product for such a big price
but damn it's good
Xeo
Xeo
@AlexM. A few years ago, they used to have huge Kinder Eggs for Easter (and Christmas), wrapped with foil and a small plastic stand
this stuff
When I tried getting some this year, I couldn't find them anywhere :(
11:25
lol Easter
I went to church service for Easter
Sorry, a concert party.
@Xeo This is an outrage!
12 hours ago, by Blob
@Cinch, write a tutorial on bitwise operations for @DemCodeLines
Should I?
@Xeo the easter stuff from kinder this year at least in my area is a box of random chocolates with a medium sized plushie
Xeo
Xeo
They only had the slightly larger version:
for a rather huge price for what you get
Xeo
Xeo
11:26
although I think I’m more of a chocolate bunny person myself.
Xeo
Xeo
and they even brand it the same!
I wanted to buy mom one for easter but meh
it's cheaper to buy a bigger plushie separately
and use the savings to buy tequila
Xeo
Xeo
@AlexM. The "cheapest" (per 100g) way to get the delicious Kinder Egg chocolate is their easter bunny.
here, anyways
I can't find pics of the plushie promo
goddamnit
Xeo
Xeo
11:27
I know what you mean
Do you guys know if there is some class diagram viewer that can take a C++ source, understand unique_ptr, shared_ptr, vector, etc., and produce a UML class diagram (or anything similar)?
@LucDanton I have to ask--were you mocking me or were you targeting Puppy?
Xeo
Xeo
Visual Studio has one
@Cinch Yes.
11:29
@LucDanton Oh.
@Xeo Does it understand standard smart pointers, containers, etc.?
Xeo
Xeo
@AndyProwl Well, what do you want to get out of that diagram? Ownership dependencies? Usage places?
I think VS has one for inheritance and one for usage, but not sure
@Xeo A typical class diagram, with nodes representing types and edges representing associations
Xeo
Xeo
not sure if it takes into account std types...
I don't think it does
A colleague of mine uses it and none of the diagrams he produces has associations/compositions
11:31
@Xeo this was really amazing too
Xeo
Xeo
@AndyProwl Oh, I think you can try feeding it to doxygen - they have one for header interdependency, might also have one for classes
Xeo
Xeo
ah yeah
but again, expensive for the product you were getting
Xeo
Xeo
we also have those
Used to be hard to get them a few years ago, but they've become more common
11:31
like, almost 1/2 * pizza for two bites
Xeo
Xeo
@AlexM. yeah, extremely so
@Xeo OK, I doubt doxygen understands standard smart pointers and containers, but I could give it a try
Such a tool would be quite useful to me
user1804599
@AndyProwl I want to make a tool like Doxygen.
user1804599
That understands C++ idioms.
@райтфолд In fact the reason I'm asking is that I was thinking of writing one myself, but didn't want to reinvent the wheel
I never found this kind of tool when I was looking for it, but my search skills are quite poor
user1804599
11:35
E.g. stuff like namespace detail and concepts.
you were going to try and parse C++?
@райтфолд Oh, that. I don't actually care about "idioms" like namespace detail
@LucDanton I thought of using Clang
user1804599
clang associates comments with AST nodes.
user1804599
Extracting the data is quite trivial.
user1804599
It's formatting it in a nice way which is more work.
user1804599
11:37
And analysing C++isms (such as smart pointers).
Yeah, but formatting does not have to be perfect
I thought the user could just drag the diagram's nodes around manually, given some reasonable layout to start with
And I'm quite sure there are libraries for formatting a graph
user1804599
OK time to write the tool.
What's with all the easter candy? I'm having peas and beans.
lol
@райтфолд got Pantoona go!
I need about 6 books (~500 pages) to read prior to the interview with Google, I plan to read 2.5 books per week until then.. any ideas? (mostly interested in algorithm analysis, but any interesting book related to compsci is of value)
user1804599
11:47
#define CXXDOC_UNIQUE_PTR(t, d, name, i) \
    ::std::unique_ptr<t, decltype(&d)> name(i, &d)
user1804599
This macro is nice when dealing with shitty C APIs.
user1804599
So you don't have to repeat the goddamn deleter.
@FilipRoséen-refp Why do you need to read those books?
What books are that?
@wilx because I'm a fella without any education, I've never read a book related to compsci - so I thought, "heck, why not see if there's anything that I've missed"
hi
11:49
@FilipRoséen-refp You only need to read one book, really.
@fredoverflow I got that one on my computer already, so if what you say is safe.. then I'm cool
@FilipRoséen-refp 500 pages per book or total?
not the latest edition though, but I don't have the money to buy it
@FilipRoséen-refp Disclaimer: I have never applied for Google, and I know nothing about your formal background.
@fredoverflow yeah, 500 pages of actual reading
11:50
@райтфолд Horrible. sizeof increases because the deleter is stateful.
@FilipRoséen-refp So less than 100 pages per book? Then those books can't be very interesting.
@fredoverflow my formal background; computer geek that has done (fashion) modelling for a living for about.. 7 years (with some consulting on the side, of course)
@fredoverflow no, per book of course
sorry, I thought that was clear
You should work on your lack of precision before reading the books ;) just kidding
What does "has done (fashion) modelling" mean?
and when I say ~500 I guess I mean books that has about 650 pages
@fredoverflow that I'm a fashion model
So you work out a lot and live on a healthy diet?
11:52
@fredoverflow not really, I climb a lot - smoke far more, and eat shitty food
@райтфолд Now I have a deleter class templated on a function (that's possible), wrapped in a macro. Avoids sizeof increase.
@FilipRoséen-refp Then you should probably start with this book ;)
@fredoverflow fcuk being healthy, it's all about the code
user1804599
Meh, this object lives forever anyway.
user1804599
I'll just leak it instead.
11:54
@райтфолд oh, my, gawd
user1804599
Go fix it if you want.
inb4 singletons
@райтфолд why are you just going to leak it?
fix it.
user1804599
No.
it's stupid, I hate you.
;-)
11:56
@FilipRoséen-refp You have an interview with Google?
@Cinch yeah, I finally took my thumb out of my ass and made it happen (the recruiter and a few friends has been on my back for about a year, or maybe two actually)
@FilipRoséen-refp oh.
@fredoverflow Is "know stuff" the solution?
I wish I got opportunities from Google.
Ain't gonna happen to a kid with average grades at University of Hawaii at Manoa
@Cinch throw away your thoughts of writing that tutorial, study more, ???, profit.
11:58
@FilipRoséen-refp You may want to watch this video. Larry went through an episode of back pain which prevented him from programming for several weeks. It was hell.
@Cinch it has nothing to do with grades, I have no education at all
I doubt a list of 150 common, language-independent problems will help you crack a C++ interview
@FilipRoséen-refp And how many years of exp?
@AndyProwl those are all down, had no problems with the questions listed to be honest
@AndyProwl Knowing stuff probably helps a lot.
11:59
You probably have around 15 years, I presume?
10?
@Cinch I don't know, hard to say, but I wrote my first program at the age of 12 - and now I'm 25
but you can't really count experience that way

« first day (1633 days earlier)      last day (3541 days later) »