« first day (2106 days earlier)      last day (2857 days later) » 

12:00 AM
no love for that operator.
 
^ is XOR in almost every language I know
So why do we programmers always use it as an exponentiation operator?
 
just in flow text
 
Personally, when I was learning maths, and had to type stuff, I didn't have access to superscript
 
In code it'll obviously be pow($a, $b)
 
I know, I do it too. Just saying it's curious :P
 
12:01 AM
so I used ^ to indicate, it's "one level up"
I didn't know about xor or any power operator at the time
but now, ^ is clearly xor
except on AVR chips, then it's eor
 
Heck even when I was learning QBASIC back in the 80s ^ was XOR
Or I might be thinking of Borland BASIC.
 
@Leigh e(xclusive)-or instead of (e)x(clusive)-or?
 
yea the ASM opcode for xor is eor
really threw me for a while
 
:-D
 
and all of their (j)ump instructions are (b)ranch
like ... brne
 
12:04 AM
You wouldn't like RISC ASM any better, let me tell ya.
 
@bwoebi I'm pretty sure we do fuse echos
 
I thought we did!
 
14 mins ago, by bwoebi
Bobs-MacBook-Pro-2:amp bob$ ~/php-src-X/sapi/cli/php -dzend_extension=/Users/Bob/php-src-X/modules/opcache.so -dopcache.enable_cli=1 -r 'ob_start(function($a) { fwrite(STDOUT, "$a\n"); }, 1); echo "a"; echo "b";'
a
b
@NikiC ^ something wrong with this?
 
your output buffering clearly adds jank!
 
You can buffer with , too you know.
echo "a", "b";
 
12:07 AM
@Sherif that's kind of where this whole conversation started :P
 
@Leigh but today the instructions are all so specialized and long … like vmovntdqa…
 
@Leigh oh? I wasn't following
 
@bwoebi I spent 2 days playing with AVX2 intrinsics, and wanted to shoot myself
 
@Leigh ;-)
 
the intel docs are really *really* good though
 
12:09 AM
@Leigh why?
 
for "fun" when I was playing around with RNG implementations
 
I mean, why shoot yourself?
 
seeing if I could get multiple streams calculated at the same time
oh, I got to the point where I didn't even know what I was typing anymore
any combination of letters felt like it might load from a 512 bit register and blah blah blah
 
@bwoebi I checked, it def is getting fused
 
pretty much a lie, they're all intuitively named, but at some point everything just blurs
 
12:12 AM
@NikiC weird… why do I then get three calls of the output buffering function??
 
@bwoebi because of the ,1?
 
Bobs-MacBook-Pro-2:amp bob$ ~/php-src-X/sapi/cli/php -dzend_extension=/Users/Bob/php-src-X/modules/opcache.so -dopcache.enable_cli=1 -r 'ob_start(function($a) { fwrite(STDOUT, "$a\n"); }, 1); echo "ab";'
ab
@NikiC ^ it gets flushed after a string was emitted…
 
@bwoebi err, nevermind. you're using -r
we don't optimize eval()
 
.___________.
 
or rather, it just bypasses opcache altogether iirc
 
12:17 AM
 
opcache is also pretty much ignored in interactive mode
A lot of things are in CLI SAPI
like autoloading
 
wha?
cli better not be ignoring autoloading
 
Well, in interactive mode.
 
ah
 
Or might just be the interactive shell.
 
12:19 AM
i wouldn't know, i never used interactive mode
 
So useful for quick one-off tests though :)
 
Gon
o/
 
Wes
yo
 
Gon
which doc did you contribute to :P?
 
Wes
farting without getting noticed for dummies
 
Gon
lol
this was accepted, although, I can't find the changes on the actual topic page...
 
Wes
12:37 AM
i believe teresko nuked it :B
 
Gon
the first time, yes. the second time, no.
also,
 
Wes
dat moment when you realize that you wrote code for 20 years and it's almost entirely crap
 
Gon
8 hours ago, by Gon
didnt really understand where the plagiarism lies: http://stackoverflow.com/documentation/proposed/changes/14046
on a sidenote, I become 15 today \o/!!!
7
 
Wes
15 :P the hell i thought you were older! happy birthday!
 
Gon
thanks, :P
 
Gon
Wrong ping?
 
yes.
 
Gon
:P, k, gotcha, thanks!
 
@Gon at least now it's a bit redundant
 
Wes
the test directory should be "test" or "tests"? :B
 
1:34 AM
@Wes how do I get back to that room we had yesterday?
 
1:49 AM
omg, I just got it... Inception is all about an off-by-one error...
 
Wes
2:03 AM
isn't that shutter island
 
no, so you got leo de whatsit who's upset about his wife, and his wife killed herself because she didn't realise she was up all the dream levels yet
 
2:46 AM
Passing a non-array traversable as a vararg, ie. $function(...$iterable) walks through the iterable to create a zval*. Is there any way to access the iterable before that happens, during parameter parsing? @NikiC @JoeWatkins
I just want to iterate through the iterable or array, I don't need the zval*
 
@Gon Happy Birthday!
 
@rtheunissen from within $function? no, not really.
 
3:08 AM
what about a sort?
oh, I think I misunderstood. You want to know that the iterable is being accessed, before it is walked
You could probably do something hacky with overriding rewind?
 
It's somewhere before you parse the va parameters.
 
Wes
3:30 AM
@rtheunissen nope, i asked nikic earlier
lemme find the discussion
May 5 at 9:34, by NikiC
@DaveRandom No way
:p
actually that could mean "it's possible but we shouldn't do that"
 
3:55 AM
Mm didn't think so.
 
 
1 hour later…
5:09 AM
@tereško I was actually serious when I said I hate docs and want them to go away, so do your worst with that topic. Also, what @PeeHaa said.
@Danack I fixed the duplicate definition. googling suggested its indeed a c++ vs c thing
 
Wes
mornings
 
MaX
5:57 AM
Has someone used amp with Websockets? How much can it scale?
 
Bit vague
 
@MaX to some extent
 
6:16 AM
morning
 
I disagree strongly. The PHP documentation is not just largely ok. It's very comprehensive with lots of examples and explanation. I would go so far as to argue that SO docs will never even come close to the quality of the PHP manual due to the way documentation is currently organized. As for the parts that are not yet documented in the PHP manual (yes, they do exist. no, that doesn't make it not great), there is an online editor at edit.php.net where everyone can contribute. So if you are unhappy with parts of the official docs, go there and improve instead. — Gordon 40 secs ago
and its not even 9am
 
Wes
and imho it must be like that also for others languages
from what i saw c# and java documentations are pretty okay
 
Should just improve their own documentation where it should be
Otherwise double maintenance.
 
Doubt this is the chat room you're looking for.
 
Wes
6:30 AM
both copied content
 
Ha happy Friday all
 
Wes
!!rebecca
 
6:47 AM
ya i did it in android group also
 
8 messages moved to bin
 
This is great!
 
@BradGoss yes I know what the NULL checkbox mean but my question is aabout the DEFAULT NULL, what's the main role of it?
I'll be very pleased if someone know the role of the DEFAULT NULL value : imgur.com/6gRoZu1
 
7:02 AM
morgen
 
Mornhaa
 
Hapee birthday @JayIsTooCommon \o/
9
 
Anonymous
@Gordon do you know what happened to the PDO doc request? I think it is removed stackoverflow.com/documentation/php/topic-requests/747
 
@samayo good
 
Anonymous
So, PDO does not need a documentation but all the other frameworks do?
 
Anonymous
7:08 AM
unreal
 
Anonymous
I'm glad I didn't put more time on it.
 
@Wes do you actually want something or just being a jackass? :-P
moin
 
Wes
i wanted peehaa's :B
but i'm also fine with daverandom@ :B (will mail you later)
 
@Gordon did you resolve this yet?
@Wes yeh, pretty obviously not gonna do that :-P can do wes/wesnetmo/both if you want though (or anything else that's actually a name you use :-D)
 
Hello, everybody!
 
7:12 AM
@DaveRandom worf, user4251625, symbol, the artist formerly known as wes, not wes
 
Wes
mario, you forgot mario
 
butthole@...
 
hehe
 
Wes
that's great
 
Anonymous
@tereško Why are you repwhoring? Did you remove what I wrote for the PDO from the doc and used it somewhere else?
 
7:14 AM
Hey
Can somebody help me?
 
coffee time
 
There is my own question.
 
@JohnyNassar I explained this quite a bit yesterday. It just means that the default value for the column, when the column is not specified, is NULL. Read this.
 
7:19 AM
 
@samayo there are already several topics about databases, you dont need to create another one, just for coinnection to databases
 
@DaveRandom yes, thanks.
 
@Gordon what was it in the end?
 
@SagarNaliyapara you are only one where go gives a slightest fuck about laravel
 
Anonymous
@tereško That's BS. PDO needs to have it's own documentation. And a doc without PDO without 'how to connect' to database is useless.
 
7:21 AM
@DaveRandom I included a header file which defined a type and the redefined the type. I removed the redefintion. I am not sure why it would compile in one container but not the other. Stack Overflow suggested that redefinitions are okay in C++ but not in C, so might have to do with the compiler in the other container, though I dont know for sure.
 
@JohnyNassar when you've finished reading that, read this again, as well.
 
@samayo it was not about PDO
26

PDO (topic request)

The PHP Data Objects (PDO) extension defines a lightweight, consistent interface for accessing databases in PHP. Each database driver that implements the PDO interface can expose database-specific features as regular extension functions.
requested by samayo 5.2k
> Connecting to database was created in response to this request 14 hours ago.
 
Wes
@Gordon #shotsfired
 
and "Connecting to database" is an amorphous piece of shit
 
@Gordon I did wonder about this, whether you were compiling one in C++ mode, but the correct solution there is definitely to define things once (and if defined in a header, use the #ifndef HAVE_FOO_H pattern to avoid including headers twice)
 
Anonymous
7:23 AM
@tereško Why did you even need to create a doc on "connecting to database"? You could have just mentioned the available databases, which could have been linked to a full documentation page about these databases.
 
@Wes might need to move my introduction to the remarks. dont have the time to add proper examples illustrating the workflow right now though and it requires at least one example
 
@samayo why do you think that I created it?
 
@DaveRandom yes, I have that. I think the redefinition was just sloppy c&p
 
Anonymous
You didn't need to include examples. Just rename is "Databases" and mention which databases are supported by PHP. From then a full but separate documentation about PDO, MySQL, PostgreSQL can be created.
 
Anonymous
@tereško
 
7:26 AM
what the fuck are you talking about ?!?!?
 
Anonymous
Eh, screw this.
 
Anonymous
do it your own way man
 
Morning. Happy rebeccaday!
 
Anonymous
Don't even have time for it anyway
 
@DaveRandom ah okay if the colum is set to default null so we can omit it from th insert statement because it's already set to NULL
right?
 
7:27 AM
@samayo are you aware that there exists already stackoverflow.com/documentation/php/275/using-a-database
 
@DaveRandom quick question because I'm too lazy to look it up myself
webnews.pieterhordijk.com what is the last row of numbers and what is the last colunm?
It seems like the last column has something to do with feeds?
 
Anonymous
@PeeHaa Cheers dude \o/
 
Please help on expanding Contributing to the PHP Manual
13
 
That's so meta
 
@PeeHaa The last column does indeed appear to correspond with whether there is a feed available on news.php.net. The other number I have no idea, seems to be always 1, will have a dig around
 
7:36 AM
Always expect for doc php.doc 0969386212 0969332402 y. A wild 0969332402 appears :P
 
Anonymous
@Gordon We should nuke everything and just keep that, fuck em all! :D
 
That's really the only one too
 
@PeeHaa That looks nice. A little bit more 21st century-ish ;-)
 
@PeeHaa it's first message ID
 
@JayIsTooCommon yes, very much
 
7:38 AM
@PeeHaa what did you use tcpipguide for?
 
@Oldskool I blatantly stole both the idea and the design from mnapoli
 
Look at the number of mails, it's last number - first number, and look at the message IDs when you browse that group
 
@DaveRandom alrighty \o/
@FlorianMargaine nntp
 
oh cool
 
hmm ... @Gordon, I think I fucked up your flag in method chainging topic
 
7:39 AM
I've also browsed some other interesting stuff and I just love that site now
 
@DaveRandom ah okay if the colum is set to default null so we can omit it from th insert statement because it's already set to NULL
right?
 
Are rejected topics kept so people don't request them again?
 
@Oldskool But the original project is just focusing on internals and I just want to have a sane news reader for other things too
And it gave me a reason to laugh at rewrite @DaveRandom's code
 
@PeeHaa kernel <3
 
7:42 AM
FlorianMargaine once you adviced to study about http aa much aa tou can any starting links
 
Time for a new EAP.
 
@DaveRandom but for what reason the Default NULL value is used? Only for minimizing the INSERT statement?
 
@PeeHaa Yeah, just found externals.io :) But I like the idea of a broader scope.
 
@FlorianMargaine Yeah. It's going to be server agnostic so that should work too
 
@PeeHaa so there's something important in http://news.php.net/README.md (if you have not read it yet) - "...but keeping the current property of <b>not</b>
slurping the whole damn message into memory just to do so." - this really matters, if someone sends a mail with a 100MB attachment, you don't want to pull the whole thing into memory to generate a page. You need an incremental, context-aware MIME parser, that's capable of "skipping" parts of multi-part messages and/or caching the resulting page
 
7:42 AM
@AnmolRaghuvanshiVersion2.0 w3.org/Protocols/rfc2616/rfc2616.txt
 
This is the main reason I gave up on it when I was working on it
 
@tereško I dont care :)
 
also, you need something to try to remove the previous message chain
 
@DaveRandom I did see it, but ignored it for now. Slurping and parsing is going to be moved to a background process probably either way
 
7:44 AM
@AnmolRaghuvanshiVersion2.0 wikipedia is a good start, and you definitely have to play with netcat and make http requests yourself
 
@DaveRandom
 
another good exercise that doesn't take a lot of time is writing an http server
 
@DaveRandom What does that mean?
 
Can you plz answer me
 
@FlorianMargaine thanks
 
7:45 AM
@FlorianMargaine Even an http2 server? :)
 
@JohnyNassar Don't keep pinging him if he isn't responding that's his choice.
 
@JohnyNassar Please do not do this. I am at work, I am not ignoring you but it takes time to type things and I have other things to do as well...
@JohnyNassar There are many reasons one uses default values for things, e.g. when you add a new optional column to a table but you don't want to affect existing queries.
 
Gratz to you too @Gon!
 
okay, sorry for this mate
 
It really depends what you are doing
 
7:47 AM
@AnmolRaghuvanshiVersion2.0 and of course, this is a longer resource that helps a lot: tcpipguide.com/free/…
cc @PeeHaa :D
 
Straight out of 2003 @FlorianMargaine :P
Where's the spinning skull gif? :P
 
@PeeHaa "On Foosday 68th Barember, Hugh Jass wrote..."
 
11 hours ago, by PeeHaa
@FlorianMargaine tcpipguide is actually really nice yes
:P
 
@Fabor 1980 looks but the info is nice
 
okay thanks
 
7:49 AM
@DaveRandom ah yes. That looks hard like something you like to do :P
muhahahah
I will have a looksy once I have the nntp lib up n running
 
needs more MS word clipart
 
@PeeHaa really all you can do with that is look for common patterns of message divisions with regex probably though
like, account for Outlook, Gmail, Hotmail, etc, it's never going to get it 100% right
 
@DaveRandom You find a room11 template? :)
 
Yeah looks like a iterative thing where we need to add more when something fails
 
This is one of a million reasons why a mailing list is a crappy way to communicate...
 
7:50 AM
Morning and happy Rebecca day!
 
looks like there's not much work to actually do?
 
@Fabor I'm going to throw something together this morning, I realised I need to start it off myself as I need to fuck around with some openid shit and see whether what I want to do is actually possible
 
Furry muff
 
@FlorianMargaine That still loads the whole thing into memory in a structure that is opaque until it's complete though, it just lets you do it in chunks (afaik)
 
@DaveRandom ah, fair
 
7:54 AM
@FlorianMargaine The thing that is required is a thing that's been on my todo list for literally years, I've started a couple of times and swiftly lost the will to live
Same with writing an SMTP lib that could be used with amp etc
Jun 12 '15 at 1:10, by DaveRandom
@bwoebi "the protocols in between do their work" - this part amazes me every day. Email is so broken, even conceptually, it's untrue. I am constantly amazed it wasn't replaced 15 years ago by something else.
This is a thing that really fucks me off, like, disproportionately so
It's one of those things that glues the internet together, yet one day will just unravel horribly and no-one will see it coming and the world will end
Like COBOL
 
I think this is F-Bomb Friday. Seen so many this morning :P
 
Wes
damnit the code coverage not hitting a line that is instead actually hit :\
 
Is this correct (English perspective)? "don't wait until people are dead to give them flower"
 
@Wes What are you using to report cc?
 
Is that site still up to show who uses what word most in this room?
 
Wes
7:59 AM
phpdbg
 
@Shafizadeh give them a...
 
@DaveRandom D?
 
@Fabor I'm not sure cc @Mr.Alien? ^
 
@DaveRandom what? Should I add "a" in where exactly?
 
@FlorianMargaine ?
 

« first day (2106 days earlier)      last day (2857 days later) »