« first day (3142 days earlier)      last day (1821 days later) » 

12:00 AM
@Wes might know, although modern Italian has about as much in common with ancient Latin as modern English so maybe not
 
fyi, after eating part of a pineapple, storing the rest upside down on a plate in the fridge definitely makes the remaining part sweeter and juicier. And keeps for days.
 
when you say upside down, you mean with the flat part that you cut exposed to the air?
 
I meant with the cut side down, assuming you've cut the top off the pineapple.
that side on the plate.
 
it's irrelevant tbh for me, as much as I like pineapples they are just too complicated, I can't be doing with the prep because I am a lazy expletive
same for mangos
I'm sure there's a technique but I have enough stuff to learn already
@Danack see I'm an idiot, when I imagined it I cut the bottom off, your way makes much more sense
 
12:31 AM
there's no log analysis tool that automagically turns a given log file and some syntax definition into something actually readable, riiight
 
@Danack That's good to know- I love when pineapple tastes really sweet.
 
like you can say... here, take this stupid example.log, try to parse lines that have $format and make it look like a hooman wrote it?
thinking I have to be the tool here...
 
@Ekin not that I know of (although I'm certain there are many, which are probably all terrible in some way) but if you are going to make one, may I recommend/request that your parser output is an XML doc... strong semantics at the beginning makes for a lot of flexibility in processing, and you could wrap in XSLT dead easily (which is designed for precisely this sort of thing)
that's basically a feature request for a thing that doesn't exist yet
just when you have time. I can wait until Monday.
 
XSLT is to format it into something else, right?
 
that actually sounds like a really fun and useful thing actually, if you want to make a FOSS project I would contribute
XSLT is for output, yeh
you can do some mad stuff with it though
 
12:46 AM
I could go that way yeah
not right away as 4 AM and event ops centre is in an utterly confused state but can do tomorrow onwards me thinks, as I'll need this again and again
 
basically I think you want to break it into two pieces... an input parser that spits out structured data, and a pluggable output writer API that is handed said structured data and does whatever with it
 
yeah that makes sense
 
(and my personal preference for structured data is XML/DOM because it's semantically strong and universal)
 
say you want to use something like this to turn your legacy logging mechanisms into some new and shiny log analytics tool... would you still go with XML?
although that's not my use case here, just wondered now
s/to turn/to move/
 
yes, it's just for internal representation
 
12:50 AM
yeah you're right
 
but it has the advantage that you can just send it somewhere else in a universally supported format
 
yep, me likes
 
nothing stopping something from converting it to JSON or whatever, but the other way round is... less good
(imo)
 
short version, logging stuff in lines of text is terrible, and always will be.
 
12:59 AM
yeah... I mean if you want to look at those lines of text... look at as in... just stare at, then fine buuut
no way to make some useful analysis over it as it is
say you need to compare a few lines... or in my case thousands... you can only stare at it
 
@DaveRandom I haven't played with it yet....but the point is that logging data is easy, but then you need to have tools to be able to investigate it, and watch for certain rates of events, either in realtime, or analysing past data.
actually - nn. I really need to go to bed...
 
night o/
 
@DaveRandom Reinventing the wheel is like one of my favorite things to do.
 
@Ekin what do you mean by "compare" out of interest? If you have a specific problem I may be able to help, I have a lot of tricks up my sleeve due to the amount of time I have spent staring at logs from PBXs spit out over a serial console
like, I bet there aren't many people in here who have seen the term "baud rate" recently :-P
@StatikStasis inorite
 
@DaveRandom I'm on a 56k modem right now.
 
1:05 AM
esp with networky things, it's how I learn how they work
@StatikStasis see I know that's a lie, because I know how long it takes to load pages on SO when you do that (well, 64k ISDN)
either it's a lie or you are the most patient man on earth
I guess chat would work OK once you got it up though
 
I only see esp with networky things... still loading one sec...
 
:-P
May 28 '13 at 14:43, by DaveRandom
Back in the early days of the internet you had to shout your HTML because connections were so unreliable
urgh, nearly 6 years ago...
 
I learned HTML on a WebTV.
We were too poor for a computer. I did have a Tandy my friend gave me. But I was 15 before we got a modern one. Those were the days.
I did learn BASIC on that Tandy though.
Shower time- be back in a bit.
 
My dad has worked in IT in some form or other since the mid-70s, first computer I remember being in the house was a Gateway 2000 486 though, don't remember having anything pre-Windows 3.1
we got that on a finance deal provided by his job, I'm told it was a stupidly good deal but I was like 7/8 so no real point of reference
I do remember that the P2 it was eventually replaced with was >£800 though because I remember being in the shop, it was when DVDs were new shiny tech and I remember watching the Godzilla movie on DVD on one of the display models and being amazed with the quality
of the picture, not the movie
I mean the quality of that movie is amazing, but not in a positive way
 
1:20 AM
@DaveRandom one example... imagine a file where you have var_dumps of random data, dumps of save variables every single line
say L1 and L2 look like below:
foo: 12345Q, bar: 3495RT ...
bar: 1SYWJ(23, foo: whatever ...
and you need to extract basically all occurrences of foo throughout the file, keeping track of bar per line as well
 
ugh right yeh, that sort of shit I tend to write single use scripts for to reformat them and extract whatever specific info I'm looking for... generally only a couple of mins but a drag nonetheless
 
more realistic example, you have a log file that always starts with User $userId, Date: $whatever, OtherInfo: $whateverElse per line
that's what I'm doing as well
consider having to deal with those and having aaaaall the background tasks logging shit like that for a good while
or an API for that matter...
I keep getting emails that ask me to dig into logs to find stuff because they effed up actual live data
 
so if you need to be able to follow transactions/processes in a noisy log (and you have the ability to modify it) a neat/simple trick is to have the messages for each group contain a guid, because then you have something unambiguous to grep
again, limited use though
 
takes a deep breath... just 6 more days to go and I'll be working at a new company
 
@DaveRandom I remember seeing those Gateway computer boxes that looked like a cow. I wanted one so bad. I think we had a Packard Bell. Also... I remember when CDs first come out and I was so excited to get Vanilla Ice on CD.
@Ekin You're leaving... place is burning down and you're like...
 
1:33 AM
it's more like the people in the place are always in that ^ mood
I've tried for an entire year till now to make it better, it's not working
 
@StatikStasis wait... how old are you?
 
@DaveRandom 37
 
didn't CDs come out when you were like 6 then?
 
@Ekin Culture is hard to change. And no one likes change even if they say they do. In fact people usually say "I love change!" until someone tries to change something.
 
or is my concept of time off again?
 
1:36 AM
@DaveRandom Well... it was 1990. So maybe they were already out and we just had enough money to finally buy a CD player.
 
also Vanilla Ice is surprisingly not-shit for early music taste, not really my thing but it has some artistic merit
 
aw... I still have my sony walkman in some box
 
@StatikStasis ah right yeh, I remember that being a big purchase as well
 
I loved it back then... as well as the Ninja Turtles.
The second movie was my favorite.
 
It is <1mth since I heard ice ice baby on the radio and it still sounds decent and approximately contemporary
in the same way as queen/david bowie under pressure
 
1:39 AM
You ever hear some music that is old and you think... if someone came out with that now- they would have never made it.
Oh yeah- the one he copied.
 
yes, I actually think that about the beatles quite a lot, but it's not a fair comparison
they wouldn't have made it now, sure, but they were in uncharted territory
 
True.
 
Abba otoh... not really sure what happened there
 
Oh wow - it was year later when we got a CD player; 1991. Because this was the one I got. en.wikipedia.org/wiki/Extremely_Live
 
the real shame is that I suspect if Zappa was starting now he wouldn't be have been able to do what he did... you can't really make a living from being niche any more I don't think
 
1:46 AM
@DaveRandom Now stuff like this, in my opinion, would still make it! The bass line and driving rhythm of this song is still amazing to me. youtube.com/watch?v=Gs069dndIYk
 
@StatikStasis absolutely, in fact I would say that some of Justin Timberlake's recent output is heavily influenced by EWF
 
@DaveRandom I remember loving this song too... even though I never knew what he was saying except the part where I would say "I lick your boom boom down." youtube.com/watch?v=sUmIiWLoEuo
yeah- I agree
 
the song by a guy with a stupid name isn't a million miles away either
Portugal The Man/Feel It Still
ridiculous name
 
lol
The 90s were great
 
@StatikStasis I am not clicking that because... am I going to get Ricky Martin?
 
1:53 AM
No
It's Snow - Informer
 
for some reason I associate that with Ricky Martin
 
lol
This was another great 90s song. youtube.com/watch?v=4JkIs37a2JE
 
First music I ever bought was All Saints/All Saints, then Manics/Gold Against the Soul, then I fell down an Oasis hole for years
 
Oasis was great.
I used to associate Bitter Sweet Symphony with Smashing Pumpkins for the longest... not sure why.
 
Live they were amazing, one of those rare bands who can actually carry a gig at a stadium/festival
 
1:59 AM
Instead of The Verve. They reminded me of Oasis for some reason.
 
although tbf I was always right at the front :-P
 
@StatikStasis you know the Oasis song "cast no shadow" is about richard ashcroft?
 
No I didn't.
 
apparently he used to be way too skinny
I forget the specifics but there's an interview with Noel on youtube somewhere
 
2:01 AM
Interesting!
 
(he is one of the best interviewees ever, btw, really funny and brutally honest)
 
LOL!
I went to this video youtube.com/watch?v=1hHSH9sJUEo
One of the comments "This guy looks like a single dad."
This was one of the trippiest videos I can remember from the 90s. youtube.com/watch?v=3mbBbFH9fAg
 
JK always struck me as someone who'd be great to go to the pub with, but only for 1 or 2 drinks
@StatikStasis watch any music vid by The Shamen, I guarantee it will be more insane
 
hmm... looking now.
 
not sure if the Happy Mondays ever made videos but they will probably be mad as well
ditto black grape
Black Grape/Kelly's Heroes is one of my favourite songs ever
> Jesus was a black man - no, Jesus was Batman! No no no, that was Bruce Wayne
 
2:09 AM
This one isn't too weird. Is there a specific one I should look at? youtube.com/watch?v=7b2T8K2D-ps
 
there aren't enough mad musicians any more
 
That is just... horrible.
 
video for genesis/land of confusion is great but may not make a lot of sense if you aren't at least vaguely familiar with UK politics in the 1980s
although it does feature reagan I think
 
@DaveRandom This is one of my favorite youTube videos. Someone took The Funk Lab's I Am Electro and put it to an old video of Tommy Seebach Band... the timing is so great! youtube.com/watch?v=V9upqWnlls0
 
will check it out tomorrow, too late for music on speakers and no headphones coming to hand
 
2:19 AM
lol- k
Did you try to use the force?
 
I stood up and walked across the room and everything
> Initially, the album was supposed to feature duets with Mercury and Michael Jackson. They recorded "There Must Be More to Life Than This", but Mercury dropped out of any further collaboration after feeling uncomfortable working with Jackson's pet llama in the studio - en.wikipedia.org/wiki/Mr._Bad_Guy
 
When you said no headphones coming to hand I just imagined you laying down with your hand stretched out trying to make headphones come to you from a table somewhere.
 
lol
 
@DaveRandom ...I have questions.
 
That's fairly accurate initially but then I decided to actually make an effort
 
2:24 AM
Not sure if there was a llama or if Freddie saw a llama because of the drugs... or both things were happening.
 
I think he was mainly into cocaine at that point... which isn't great but it doesn't make you see shit :-P
 
That's true.
 
Wes
LOL
 
That only made me depressed. Which is why I only did it three times.
 
Wes
morning. you left out the best part, "Jackson was said to have been upset by Mercury's use of drugs"
so he was seeing the llama because of the drugs? :B
@StatikStasis LOL thought the same thing
 
2:26 AM
Meth had all the effects of coke but without the depression.
So glad those days are long behind me.
@Wes =D
And good morning!
 
Wes
\o :B
 
I've got to eat. Be back in a bit.
 
@StatikStasis I mean... I'd consider doing MD again at a festival or sth
don't think my psyche could cope with shrooms any more
@Wes afaik he wasn't ever really into psychadelics... certainly at that time he had thrown himself head-first into the gay club scene so it will have been all coke and speed probably
 
Wes
still that makes for a really funny sentence
pet llama lol
 
3:07 AM
Does anyone know anything about RFID?
I mean like how it works and stuff
there's plenty of stuff online but it's a super complex subject and I could do with talking to someone who understands it at least a bit
bonus points if you know stuff about NFC as well
(@ircmaxell maybe?)
 
3:30 AM
@DaveRandom They go in things. Things can be scanned. Scanned things can be IDed now.
 
Gee thanks :-P
I realised that sort of thing is very annoying, asking for help without saying what, just typing details out atm
 
youtu.be/cZwLIxM7PdE?t=25 this is a simple one explaining it
> they draw power from whatever happens to be reading them
that's how they don't need batteries etc apparently, huh
 
yeh, in terms of high-level physics it's the same basic mechanism as e.g. an electric toothbrush charger
or wireless phone charger in fact
@Ekin thanks, I'll check it out, but tbh I suspect it will tell me what I already know... I understand how it works, it's at the electronics level where I need some pointers
which is very much not my strong subject
(but I am willing/keen to learn)
 
3:46 AM
yeah it's interesting stuff :)
apparently there's active/passive difference
active ones do have battery
and dual antenna
 
yeh, I think that's used for fobs for keyless entry in cars and stuff
but thankfully I don't to worry about that, I'm just dealing with touch-reads, so like 20mm range or sth
My two concrete problem/objectives are:
- I have a door-entry keypad unit with an RFID reader for smart cards, for some reason it won't read the fobs for the alarm system in the office which are (afaik) using a compatible frequency. The reader has programmable "profiles" (i.e. data formats w/parity bits etc) but I run out of understanding at that point. I'd like to know if there's such a thing as a "universal" reader which will just read raw arbitrary bits (or if I could build one I'm open to it) and generally I'd like ideas for how to proceed. I'm not particularly attached to the model of
 
pretty sure universal reader is a thing, but apart from that I have no idea ^^
 
It seems likely to me that it's just an incompatible frequency, so some way to the frequency of a tag/reader would also be good
* to find/measure^
 
4:09 AM
do you know the brand/model of those?
I guess you'd look it up though by now :-P
it could be that the reader is only for low freq, if it's only for smart cards
 
the reader is made a company called Brivo and it's part of a larger system (although it has a standard interface so you can use other readers)
I did find the tags online earlier but not got the link rn
 
Wes
mornings 2
 
5:09 AM
@NikiC how does this look to you ...
static zend_always_inline zend_bool zend_vm_interrupt_set(zend_bool *interrupt) {
    zend_bool expected = 0;
#if defined(ZTS) && !defined(ZEND_WIN32)
    return __atomic_compare_exchange_n(
        interrupt,
        &expected,
        1,
        0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST);
#else
    if (*interrupt == expected) {
        *interrupt = 1;

        return 1;
    }
    return 0;
#endif
}

static zend_always_inline zend_bool zend_vm_interrupt_unset(zend_bool *interrupt) {
    zend_bool expected = 1;
this ensures consistency of the boolean in both zts and nts, and I think it looks right, although I'm not sure about mmodel on failure ...
I looked at windows Interlocked* API's, char is 8 bit and there's no InterlockedCompareExhcange8, possibly the compiler makes it atomic on windows by default, I haven't tested there (don't know what tools to use in order to test) ...
 
5:25 AM
morning all
 
Wes
hey joe
 
don't make it bad

Good morning.
 
Wes
no that's another song :B
that's jude :B
@set(a|b|c|d|e|f)->shuffle()->pick(1|3)->join(, )
yesterday i started a small programming language
because i'm insane, i guess
it's for templating
 
they're good toy projects
 
Wes
it's already super huge tho
 
5:43 AM
does anyone know what that is about, I missed gossip while coding, fill me in ?
@Wes what language are you using ?
 
Wes
php
 
that's brave
 
Wes
doesn't have to be fast, but it's quite fast actually
the tokenization was the huge pain in the butt when i did the css parser
but for this language i choose a syntax that is simple enough that i can just preg_split it
 
@Wes Advice stays.
 
Wes
:B
 
5:59 AM
@StatikStasis I actually enjoyed derivatives ... lol. I was fortunate to have an excellent teacher who wrote everything on the board that she lectured, and worked through examples on the board for all types of problems that were found in homework. I understood what I was taught and what derivatives were for. Integrals are another story. I struggled with those, but still managed to do them most of the time.
 
Wes
i got the ast working (kinda) but now i have no idea how to evaluate the functions
i think i need to define an evaluation order
@func1(@func2())
 
@Wes ... I finally got my project working under PSR-4 :S
 
Wes
@func2 must be evaluated before @func1
 
@Wes TL;DR you were right. I just hate how my namespaces look, but I'm forcing myself to ignore it unless I can think of better names.
 
Wes
6:03 AM
phpstorm supports dynamic rename
just right click on the namespace name, refactor, rename
 
yeah, but I have to think of the names first
 
Wes
6:16 AM
maybe not, i wouldn't get fossilized on naming
do you say that in english? be fossilized on something
@JoeWatkins isn't a >= b etc also a binary op?
 
Wes
6:35 AM
eh, i don't get it
 
7:10 AM
@Wes "hung up"? "distracted"? that's my guess based on context
 
Wes
means stuck at doing something :B
mostly for stubbornness
 
@Wes yeah, "hung up" fits
 
7:37 AM
@pmmaga I will review the link you provided.
The background codes of php functions are written in the C programming language.
Did I get that right?
 
7:54 AM
s/background codes/source code/
 
apposite highly pertinent or appropriate : apt
 
8:11 AM
@Kalle since you started review on this, can you finish it please here
 
8:43 AM
mornin
 
8:56 AM
Large image sizes don't show properly – #78060
 
9:11 AM
Outdated PECL logo on PHP.net page – #78062
 
9:22 AM
 
9:34 AM
a certain new comer to internals is really beginning to piss me off, I only have so much patience ...
 
9:59 AM
@JoeWatkins what's up Joe?
 
10:12 AM
posted on May 24, 2019

I was nearly murdered by a coconut today. For real. This happened as I took the dogs on their morning poop stroll (I can no longer speak or spell the word “walk” in my home). I wandered up and down the sidewalk, on some grass, and headed back home. Near the end of the walk, I stopped to fiddle with my phone. I was listening to a podcast, and needed to skip the commercials. I stood in pla

 
10:27 AM
@bwoebi every time anyone disagrees with this new person, they start throwing their weight around, they've refused to revert stuff as requested by myself, nikita and kalle, and even personally attacked me on an issue thread, saying that my (and nikis) request to revert something was because of my ego ...
they are also making far too much noise, but that's just my opinion ... the facts are they are behaving like a petulant child, and I'm sick of it ...
 
@LeviMorrison fyi I've committed basic variance support
4
And by basic I mean no cyclic dependencies, at all
 
10:43 AM
it only took 6 months :)
 
mornin
anyone using Predis?
I think I've found an issue, trying to bulk delete using SCAN MATCH through Keyspace iterator.
But then found it strange that it doesn't use prefix from connection options - well.. WTF I've obtained prefix from connection options and applied to match pattern and success it found what expected.
But then did rewind iterator and passed to Predis/Client->del(found keys) - and guess what? It has added prefixes to all rewinded keys :(
 
@StatikStasis yeah I've sent a message for him on Discord
 
Wes
11:04 AM
hallucinatory discussion with client today. they want to reach more clients via web but they don't want me to waste time and money on seo, new publications, advertising
"no i don't want any of that"
 
@DaveRandom I know a bit, but not a heck of a lot. Anything specific you're interested in?
 
Wes
i am having this kind of conversations for more than 10 years now
how the hell i am supposed to bring more clients...
 
11:16 AM
var_dump() should display the invisible characters code – #78064
 
 
1 hour later…
12:27 PM
The last message was posted 1 teddy bear ago.
 
12:39 PM
=D
And good morning, room.
@Wes Oh that's easy then- you just need to know very powerful magic, be an alchemist who can make magical potions, become a dictator and force people to go to their site, or do something really horrible that gets you on the international news and begin babbling about their site incoherently.
@JoeWatkins Working on internals sounds... fun.
 
1:06 PM
o/
 
1:18 PM
\o/
 
@NikiC @krakjoe is it viable to align 12-byte zval's, leaving out u2? What might be the implications of that? This is for internal tree nodes with multiple keys, so keys/node is key.
 
Mornigns
 
@rtheunissen I'm not sure
 
1:33 PM
10 hours ago, by DaveRandom
My two concrete problem/objectives are:
- I have a door-entry keypad unit with an RFID reader for smart cards, for some reason it won't read the fobs for the alarm system in the office which are (afaik) using a compatible frequency. The reader has programmable "profiles" (i.e. data formats w/parity bits etc) but I run out of understanding at that point. I'd like to know if there's such a thing as a "universal" reader which will just read raw arbitrary bits (or if I could build one I'm open to it) and generally I'd like ideas for how to proceed. I'm not particularly attached to the model of
 
You're likely not going to encounter an arch that has both strict alignment requirements and alignments higher than 4 bytes
 
I think that if we handle everything internally, never expose an address to the actual "zval", this should be okay assuming we have no use for u2 in the node (which we don't). I was wondering if there is some low-level implication of not aligning as expected... or a general rule to avoid that for some good reason.
 
that's the high-level real-world things I need to solve
 
@DaveRandom not really sure there. I know there is some protocol differences, and that RFID uses power delivered from the reader, where NFC is IIRC active-active
 
yeh, I think really what I need is a bit more of a "raw" reader so I can look inside the black box
 
1:36 PM
@rtheunissen It's a tough question, this is pretty uarch dependent. You should definitely expect a penalty if your unaligned access crosses a cache line boundary, but probably not more than that (on modern cpus)
 
@NikiC I wonder if that penalty would be greater than the 25% mem overhead we'd be saving per key. Not sure if most cache lines today and tomorrow are 4 or 8 bytes... 4 would be okay here, Maybe something to test later on. I've never done anything like this so definitely new territory.
Another crazy idea would be to separate the zend_value from the type info ^^
 
@rtheunissen you wouldn't even need the full 32bits per type in that case ;)
 
1:58 PM
@DaveRandom I was looking into some RFID scanners and rfid tags about a year ago when I was debating on creating some RFID "scan zones" for bins of products that came in. The scanners were going to be setup in an array where the system would be able to tell which way the bins were being brought based on which ones were getting read first and how that changed as it went through the zone.
This would automatically check in the bin of stuff into the warehouse in order to know it's location. Never went past concept.
Would work the same as bins of product left.
I'll be interested in your results and what you learn in case I ever revisit.
 
 
1 hour later…
3:08 PM
The last message was posted 1 elephpant ago.
9
 
4:01 PM
@NikiC Whoo-hoo!
Does that mean you and Dmitry got all the early binding stuff worked out?
 
@LeviMorrison It mostly means that we gave up on cyclic dependencies completely for the initial implementation
I'll try to make them work in conjunction with autoloading, but it's pretty tough
We also had to limit preloading pretty heavily, but should be able to relax that in the future
 
Correct is better than broken and fast, at least I think so. I think Dmitry may not always think so :)
@NikiC We should probably email internals about this. Or have you already and I just missed it?
Also, thank you very, very much!
 
4:26 PM
@LeviMorrison yup
 
4:38 PM
@PeeHaa I've listened to this Moscow set by Oakenfold twice. Really great set. Do you have a favorite trance set?
 
5:13 PM
@StatikStasis Nope. I just either do random youtube sets or let spotify decide for me what I want to listen to :)
 
:D
 
5:26 PM
Time for sushi o/
 
 
1 hour later…
6:31 PM
The last message was posted 1 Friday ago.
 
@NikiC Hah! 1 byte would be enough... which is tempting but a whole other level of hackery. I'm also wary of get_gc... because the 4-byte aligned zvals would need to be copied into a standard zval buffer. >< It's such a shame having 4 completely unused bytes per value, on top of the already-hacked-to-28-bytes zend_object header. This is probably wayyy over-engineered at this point so might come back to this later on when it's all in place.
I'm wondering whether zend_refcounted_h could be at the top, alongside a zend_object*, rather than an embedded one, because we never use any functions or properties on the node itself - the zend_object only exists for copy-on-write purposes. That would be... 8 bytes for the header and 8 bytes for the zend_object*, and the indirection cost is minimal because we hardly ever need to access the *. Do you think this is viable?
 
@rtheunissen I don't understand what you mean there
what would be the purpose of having the refcounted header separately?
if it's already part of the object anyway
 
6:47 PM
Right, so I have a binary tree node with some pointers, rank etc, and m zval's. The goal is to have a node's size be a power of 2 bytes, where m is as high as possible to achieve a low bytes/value ratio. We need a zend_object to have per-node copy-on-write. Something like this: ideone.com/WgxAw6
We only need that zend_object header for refcounting, but it's taking up 28 bytes. We don't use the node as a zend_object at all, so having a pointer to it seems like a zero-cost way of reducing the size of the node.
 
@rtheunissen but you'd still need the object...
sound like you'd just be adding the overhead of an additional pointer (and possible an allocation)?
 
Yes you would still have to allocate it and deal with it as you would already, it's just not embedded into the node itself.
Ah.... another allocation.
 
@rtheunissen but as you'd still need one object per node, you wouldn't actually win anything
 
The additional pointer would replace the 28-byte header with a 16-byte one, at the cost of an extra allocation. One for the node and one for the object within it.
So yeah, probably not worth the trouble. Thanks for helping :)
4-byte aligned zval's without u2 would allow a few more values per node, but like I said would affect get_gc because you couldn't just return a pointer to the nodes, I'd have to allocate a temporary buffer, right?
 
7:10 PM
12 vs 16 values per node if we truncate u2. ideone.com/WgxAw6
~21.3 vs ~16 bytes/value. The only cost is potential cache penalty and get_gc.
 
@rtheunissen You do Rubik's cube?
 
Yep!
 
How fast?
I have a speed cube myself but I am only down to a minute and 45 seconds.
 
It's been a while but maybe 2 minutes?
 
wait no- it's 1 minute and 34 seconds.
Me and my son compete with each other.
I don't see how these guys can do 3 seconds in these competitions.
I have to think in between each algorithm.
These guys in the competitions just know where it will be and every pattern it will be from start to end before they pick the cube up. It's crazy.
 
7:26 PM
Must take so much practice.. I can't imagine dedicating so much time to something that doesn't actually yield much value to society. :p
 
Me either. It's a cheap parlor trick now. Once you know the patterns all the magic is gone.
 
It's impressive at ~2 minutes, it's almost sad at less than 1min ><
I don't mean to demerit those attempts and the hard work though.
Just how I would feel, I guess.
 
Just depends how much time they had to put into it really. Some are just naturally gifted at visualizing and remembering that many moves ahead. Hopefully they play chess too and do something worthwhile with their gift.
 
Yeah exactly. It does show off the brain's ability to compute though. It's pretty cool.
 

« first day (3142 days earlier)      last day (1821 days later) »