« first day (975 days earlier)      last day (3973 days later) » 

5:20 PM
got a question regarding mysql; to this day i was only doing simple stuff with it. now i have multiple table that has the same column name in it and i need to join result from different table. i understand this part. the part that confuse me is how do i differentiate the result from table x with column named y from table z with column named y too? should i just renamed my column so they reflect the table name inside it? it doesn't seem to make any sense. i'm looking to do it the good way...
 
@Happyninja Add the table identifier: tablename.column
 
@PeeHaa埽 i did but when i dump the result it doesn't reflect that :(
 
@Happyninja Aaah I see what you mean. AS is the way to go
 
SELECT A.id, B.id FROM info AS A JOIN info2 AS B ON A.id = B.id; - by using alias for example.
 
yea, i did too:
'
			SELECT * FROM repairevent
			LEFT JOIN
			(SELECT tech.id,tech.fname,tech.lname FROM employees AS tech) tech
			ON tech.id=repairevent.takenByEmployeeid
			WHERE repairevent.id=1 LIMIT 1
			';
but thing is it will get more complicate because i have a table for client and a table for employee
 
5:22 PM
Why are you using a subselect there?
 
and i wondering how, in my result set i will be able to differentiate them
it's part of something bigger
i might be wrong and i accept it
 
If tech.id== repairevent.takenByEmployeeid why would you grab the value twice?
SELECT repairevent.please, repairevent.use, repairevent.column, repairevent.name, employees.name AS employeename FROM repairevent
LEFT JOIN employees ON employees.id = repairevent.takenByEmployeeid
WHERE repairevent.id = 1
LIMIT 1
?
 
SELECT rp_event.*, employee.* FROM repairevent AS rp_event
LEFT JOIN employees AS employee ON employee.id = rp_event.takenByEmployeeid
WHERE rp_event.id = 1 LIMIT 1; - afair that way it should return you columns with same prefix as you specify in your query.
 
i thank you but looking at it but i'm confused. @PeeHaa埽 i don't understand why you see i grab the value twice
@Ivan0x32 which part return the column with the same prefix?
 
SELECT rp_event.*, employee.* - when you specify it like this, afair it should return something like rp_event.id, employee.id etc.
 
5:31 PM
@Happyninja Sorry misread the thing (which is kinda crooked in my defense ;))
 
@Ivan0x32 and will the result set reflect that, i mean like when i will fetch the result?
@PeeHaa埽 no problem ;)
 
I'm going to doublecheck this in a moment.
 
@PeeHaa埽 o7 buddy
 
i'm asking because i feel like i'm walking on eggs at the moment (trial/error with a bit of i'm not sure if i'm off track)
 
5:34 PM
@Pheagey Heya @Pheagey!
 
Hay man, what you guys working on with @Happy?
 
@Pheagey a ticketing system for our store
 
I'm not sure. But I guess he is trying to join a table :D
 
@Happyninja Ah, like a trouble ticket system?
 
This must be one of the worst "questions" I have seen today:
-3
Q: i need to multiply a $POST Result

Cyber AssassinHow can I do this I have tried; $lb=$_POST['bet']; $o=$lb*$res; This doesnt work I have also tried; $lb=.$_POST['bet'].; $o=$lb*$res; but no luck, I have also tried with echo; $lb=echo $_POST['bet']; $o=$lb*$res; but i still cannot get it to work, if someone could please help me it woul...

 
5:37 PM
@Pheagey some kind yea, but mostly to be better organized. there is so much thing that change our schedule it's difficult to keep our target on track
 
@Happyninja Do you use a calendar system now?
 
Wow, it looks like it does not, looks like you need to explicitly alias every field to make them distinguashable from each other (more troubling thing is that PDO only return one variant of each same-named field, so you will have only one 'name'-collumn if you join two tables which both has such collumn).
 
SELECT manf.*, category.* FROM manufacturer_info AS manf
LEFT JOIN category_info AS category ON manf.id = category.id; - this query doesn't makes sense but both of these tables have fields name, code and id, i got only one set of those fields from PDO:query.
 
6:08 PM
@PeeHaa埽 $lb=.$_POST['bet'].; ... wut.jpg
 
6:52 PM
@Ivan0x32 thanks, i will try it now
 
@Bracketworks When I see stuff like this sometimes I think PHP beginners just randomly hit the keyboard hoping whatever they vomit out will work.
 
@cspray Wait, that's how I write everything....
:P
 
@cspray At the first company I worked at, we had a joke:
Q: "How do you double the productivity of junior programmers?"
A: "Give them a second hammer."

*makes hammering the keyboard action*
 
muaahh I just came up with a case where PHP's count() gives the wrong result
 
<-interested
 
7:05 PM
@NikiC ?
 
@Pheagey @PeeHaa埽 bugs.php.net/bug.php?id=65051
 
Interesting. But beyond me.
 
Ahh, destructor fun
 
@NikiC lol nice one
 
@ircmaxell Yup. Even more fun can be had with OB callbacks ^^
 
7:15 PM
@ircmaxell "I am Destructor, the fun!"
 
@NikiC sigh
 
@NikiC: looking at the garbage collector again, I'm pretty sure that it's mistreating arrays...
 
Anonymous
Thank God I got bored of repwhoring, before growing the kolink syndrome in me @MadaraUchiha
 
Seriously, Neal is only second to Kolink in this field.
 
7:21 PM
Oh hai 3k and close votes ;)
6
 
yeah, it's not... weird
 
@Jimbo Congrats :D
 
Thanks :D Exhausted 40 in ten mins though, any chance of any more? :P
 
Anonymous
@MadaraUchiha Ohh Neal. I am not sure about the qualities of his answers. But, he literally used to ask for upvotes here frequently.
 
7:25 PM
stackoverflow.com/questions/17154833/… … I like writing such snippets :-)
 
@bwoebi: that fix to the collector won't work
 
@ircmaxell which fix? the one we've tried a few days ago?
 
yes
it's not strictly recursive, which throws off the GC cycle finder: researcher.watson.ibm.com/researcher/files/us-bacon/…
 
@ircmaxell can you show me an actual fail of the gc?
 
7:40 PM
@ircmaxell and the PHP code is?
 
BUT, I think I have found a bug where it misses a lot of roots
@bwoebi not sure...
well, specifically, it misses all roots that aren't tied directly to another root
 
did you make something wrong in your implementation or does the concept not work?
 
Hi, I have a question on mod_rewrite. Anyone?
 
Blech.
LR(1) == too much effin' memory.
 
@bwoebi the concept won't work
 
7:48 PM
@ircmaxell but why does it crash in the zval_ptr_dtor?
have you any PHP code where the gc fails?
 
It exists, but not in a dilutable or reproducable form
I can't reproduce any of these issues... I do see one bug in the GC, but without being able to reproduce it...
 
I think I've spot something...
// OLD:

if (p->pListNext == NULL) {
    goto tail_call;
} else {
    zval_mark_grey(pz TSRMLS_CC);
}
p = p->pListNext;


// NEW (macro expanded):

    if (p->pListNext == NULL) {
        goto tail_call;
    } else if (stack_size + 1 >= stack_allocated) {
        size_t new_size = stack_allocated + 256;
        stack = (zval**) safe_erealloc(stack, new_size, sizeof(zval**), 0);
        stack_allocated = new_size;
    }
    stack_size++;
    stack[stack_size - 1] = (pz);
}
p = p->pListNext;
What I see is, where in the old version you set p = p->pListNext; only after the function call, but in the new version, you set it after pushing the variable on the stack, but before the tail_call.
 
huh?
you would need to, because you need to let it run in order to finish getting all references
and that's the root of the problem (it's a semi-depth-first, as opposed to a full depth-first)
 
8:03 PM
@ircmaxell you should set p = p->pListNext; when removing it from the stack?
instead when you set it.
 
huh? how? p is undefined at that point
 
@ircmaxell that's why you have also to push p on a stack.
 
well, yes and no... We could do that
but we'd need 2 stacks that have to be aligned
 
no. we can push pz and p onto the same stack
 
how do you figure?
 
8:07 PM
@ircmaxell stack_size += 2; stack[stack_size - 1] = p; stack[stack_size - 2] = pz
 
That's the same as having 2 stacks
 
yes, but we need only to alloc memory once per function call
and what's the problem there when you use one stack in steps of two or two stacks?
 
but I really bet that it's feasible...
the important thing is that you always jump back there where you came from
mhm… also it doesn't properly continue the loop in github.com/ircmaxell/php-src/blob/…
(when you return from one depth)
 
8:24 PM
@bwoebi I don't even know what are "namespaces"
 
@NikiC how is Operator Overloading going to be beneficial?
 
@HamZa oh. I just thought someone who frequently frequents the PHP chat room would know this ;-P
 
@bwoebi I don't code in OOP, I have to learn it. (what a shame)
I think I'm going to buy some books that teresko recommended me
 
@HamZa you don't need books for learning OOP.
 
@bwoebi Though books are helpful...
 
8:29 PM
@bwoebi No, the books are also for learning patterns, best practice etc...
 
look at existing code, try to understand what's going on.
 
like mvc etc...
 
practice
 
and ask yourself why it was done this way
 
@MadaraUchiha did you read the RFC?
 
8:30 PM
@bwoebi That will take more time than reading directly from a book ?
 
@salathe I have, I'm afraid I'm not that good with the PHP source (or GMP) to really understand itr
 
And who knows the code is soooo bad ?
@MadaraUchiha wrong ping :p
 
Twice!
 
@MadaraUchiha You might, maybe, possibly, be able to do things like: $awesome_future_date = new DateTimeImmutable + DateInterval::createFromDateString('3 weeks');
 
@HamZa a book teaches you what possibilities you have, but deciding which pattern, architecture etc. to uses a book only hardly can teach you.
@salathe do you want to write PHP or C++?
 
8:32 PM
@bwoebi Right at this minute… neither.
 
@salathe Oh, something like $number = (new Number(40)) + (new Number(2)); ($number == Number(42))?
 
@MadaraUchiha this is exactly what GMP now should do as of this RFC
 
@MadaraUchiha Only if Number was a PHP core/extension class
 
I never bought a book, except a security one, that's all. People (the "pro's") keep saying to read books, it's the best source, so I'll try that way ...
Usually I follow tutorials on the net, check some code, rip them, merge them and make something...
 
@salathe So I still can't define this in userland :(
 
8:33 PM
@MadaraUchiha exactly
 
boo for that
 
@MadaraUchiha boo indeed!
 
But I guess it's still very useful
 
I don't think so (but would welcome being proved wrong).
 
@HamZa tutorials are only good for the very beginning. If it goes to something a little more advanced there are sooooo many tutorials which are outdated, wrong etc.
 
8:34 PM
sometimes I hate building PHP
 
@HamZa .. because there is such an abundance oh high quality tutorials on the net
 
Depends on the context, obviously, since there aren't that many core classes which actually represent anything numerish, it's really not that helpful
 
@ircmaxell why? does it take too much time?
 
dependency hell
 
@bwoebi Eh, so which code do you propose to read ?
 
8:36 PM
@ircmaxell cd /usr/ports/lang/php5; make install clean;
 
@ircmaxell if you once have the dependencies installed on a server, you won't have to care anymore about it ………… but before (this is hell, yes ^^)
 
=P
 
15
A: MVC For advanced developers

tereškoYou cannot even begin to delve into MVC before you have comprehensive understanding of OOP. That include OOP practices, principles, laws and common patterns (and no, singleton is not an oop pattern). MVC is an advanced architectural design pattern, which requires solid understanding. It is not m...

Here's a good start
 
indeed, after hanging out on SO. I see that what I learned in those tutorial were crap, think about the use of md5 in passwords, mysql_ and that kind of stuff
After all, it's for beginners, and some of them are outdated ...
 
@tereško uh huh
 
8:37 PM
freebsd .. building php 5.x
 
@MadaraUchiha Thx, I've already favorited that, waiting for the holidays :-)
 
ARG, All that time, and I forgot --enable-debug
 
heh
 
@HamZa Outdated is the key word here. The main problem start since from Google's POV, Older = More quality, which is hardly correct with tutorials.
 
@ircmaxell copy paste your configure command instead of typing it yourself ^^
 
8:38 PM
no
 
well .. europians might need to start looking for alternative search engines
 
@MadaraUchiha Oh, now it makes sense why they are in the first pages :!
 
Indeed.
And w3schools leads ahead
 
Not familiar with that one
 
8:39 PM
scandinavian countries are taking the latest Prism thing pretty hard , and they are the source of IT in EU
 
@MadaraUchiha To think that ~2 years ago I wanted to be "w3schools" certified
 
XD
I really don't understand them.
Such a popular and successful site, with so much criticism. Why not fucking wikify it?
Or... you know... accept some sort of community feedback
That one site can have such an impact, it's astounding.
 
it would be easier to grow wikis from SO communities
 
@HamZa can't tell you, but don't read code of frameworks. It'll a) drive you crazy and b) frameworks are not exemplary code. Lots of people think this, but frameworks only get extended, because as big as they are, nobody refactors them from time to time. Even frameworks code gets slowly messy. And there are TOO MUCH COMMENTS. You don't look at the functions, you look only at the comments, what isn't always good.
 
@tereško But seeing as w3schools are already first in Google for like, everything, I think the correct hypothetical course of action would be to change them.
 
8:43 PM
you might not be too familiar with /r/PHP, which is why you are so optimistic about crowdsourcing study materials
 
I'd more read code of an intermediate size which isn't old / often edited.
 
I see
 
@tereško I think a SO like wiki system (with karma, privileges, etc) can actually work pretty well.
 
2 mins ago, by tereško
it would be easier to grow wikis from SO communities
 
Then I didn't understand what you meant there.
 
just giving karma for accepted edits in unattached wiki would end in disaster
 
@HamZa You're not w3schools-certified?
14
 
@salathe no lol
 
think how many w3schools/nettuts fans are out there ... all the jquery/codeigniter/cakephp/coffeescript users
just by throwing users at wiki , you would not produce reliable content
 
@tereško Then there need to be a core of knowledgeable people who would initially act as the moderators.
Filtering quality until the serious members reach sufficient karma.
 
8:47 PM
.. which is exactly why wikifying w3schools would fail
 
That's actually how the SO model works, and it works well.
 
This is a perfectly structured reference for HTML: dev.w3.org/html5/markup/elements.html#elements
 
@MadaraUchiha E_TOO_MUCH_WORK
 
@HamZa Not really
most of the stuff there is there, and not every article needs rewriting.
 
@MadaraUchiha makes sense ...
@salathe are you ?
 
8:50 PM
@HamZa Of course! I turned my certificate into a paper airplane. :)
 
@salathe And threw it into a fiery pit.
 
@salathe What a waste ...
 
@MadaraUchiha It found its way there without my help. ;)
 
@tereško docs.webplatform.org/w/… there are already most properties (a few are still missing, but it's a pretty complete list)
 
@HamZa A paper airplane is too good for w3schools
@bwoebi holy humongous URL!
 
8:53 PM
lolz
 
@salathe should I use an URL shortener first? xD
 
@bwoebi always, then it's like playing Russian roulette when clicking a link
 
but really, w3c should maintain a list like dev.w3.org/html5/markup/elements.html#elements for CSS...
@salathe then, don't complain when the URL is a bit long ;-P
 
@bwoebi I like URL-roulette, takes me back to IRC days
 
@salathe yes, but please from 2012/2013
 
8:58 PM
@bwoebi That's the current spec
 
Hi all.
 
The rest is merely a draft AFAIK.
 
@MadaraUchiha oh; the drafts are 3 years old?! ……… okay....
 
Anonymous
If anyone is looking for a job don't say I didn't tell you so.
 
@Ihsan hello
@phpNoOBఠ_ఠ "Your salary expectation" lol
 
Anonymous
9:01 PM
@HamZa They have job opening, which, some people might be interested in here.
 
Anonymous
Last.fm does not discriminate on the basis of race, religion, colour, sex, age, non-disqualifying physical or mental disability, national origin, sexual orientation, or any other basis covered by local law. All matters related to employment are decided on the basis of qualifications, merit and business need.
 
hi
 
Anonymous
Sounds like a dream job to me
 
@Ercan hi
 
@phpNoOBఠ_ఠ -1 not enough physical discrimination
 
lol
 
@Ercan hello
 
@webarto lol
 
lololo
 
ahahahaha
 
9:04 PM
@webarto sorry, but I saw the hidden url first; I didn't open the .jpg.
 
Anonymous
@PeeHaa埽 codding, while listening to music all day, sounds awesome. @webarto I got 8 out of 10 :P
 
hi @HamZa
 
I made funny.
@phpNoOBఠ_ఠ No, that's quiz, this is the certificate, real deal.
 
@phpNoOBఠ_ఠ I bet on the other two questions the programmed answer was the incorrect one.
 
Anonymous
@bwoebi bingo!!!
 
@PeeHaa埽 You're dropping some confidential code here :D
 
Anonymous
Big time
 
@HamZa neh you are hereby granted to view my queries hard :D
 
Anonymous
If you get a w3schools php certificate, what open job positions can you find in zend, other than for a janitor ?
 
^ that doesn't sound right btw
 
9:12 PM
@phpNoOBఠ_ఠ w3schools is crap, how would you even find a serious job with it ?
 
Anonymous
@HamZa It was a joke, obviously not sent well.. :/
 
@PeeHaa埽 I want to view your queries soft :(
 
@phpNoOBఠ_ఠ eeeeh, dsl :p
 
Anonymous
ok gtg. I have an appointment with JAVA
 
9:14 PM
@salathe :P Sorry no can do. My queries are not for the faint of heart :D
 
3
A: How to "GET" params that have periods in them in php?

salathe Dots and spaces in variable names are converted to underscores. For example <input name="a.b" /> becomes $_REQUEST["a_b"]. http://php.net/variables.external

Just learned something new.
 
I learned that once the hard way
kinda like OP :P
h @Nile
 
@PeeHaa埽 hehe, yeah... "Whaaaa, where are my valu… oh, there they are."
 
@PeeHaa埽 I accidentally clicked into chrome before I finished typing a word in my chat client... multitasking :)
 
:-)
 
9:17 PM
@salathe but is there any reason for this?
 
@bwoebi That's the answer that put me over 20k… yay, go PHP manual!
 
lol
gratz
 
@salathe congratulations!
 
@bwoebi register_globals ... foo.bar in ye olden days would be $foo_bar
3
 
@salathe omg. omg.
 
9:19 PM
it's only still there because people will shout loudly when we even think about "fixing" it :P
(as has been done several times over the years)
 
/me is shouthing loudly because they don't fix it!
 
yay! found the bug!
twas a GC run, trying to collect a dead hash table...
 
@salathe @MadaraUchiha Having it for internal classes is a necessary condition to having it in userland classes ;) I would have gone directly for userland, but for the usual political reasons that was not feasible ;)
 
I think I can fix a bunch of these mark_grey bugs...
 
@ircmaxell genial idea :o
 
9:21 PM
running through valgrind now to see if there's anything it's missing
 
@NikiC That's why we have interfaces!
 
@MadaraUchiha How are interfaces of any relevance in this matter?
 
lxr.php.net/xref/PHP_TRUNK/Zend/zend_gc.c#421 needs an IS_CONSISTENT check as well
 
@NikiC Not going for it in userland too is a big reason for my vote. :)
 
at least that fixes one of the bugs I reproduced...
 
9:22 PM
We already have __toString(), why not __toNumber() or __toWhatever?
(It could be an interface, it could be a magic method, whatever)
 
@MadaraUchiha As I said, the reasons are not technical (there is no such thing as a technical issue), but political
 
@NikiC Is there any promise in sight, of the political reasons being finally abandoned?
 
Let's undelete this answer, just to mess with the author.
-7
Q: How to download a whole website with php

Marco PanichiBefore posting this question I've searched for an answer, and I discovered that this argument has not been treated as I expected. It also seems that a certain amount of supposed decency have signed similar questions as not useful. I'm surprised about that because I think it could be very intere...

> I'm after a peer pressure badge, keep the dv's coming :)
 
crap...
 
9:25 PM
@ircmaxell Didn't work?
 
@Pekka웃 dv ahoy!
 
did work, won't work for non-debug build
I'm going to have to dig deeper
because the HT is collected, but the zval is not
which yields a REALLY weird race-condition...
but I can reproduce it at least
 
hello, i am trying:

wget http://geodata.gov.gr/datasets/attachments/53e01aba-2547-4397-a0c0-cb786524be22/kml/ypolekanes.zip

But the file nevers download!

Output:

Resolving geodata.gov.gr... 2001:648:2ffc:1113::108, 83.212.2.249
Connecting to geodata.gov.gr|2001:648:2ffc:1113::108|:80...

In my pc (~14Mbps) i download the file in ~20sec but when i am trying wget in the server (~100Mbps) the files never download
 
@ircmaxell Is this a multi-threaded scenario you are investigating?
 
Help plz
 
9:27 PM
Nop[e
single thread
 
What do you mean by race condition then?
 
well, race condition in that it depends when the GC is triggered
 
ah
 
so identical code with slight tweaks to bs stuff like whitespace will create different results
so it's not a technical race condition
but it's similar in that multiple moving parts are going past each other, and some how the GC is being ran on destructed hash tables (which causes havoc)
 
@ircmaxell what's the test script?
 
9:30 PM
one of zf2's suites
 
lol
that's a great debugging scenario ^^
 
@NikiC my problem with userland overloading is that I fear abuse of it… (e.g. harder to tell what code does without knowing the framework which provides the operator overloading class)
 
Program received signal SIGSEGV, Segmentation fault.
0x00000000008949a0 in zval_mark_grey (pz=0x41d4808) at /home/ircmaxell/php-5.3.3/Zend/zend_gc.c:372
372				pz = *(zval**)p->pData;
(gdb) print pz->value
$1 = {lval = 68573928, dval = 3.388002202519114e-316, str = {val = 0x4165ae8 "\b", len = 0}, ht = 0x4165ae8, obj = {
    handle = 68573928, handlers = 0x0}}
(gdb) print pz->value.ht
$2 = (HashTable *) 0x4165ae8
(gdb) print *pz->value.ht
$3 = {nTableSize = 8, nTableMask = 7, nNumOfElements = 7, nNextFreeElement = 5, pInternalPointer = 0x41b30f8,
pz->value.ht->pListHead should never be corrupted like that... Unless the memory was reclaimed for something else...
 
yes, 0x5a is the filler value if something was freed
 
unless... Unless something overflowed a buffer which wrote over that bucket
because the other buckets exist...
 
9:33 PM
but in any case, valgrind will tell what happened ^^
 
(gdb) print *pz->value.ht->arBuckets
$6 = (Bucket *) 0x41b30f8
(gdb) print **pz->value.ht->arBuckets
$7 = {h = 6510615555426900570, nKeyLength = 1515870810, pData = 0x5a5a5a5a5a5a5a5a, pDataPtr = 0x5a5a5a5a5a5a5a5a,
  pListNext = 0x5a5a5a5a5a5a5a5a, pListLast = 0x5a5a5a5a5a5a5a5a, pNext = 0x5a5a5a5a5a5a5a5a,
  pLast = 0x5a5a5a5a5a5a5a5a, arKey = "Z"}
(gdb) print *pz->value.ht->arBuckets[0]
$8 = {h = 6510615555426900570, nKeyLength = 1515870810, pData = 0x5a5a5a5a5a5a5a5a, pDataPtr = 0x5a5a5a5a5a5a5a5a,
@NikiC Ok, I'll tell you in the morning what happened...
running PHPUnit via valgrind... :-D
 
@ircmaxell That's why I said that it's a great debugging scenario ;)
 
Ahhh, bingo
==19665== Invalid read of size 8
==19665==    at 0x8949A0: zval_mark_grey (zend_gc.c:372)
==19665==    by 0x894C45: gc_mark_roots (zend_gc.c:433)
==19665==    by 0x8954F5: gc_collect_cycles (zend_gc.c:660)
==19665==    by 0x894151: gc_zval_possible_root (zend_gc.c:166)
==19665==    by 0x85CF2D: _zval_ptr_dtor (zend_gc.h:183)
==19665==    by 0x86C616: _zval_ptr_dtor_wrapper (zend_variables.c:178)
==19665==    by 0x87EA63: zend_hash_destroy (zend_hash.c:526)
==19665==    by 0x86C25E: _zval_dtor_func (zend_variables.c:43)
which tells me nothing
because I already know that it's trying to read a bad pointer
:-(
/me will continue tomorrow... Will watch the hash tables for freeing...
 
I will post something that is pretty clear why internal operator overloading is a huge win:
// non-simd
bool pointIsSteady(const hotplate plate, int row, int column) {
    return fabs(
        plate[row][column]
        - (
            plate[row + 1][column]
            + plate[row - 1][column]
            + plate[row][column - 1]
            + plate[row][column + 1]
        ) / 4
    ) < STEADY_STATE_PRECISION;
}
// simd
__m128i pointIsSteadySIMD(const hotplate plate, int row, int column) {
    __m128i int32x4 = _mm_cvtps_epi32( // convter to int32x4
        _mm_and_ps( // convert to 0 or 1
            _mm_cmplt_ps( // < 0.1f
                _mm_andnot_ps( // abs
                _mm_set1_ps(-0.0f), // used for abs
                    _mm_sub_ps(
                        _mm_load_ps(&plate[row][column]),
                        _mm_mul_ps( // * .25
                            _mm_add_ps(
                                _mm_add_ps( // top and bottom
Oops
Top one is wrong function, just a moment (or bottom, either way I gotta post same function)
 
@LeviMorrison this is was GMP does. and I have nothing against this. Only against userland overloading…
 
9:39 PM
@bwoebi This same principle holds no matter where the code is.
User-land or core, if this is what you have then operator overloading is a big usability win.
 
9 mins ago, by bwoebi
@NikiC my problem with userland overloading is that I fear abuse of it… (e.g. harder to tell what code does without knowing the framework which provides the operator overloading class)
 
Fear is not a valid reason; your case is invalid.
 
@LeviMorrison I hate reading C++ code with loads of >> and << … I always think of bitshifts… but this is some function parameter passing, no idea…
 
@LeviMorrison Oh yeah, SIMD FTW
 
something weird is going on in here. But I'll find it... Eventually
 
9:42 PM
I just noticed a lovely typo I swear I've fixed twice now "convter"
I must keep forgetting to commit that change >.<
@NikiC SIMD is awful because they don't know what exact type you are using or exactly what operator. In Dart many operators are overloaded and it's nice, but not as many operators are available.
 
@LeviMorrison I only know it's hard to read such code when the operators are not doing the normal operations you expect....
 
@bwoebi Fear is not a valid reason; come back when you have a valid point.
If you cannot trust the code to keep the semantics of an operator, why should you trust them with any interface?
Interfaces don't really enforce behavior; they can only enforce signature.
What is the difference here?
 
@LeviMorrison I don't use any interfaces, except the internal ones…
 
But what's the difference between that and ArrayAccess or JsonSerializable?
 
@LeviMorrison because they provide some functionality...
 
9:47 PM
Or any other interface?
@bwoebi So do operators?
 
please tell me, how I'd fast lookup the definition of an operator? strg+f is hard there.
 
ArrayAccess already is operator overloading on [] . . .
@bwoebi In C it would be a function name like operator+ -- that's just as easy to grok as add . . .
In fact in some ways easier because it would have fewer false positives.
 
@LeviMorrison but you now that this is an object…
… mh… It's late…
 
@Ivan0x32 damn i really don't know what to do about it and how to solve that
 
SELECT tableA.field1 AS tablea_myfield1 FROM real_table_name AS tableA?
 
You just need to write all fields that you want to extract from you joined tables.
Or i'm just don't understand this at all :)
 
1 message moved to bin
 
@Ivan0x32 i have a table in which there is a field to specify who takes the job and to whom the job was given. Both field refer to a same different table containing employees.
 
@Feeds Nobody pops up an advertisement in my face. NOBODY!
 
@PeeHaa埽 >.<
 
9:59 PM
ofc, in your result you can easily distinguish fields from one table from fields from another by explicitly aliasing them with diffrent names
 
Aaaaaaand it's gone
 
@Ivan0x32 okay, thanks, i will do that now
 

« first day (975 days earlier)      last day (3973 days later) »