« first day (479 days earlier)      last day (4467 days later) » 

9:00 PM
@DeadMG good call, I'd have to make it work with bytes, not int.
 
Today's.
(didn't take note, just finished building)
 
Xeo
Hm
clang -v
 
@MooingDuck No, that doesn't even remotely solve the problem.
you need to be able to load and store both T and T*
 
@Xeo clang version 3.1 (trunk)
Not helpful.
 
Xeo
lol
Mine shows revision atleast
 
9:00 PM
@DeadMG Or just say they're the same.
 
@DeadMG I assumed the opcode could load and store T* as well, (assumed that I can freely convert between int and int*)
 
every time I wanna ask a question, I enter the question title and get the answer. fascinating
 
@MooingDuck You have no instruction that performs that function.
 
Well, clang is built with someone else's script.
libc++'s I had to tweak.
(I use my distro's build system to make actual packages from the trunk that I can remove/update/etc normally.)
 
Xeo
$ svnversion btw
Or $ svn log | head
 
9:02 PM
@DeadMG I misspoke that last bit. I had assumed that int and int* were the same thing internally. (which is not a valid assumption)
 
evening
 
If you can branch, it's probably good. See subtract and branch if less than or equal to zero.
 
@MooingDuck That doesn't matter in the slightest.
you have no operations which can load or store a T*
 
@RMartinhoFernandes Doesn't matter- you have only one interpretation of that memory.
 
9:04 PM
I thought we had established they were the same thing.
 
@DeadMG you're nitpicking some detail, but I'm at a complete loss as to what it is
 
Like, you know, every flavour of assembly out there.
 
no, it's really not at all the same
 
It is if he says it is.
 
no, it isn't
 
9:06 PM
Ok, you're not making sense.
$ svn info
Path: .
Working Copy Root Path: /home/rmf/abs/libcxx-svn/src/libcxx
URL: llvm.org/svn/llvm-project/libcxx/trunk
Repository Root: llvm.org/svn/llvm-project
Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8
Revision: 150002
Node Kind: directory
Schedule: normal
Last Changed Author: hhinnant
Last Changed Rev: 149701
Last Changed Date: 2012-02-03 18:31:43 +0000 (Fri, 03 Feb 2012)

$
 
look, it doesn't matter whether or not int and int* are the same in his system, because there's no way to convert between them
 
@Xeo: compare "Revision" with "Last Changed Rev".
I have no idea what this is.
 
@DeadMG why would you convert A to A? They're the same thing
 
Xeo
@RMartinhoFernandes Where exactly are you (path)?
 
oh christ
maybe because if you want to subtract them, say
then the difference between subtracting a pointer value and the integer at that address, might, just possibly, yield different results
 
9:07 PM
How so?
 
well, for a start, the cell 0xDEADBEEF might contain 5 as a value
 
@Xeo The paths are all there. Can you run svn info on your WC?
@DeadMG Go on.
 
Xeo
@RMartinhoFernandes I mean, are you in libc++ or llvm? Because "Path: ." says nothing
 
but he has no instructions that can load to give 0xDEADBEEF which he can then load again to get 5
 
@DeadMG sure I do, pointer to 0xDEADBEEF. At some point you're going to get back to hardcoded assembly pointers, but that's fine.
 
9:09 PM
what the fuck you gonna do with that? your only operation will de-reference it as int*, not int**
 
@DeadMG use 0xDEADBEEF in the subsequent operation
 
you can never go from pointer to 0xDEADBEEF to 5
never, ever, ever
 
Yes, you can.
You load 0xDEADBEEF into a cell and the next instruction dereferences from it.
 
@DeadMG sure can. Just subtract 0xDEADBEEA
:)
 
@jalf pointer to ^^
 
9:12 PM
@DeadMG so? in assembly it's all the same. You can subtract from pointers too
 
@jalf In real assemblers, they have generic load and `store
@RMartinhoFernandes How would you de-reference from an arbitrary cell?
you can only load it's contents as int
 
mov ebx, [eax] <-- loads what eax points into ebx
 
Gimme a few minutes to write a complete program in this thing.
 
@TonyTheLion we're not talking about x86
 
oh yeah
and how would you ever load any data into the program?
 
9:14 PM
@RMartinhoFernandes it's surprisingly tricky due to the massive amounts of required indirection
 
@MooingDuck was an example
 
you can't set it to any fixed value
 
@TonyTheLion doesn't apply to the conversation
 
@MooingDuck I had to do the same with SUBLEQ in class once.
 
oh sorry that I ever came into the room :(
 
9:14 PM
@TonyTheLion :(
 
1
Q: MSVC++ variadic macro expansion

Robert KellySo I've got a macro that works nicely in GCC, but not in Microsoft's C++ Compiler. I'm hoping somebody might know of a workaround, or perhaps can explain to me why it behaves this way. I'm sure this macro isn't exactly "standard", but it would really help me out. Here is a functional example o...

meh macros
 
@TonyTheLion Oh, that's the compiler sex guy.
Wait, was it *c = *a - *b?
 
yes
 
Ah, I remembered now how to halt.
An instruction that jumps to itself.
Now with proper halting: pastebin.com/S44dwaPq
@MooingDuck I'm not sure you can implement a conditional branch on this. How would that work?
Wait, that's not correct.
 
@RMartinhoFernandes That's not even remotely the same.
 
9:28 PM
@RMartinhoFernandes I think I worked it out to adding the IP to the result of an expression, using that as an index to a jump table, where some options are forkyes, and some forkno
@RMartinhoFernandes it's definitely nontrivial if I'm correct that it's possible
 
@DeadMG Yeah, you're right. I forgot about the dereferencing on the first instruction.
 
in any case
such a thing is so incredibly and ridiculously useless, I find it to be an extreme case of a worthless use of time even for theoretical computer science
 
@MooingDuck How do I do a boolean "is it zero?" test?
With your scheme, you need 2^32 entries on the table!
 
or "is it negative"?
you can't do IP hackeries with negative values
 
But you can only address 2^32 cells!
 
9:36 PM
it's time for ice cream
 
@DeadMG absolutely, I don't disagree with that
 
You need the entire memory for the table.
Not Turing-complete, I'd say.
 
@RMartinhoFernandes Most of my conditionals depended on multiplication/division being implemented. Which I just now realize probably depend on conditionals.
 
They do. You need loops.
 
@RMartinhoFernandes I don't think it can be done :(
 
9:45 PM
@RMartinhoFernandes compiler sex?
 
18 hours ago, by R. Martinho Fernandes
> Mate, nobody wants to hear about your sexual experience with various anthropomorphised tool chains. Just ask the damn question. โ€“ paxdiablo 2 mins ago
 
9:59 PM
@RMartinhoFernandes Hah. I liked the way he wrote that. Shame it sucked for a question. It would do nicely on his blog!
 
According to his metaphorical view of the world I have wild orgies with my compilers.
 
@RMartinhoFernandes er, but you do?
 
@sehe I have to agree. It seems pretty similar to the image I had of him programming.
 
What?
@Xeo, oh I got it now. Makes sense. The latest libc++ revision is 149701. The fact that the latest commit on the repo is 150005 is just a symptom of SVN's suckiness.
There are other things in the same repo: either other projects or just branches (which, as far as SVN is concerned, are the same: folders). When someone commits to those other things the revision number increases.
 
10:14 PM
use Hg! MWAHaha
 
I'm not in control of libc++.
 
obviously that's a problem you'll have to fix
 
1) Continuously improve myself until I get the position; or 2) kill everyone else that is more fit for the job than I am?
I can't decide.
 
I'm waiting for the puppy to say that #2 involves killing him.
 
10:19 PM
actually, waht I was thinking of saying was "3) Just use my language instead! mwahaahahahahah"
when it's done, obviously
 
Xeo
Aka never
 
I just have standards :P
give me a break here, I'm working solo and a whole language of the size and complexity that I have planned is not a trivial project
 
Well, to be fair, you decided on the size and complexity.
 
oh, and, if a whole credit was a metre, a quantity of credit less than one Planck metre goes to Martinho :P
true
but I have no problems with how long it's taking :P
as with anything else, it'll be finished when I feel happy with it and not one microsecond before
 
10:28 PM
We shall measure.
 
lol
 
Xeo
0
A: How to overload method taking predicate vs value in c++

XeoDo as the stdlib does: Don't overload. The stdlib for example provides two functions that let you search for something in a range. One is named find, and compares by value ("find that value!"). template<class InIt, class T> InIt find(InIt first, InIt last, T const& value); The othe...

Gotta love expression SFINAE
 
ok
maybe I should just move to named syntax elements
like function( return := expression, body := { shizzle } ) kind of thing
nah
 
Xeo
10:43 PM
decltype(true?0:0) will be int, right?
 
yes
 
@Xeo Your fix doesn't really fix anything.
C++ is a beast that likes to struggle.
 
Xeo
@RMartinhoFernandes Oh please don't tell me decltype(first) is InIt& -.-
 
@Xeo No, that one is InIt.
But decltype(blah, first) is InIt&.
 
Xeo
Then?
 
10:49 PM
Yeah, it sucks.
 
Xeo
Omg
What about decltype(blah, void(), first) ?
Same result I guess?
 
Xeo
Fuck that.
 
Yeah.
It needs too much hackery.
 
Xeo
decltype(blah, InIt()) it is then. That atleast correct?
 
10:50 PM
I'll have to check, but I believe so.
 
Xeo
Ah, damn, what if InIt isn't default constructible~
 
declval
that's what it's for
 
Xeo
template<class T>
T create(); // fuck you.
 
also, fuck you Bison, my grammar, she is not ambiguous :(
 
Xeo
@DeadMG Should give T&& though
 
10:51 PM
> Thanks for the response, but I don't really want a dequeue. I want all the normal vector behavior (random access, subscript operator, etc) but I want the underlying implementation to be in blocks
 
@DeadMG No, declval gives rvalue refs.
 
Xeo
@sehe lol?
 
oh well
 
What would make the OP say that ^^ at this question:....
3
A: vector implemented with many blocks and no resize copy

seheYou would be looking for std::deque See GotW #54 Using Vector and Deque In Most Cases, Prefer Using deque (Controversial) Contains benchmarks to demonstrate the behaviours The latest C++11 standard says: ยง 23.2.3 Sequence containers [2] The sequence containers offer the programme...

 
how can we know if you don't linky it?
 
10:52 PM
Bad timing.
 
@DeadMG I have the wife talking on one end, just closed browser tabs, another conversation in another room :)
 
not my problem :P
 
Xeo
Oh lol, I just noticed that the OP actually did use find and find_if in his question
 
Oh, and I'm trying to watch Bjarne's keynote meanwhile
 
You break SRP.
 
10:54 PM
arrgh
grammar so ambiguous
 
okay just finished watching Andrei's talk on variadics
not sure I understood it all
but it was interesting nevertheless
 
I haven't watched any of the GoingNative talks
 

« first day (479 days earlier)      last day (4467 days later) »