« first day (1206 days earlier)      last day (3968 days later) » 

Ell
Ell
18:00
I'd have to do a loop of find_ifs I think
well
you'd want to find the current element if the next element also satisfies the condition.
Don't you just check if the value is different from the the previous one?
Ell
Ell
Oh gosh
Of course.
I think?
that would return the second element, not the first element.
SAM
SAM
@Ell What if the predicate contains a non-const bool and returns true if argument doesn't match with it? and that value is toggled when it returns false?
Ell
Ell
18:03
@DeadMG I just need a bool. But it's okay I super derp'd
oh right.
Ell
Ell
I literally just have to check if the element before it is a 1 or not
so you don't need to find that element at all
@rightfold, CSS3 is not bad
user1804599
CSS3 is very bad.
18:04
I am sorry I do not take part in chat, — Vlad from Moscow 6 hours ago
user1804599
CSS4 is very better but still very bad.
dreams, shattered.
Ell
Ell
How on earth did I not think of this. I'm bad and I should feel bad
slow day >.<
@SAM It won't :P
@rightfold Why? I like it
I'm not talking about the support, I'm talking about the language.
The browser support sucks, like it always does and always will.
user1804599
18:09
Also, why do you suddenly ping me to say that? :P
user1804599
@Jefffrey I am not talking about the support either.
Because you are the only one I remember was into this stuff
user1804599
But fuck the fact that I cannot target the parent of a fucking element, or just another element altogether.
user1804599
CSS4 fixes that, which is neat.
I can't see when I would do that, but I'm glad it got fixed.
Ell
Ell
18:10
@rightfold what do you mean?
SAM
SAM
@rightfold I think that was possible in early versions but then depricated later in css 2 or 3 something?
@rightfold css was not really built to solve the problem it solves. It's used to position UI elements but was designed to style documents.
HTML too, equally bad technology.
you are bad
HTML5 <3
also the fact that i can't make air flow inside the ship
i hate you
18:12
@Jefffrey what other markup languages are you familiar with?
if i make air go out of the ship
@BenjaminGruenbaum none
then close the outside breaches and open inside
it just stays at the same level
you?
@Jefffrey several
18:13
name one
Ell
Ell
xml
YAML
@BenjaminGruenbaum oh my goodness that's ugly
user1804599
@BartekBanachewicz I am starting now. :3
(btw I'm joking)
Ell
Ell
18:14
YAML is beautiful <3
scribe and xaml were just the two I had in mind. I dislike both.
YAML isn't very good either.
JSON?
user1804599
I might want to add preemption but I am not sure when I would yield.
Ell
Ell
Oh wait a minute. Yaml Aint Markup Language
@DeadMG no no no, JSON isn't a markup language. It's a data exchange format.
Ell
Ell
18:15
or is yaml Yet Another Markup Language?
WINE is Wine Is Not an Emulator.
Ell
Ell
I don't even know what "markup" is
@Ell that's the one.
HTML/css still suck at describing the presentation layer of applications - which is reasonable since that's not what they were originally built for.
Ell
Ell
css was?
The thing is, the task at hand is so simple that it doesn't really matter. HTML/CSS is not hard, it's like saying LaTeX is hard.
Ell
Ell
18:17
LaTeX is ugly and hard :3
It's just 'where do I put stuff', HTML/CSS solves a pretty easy problem so no big deal.
@Ell no it's not, you just use it for a while and then you're used to it. There is nothing conceptually hard about it.
Ell
Ell
I guess not
@BenjaminGruenbaum you say that, but it's managed to be cocked up no end.
@thecoshman oh yeah, people jerk off to HTML/CSS all the time talking about the semantic web and shit.
Let me tell you something, I've spent a considerable amount of time doing scraping and content analysis and extraction on the web for the company I work at in order to prepare texts for NLP. People do not write semantic HTML.
wtf is semantic html
18:19
According to this answer the '__builtin_expect` branch prediction hint has no effect on modern CPUs. However, assembly output does show a difference. (Probably there will be no measurable performance difference at runtime, but still, it's different object code!)
I totally get that too, it's just not a particularly hard problem.
@DeadMG using HTML5 tags like <main> and <article> and <section> instead of using div,span,ul and li for everything (mainly).
@Ell yup
@StackedCrooked try to measure it.
wait, my code is wrong
probably
> Besides the useless branch hint for the predictor, __builtin_expect has its use, the compiler may reorder the code to improve cache usage or save memory.
18:23
This is correct, I think. (Only different is the palign.)
IMHO this is the most important effect.
It probably isn't the most important optimization you can do, but slapping unlikely on conditions that are bound to happen really rarely either does nothing, or improves the execution speed (no jumping = profit).
But according to what I read modern CPUs use dynamic branch prediction, so there is no point in optimizing statically.
Unless perhaps to set the first prediction. But that does not seem very useful to me.
user1804599
Lua code y u no run.
Sure they do, but code locality is still a thing.
user1804599
Oh, I never called the function.
@rightfold lol
Total acid trip
> WebGL not supported, but code will be shown.
meh
@MohammadAliBaydoun You crashed my browser =/
For you folks who can't see it~
18:34
why wouldnt we be able to see it?
oh, webgl
user3010322
@melak47 q___q ! So mean! I go to sleep and then you post a message like that, and it gets that many stars!
I didn't intend for it to get starred ._.
Yeah, that meme was totally borne out of thin air.
@R.MartinhoFernandes what meme? huh?
@ThePhD you're a meme now! :D
user3010322
u.u
18:38
@melak47 ThePhD => UB.
user3010322
D: How is that a meme here? :c
I think it's because of all the cowboy stuff.
user3010322
Hmmmph.
A meme (; ) is "an idea, behavior, or style that spreads from person to person within a culture." A meme acts as a unit for carrying cultural ideas, symbols, or practices that can be transmitted from one mind to another through writing, speech, gestures, rituals, or other imitable phenomena. Supporters of the concept regard memes as cultural analogues to genes in that they self-replicate, mutate, and respond to selective pressures. The word meme is a shortening (modeled on gene) of mimeme (from Ancient Greek μίμημα mīmēma, "imitated thing", from μιμεῖσθαι mimeisthai, "to imitate", from...
> A meme acts as a unit for carrying cultural ideas, symbols, or practices that can be transmitted from one mind to another through writing, speech, gestures, rituals, or other imitable phenomena.
user3010322
So I'm a unit of an idea, and my idea is UB?
18:41
@MohammadAliBaydoun Dat framerate.
Xeo
Xeo
@ThePhD 'hidoi!'
@ThePhD Summarizing: You are undefined behavior.
user3010322
@Xeo Sore wa aru. :c
user3010322
@JerryCoffin Can I appeal this verdict?
I invoke ThePhD!
18:44
There was no verdict.
It arose naturally.
@ThePhD If you choose, you can (attempt to) write a defect report and send it to the committee, who will reject is at not a defect.
It's the circle of life.
Twitter got a facelift?
@Borgleader Nah, it's just how the Site du Zéro uses it.
@EtiennedeMartel No I mean, the theme changed, the top bar is now white
18:46
@Borgleader Oh.
That doesn't go well with my background. Gotta have to change it.
Gotta keep changing shit in the UI.
So I emailed the Ubisoft HR guy and my internship supervisor crosses-fingers
Websites these days are not up-to-date or something if they don't keep changing shit in the UI.
@Borgleader I can't help you there, unfortunately.
user1804599
// vm.h
extern "C" {
    extern char const* styxRegistryKey;
}
// vm.cpp
extern "C" char const* styxRegistryKey = "styx";
user1804599
18:50
Is this correct way to use extern?
Why must you poison this room with C code?
styxRegistryKey? what are you doing
@melak47 Something that'll never get finished.
user3010322
@JerryCoffin =[ Can I appeal the defect report?
I've gathered he's making a language...that compiles to lua...but what's this registry key business
user3010322
18:53
@Borgleader Should have said something to me! We could have applied together.
I think I'm going to sleep.
Good night.
user3010322
Already?
user3010322
But, ah well. Good night. :D
I guess I come here only to see how will the room get called today
user1804599
@melak47 Lua registry.
Xeo
Xeo
18:57
hm... apparently I have a dehydrated disc somewhere
moisturize it :p
user1804599
Hmm.
I woke up like 10 hours ago and I'm so fucking tired
user1804599
Not sure how I want to abstract away Lua so that you can extend Styx through C.
user3010322
@Xeo What does that mean?
user3010322
18:59
The fluid between the bones in one of your leg bones is derped out?
user3010322
/cc @Rapptz, medical expert extroardinaire.
@rightfold You don't would be my guess.
Spine, not legs
Xeo
Xeo
you know where the discs reside, right?
user3010322
Yeah, but you've been having leg pain, so I thought there was some special leg disk thingy.
4
user1804599
19:00
@DeadMG That would make it difficult to swap out the VM later.
:D
leg disk!
The elusive leg spine disc
@rightfold Swap it out for what?
@Xeo are you gonna be fine?
(also that has nothing to do with extending it through C)
user1804599
19:01
For another VM. vOv
yeah, you ain't never gonna do that.
Xeo
Xeo
@ScarletAmaranth no clue! :D
user1804599
@DeadMG Eh, well, if the extension API passes Lua states or stuff like that, it pretty much does.
Xeo
Xeo
orthopedist on thursday will tell
user3010322
So wait, if there isn't fluid between a few disks, how is that getting down to your legs?
19:02
Via tubes
user3010322
Is it a nerve that's now getting pinched, and it happens to be a leg nerve?
@rightfold What, lua states can't exist in C++ now?
ever heard of nerve system?
user1804599
Only a moron would expose a C++ API.
why?
19:02
@rightfold lol
@rightfold exposing a C++ api isn't for morons
@DeadMG portability
user3010322
C is very ultra portable.
user1804599
Because virtually all languages expose a C API and not a C++ API.
unless you want your API to be actually useful/usable, of course, in which case a C API goes right out the window.
@rightfold They expose C FFIs at runtime. That's a different story.
user3010322
19:03
In some cases, you can write a C static library and compile it with MinGW, and it'll work with VC++ (e.g., early versions of SOIL).
many languages don't offer a C API to their compiler frontend.
user3010322
I no longer know if that's true anymore, though. D:
user1804599
So you would have to write C++ code instead of <insert favourite language here> to extend Styx.
@ThePhD more like system/version dependent ABI makes C++ compatible API's practically infeasible. Unless you control the exact compilation toolchain for both lib and clients /cc @DeadMG
Xeo
Xeo
19:03
@ThePhD dunno. from what I can gather, something seems to be pressing on some nerve or other
user1804599
Also, whether it is C or C++ still doesn’t matter WRT Lua.
user3010322
@Xeo Eww, pinched nerve. D:
@rightfold Or they could just have to write their own C binding, which wouldn't be too problematic.
user3010322
@sehe Somebody should really standardized that ABI. D:
Making stable C++ ABI is a nightmare
19:04
Yup. Would be nice. But: ~purformance~! And: "We've always done it this way"
Regardless of compatibility
user3010322
Why?
Xeo
Xeo
and there was also something about 'no contact to nerve fibers', dunno if that's positive or negative though
user3010322
I thought that the issue was mostly choosing a name mangling scheme.
@Xeo do you feel your legs?
user1804599
19:05
Also, I don’t know how well C++ works with dlopen.
Xeo
Xeo
@ThePhD and exception schemes and shit
Not breaking the ABI compatibility requires way more effort than just writing C++
@ThePhD LOL no.
name mangling is a triviality compared to all the other ABI details.
EH schemes in particular.
user3010322
Oh.
Xeo
Xeo
virtual tables
19:06
vtable layouts
You can't change vtables, you can't change object sizes
user3010322
Ooh, yeah, virtuals. :c
Xeo
Xeo
all that fun stuff
user3010322
Wait, who relies on the size of a virtual table? ._.
The ABI consumer, duh
user3010322
19:07
Oh. Underlying system. Hm.
user3010322
Well, that kinds sucks then.
Xeo
Xeo
@LoïcFaure-Lacroix yeah no, I'm totally faking my walking :p
and the pain. totally faking the pain
To call a virtual method, you need to go through a vtable
@Xeo better feel the pain than nothing at all if you ask me.
And because C++ has no reified types, and no reflection, it's basically just hardcoded offsets and shit
So if anything changes on one ABI side, the other side is fucked, and congrats you have a broken ABI
user3010322
19:08
Mmm
Xeo
Xeo
@LoïcFaure-Lacroix ''cause I'd rather feel the pain than nothing at aaaaall~' - don't remember where those lyrics come from
user3010322
Well, now I know what not to do when I design my own language and associated compiler. =[
It's not easy in C, but way easier than with C++
ABI compat I mean
Xeo
Xeo
oh right, that was Three Days Grace
user1804599
I think I will just provide a Lua-like API.
user1804599
19:10
But without actually mentioning Lua explicitly.
@rightfold So you mean, a fucking hideous API?
user1804599
Exactly: one that isn’t very bad at all.
Lua API is one of the worst APIs in existence.
the only way it could be worse is if they added globals everywhere.
What documentation makes sense to produce when writing code?
@DeadMG True story
Ell
Ell
19:22
Okay I still can't get a nice design out of my problem >.<
Time to write up an essay :3
yeah, I always write essays to relax myself too
OMG! Our kids have lice!
Nuke them
Ell
Ell
@Jefffrey I mean of my problem :D
burn them all
@Ell ;)
Xeo
Xeo
19:27
@wilx eh, happens
get some anti-lice shampoo, a proper comb and keep them away from other kids
we had that happen to the four of us after a visit to a theme park
@xeo shave them all
QUARANTINE
Also chem shower
Xeo
Xeo
1) You shouldn't use templates just cuz its hard to write out the type, you should use typedefs/using statements cuz the type is hard to write out. 2) Side effects in constructors are ALWAYS brittle. — MadScienceDreams 1 min ago
Two-phase init guy right here
@CatPlusPlus Set them on fire, way easier.
19:33
how template help writing types?
Infer all types always
@CatPlusPlus Even if it's only to make @LightnessRacesinOrbit mad.
Ell
Ell
Hmm. I need a cloud registry of facts :3 serial numbers n shiz
@Ell you'll get sued and put in jail
Xeo
Xeo
19:34
@EtiennedeMartel 'daddy daddy, look, we have lice!' *fwooosh* 'Honey, we need new kids'
Ell
Ell
@CatPlusPlus Somewhere to write down serial numbers of my devices and other bits of info which may possibly be useful some time
@EtiennedeMartel I heard lice can survive pretty hot temperatures
When do you ever need serial numbers of hardware
Ell
Ell
idk, when you call the support line? :3
@Xeo 'Decontamination complete'
Ell
Ell
19:35
I don't know.
Are they not useful at all?
:lol: you call support lines?
Ell
Ell
Not yet :P
@Ell they'll ask you to reinstall windows
Ell
Ell
@LoïcFaure-Lacroix Google will? :P
Besides, you can then just read the goddamn number off the device
Ell
Ell
19:37
Not if the device won't boot :P or the stick has fallen off
They don't fall off
Ell
Ell
Mine has
Stop buying cheap knockoff shit
Ell
Ell
It's a nexus 7 :3
@Ell the IMEI is written somewhere else as far as I know
if you have a IMEI
Ell
Ell
19:39
It doesn't have a sim
No, seriously, those things don't fall off, what the fuck did you do with it
Ell
Ell
the corner was peeling off
and continued to peel
then just lost it somewhere
Good choice of manufacturer
Can't say for Nexus7 but I know that if I remove the sim thing on my phone it's engraved there. It might be hidden somewhere
you're such a helpful little cat
19:42
Ugh. I hate maven
@Ell I started a registry of internet accounts, for when I die.
@Ell if you have the box, it's there too
@LightnessRacesinOrbit Well, he's gotta keep his "tough guy" façade somehow.
Weird diacritics means business
I am internet tough guy only on Wednesdays though
user1804599
It works!
19:47
dayum
argentina offered me four times the production cost for nine plasma rifles.
now I'm fucking loaded.
@DeadMG what are you playing?
XCOM
I had a joke there but it wasn't funny
XCOM is good.
more than four months income
$3,600
19:50
It's hard and it hates you
If you're doing good, then shit will happen
Rather old, but still funny August 24, 2012
user3010322
What's funny about it? o.0
Passwords on the board.
You have to watch for more than .1s
They had a password for emergency services something visible
19:51
I know some people in the lounge are incapable of achieving this amount of focus
@CatPlusPlus Yup. Really strong username and password :)
user3010322
Oooh.
Helicopter tracking or whatever
user3010322
Haha, nice.
@sehe reminds me of zdnet.com/…
user1804599
@BartekBanachewicz I uploaded first commit. :P
19:53
Was linked from there :)
@rightfold inb4 "and last"
user1804599
Most likely! :D
user1804599
Ugh, that new Twitter design.
user1804599
The fucking buttons are outside of the bounds of the content.
user1804599
What a horrible bunch of idiots.
> This is, by far, the hardest part of learning something new. So much so that we've written entire articles about this already. You can do a lot of things to push yourself through, but the most important advice I can give is: make peace with the fact that you're going to suck at first. It will get better.
user1804599
19:58
And one of the icons is fuzzy.
^ quite true. And worth remembering
@rightfold and the blues don't match/mix
user1804599
I have brown, not blue.
But I like it. It's slightly less broken for keyboard use now
user1804599
It probably depends on your settings.

« first day (1206 days earlier)      last day (3968 days later) »