« first day (494 days earlier)      last day (4456 days later) » 

11:02 PM
@wilhelmtell Yeah, I took that into account, as you can see from the test cases pastebin.com/MmzugDtn. But threw some of the existing code :)
 
@sehe Is this using the same code you posted yesterday?
@sehe and the callback ideone.com/aKLt9 where do i plug that? is this an action for the id rule?
 
@wilhelmtell mmm no I don't think I posted it anwhere yet. Went to bed in aniticipation of your SO post :)
 
@sehe lol
 
@wilhelmtell patience. I reckon I'll post all that within say 30 minutes from now
 
@sehe no rush no rush! well just a bit. :p
 
11:05 PM
@wilhelmtell The grammar is modified extensively
 
oops
i thought it's simple and straight-forward enough for me to get my feet wet with spirit
 
Anyone here can help me with microprogramming?
 
> ejacu-gunt
lol
 
11:17 PM
@LearningC microprogramming? To wikipedia!
 
They have nothing
 
@LearningC why would anyone do microprogramming? (unless you're making a custom processor)
@LearningC are you sure that's the right word?
 
@MooingDuck Its a class requirment
 
@LearningC maybe, what are you doing?
 
@MooingDuck electrical engineering
 
11:21 PM
@LearningC no I mean, what do you need help with specifically? I might be able to recall/infer enough to help.
 
@MooingDuck programming some task in MAC-1
 
Microcode is a layer of hardware-level instructions and/or data structures involved in the implementation of higher level machine code instructions in many computers and other processors; it resides in special high-speed memory and translates machine instructions into sequences of detailed circuit-level operations. It helps separate the machine instructions from the underlying electronics so that instructions can be designed and altered more freely. It also makes it feasible to build complex multi-step instructions while still reducing the complexity of the electronic circuitry compared to ...
 
@LearningC I've never heard of "MAC-1" and google can't find it. What's the task?
 
Just got the Vox Populi badge but I didn't vote on anything today.
 
58 mins ago, by Shog9
22
A: "Votes cast" should include votes on deleted contributions

Nick CraverStarting with the next build, votes on deleted posts will be included in the profile counts. This will also apply to the various voting badges to match: Civic Duty, Electorate, Suffrage, Vox Populi. Also, the badge progress on review should remain accurate. Downvoting bad content (which usuall...

 
11:24 PM
I have the solution but I'm trying to understand how to do it.
@MooingDuck also see page 20 ece.umd.edu/class/enee350.S2012.Silio/Notes/Microarch.pdf for some code
 
@LearningC you have the solution but don't understand? Someone just gave you the answer?
 
NickCraver got a new picture?
 
@MooingDuck Yes I have the answer. But I don't want to look at it yet.
 
@sbi that's old news
 
sbi
11:26 PM
@MooingDuck Must've missed this then. When was it posted today?
 
@sbi So basically, I saw this before it could affect me?!?!?!
 
@sbi OMG. But what about all those new branches of physics dealing with shortcuts through alternative realities and other sci-fi crap?
 
@sbi it was proven not true.
I think the news was sometime last year november
 
sbi
@LearningC That is what I just posted a message about, only to be told by a @Mooing duck that it had been posted before.
@LearningC Last November it was "shown" that Neutrinos are faster than light — iff the measurements were true. Today it was shown that they weren't true.
 
I don't have any software that doesn't use C++11 features that clang doesn't support, what should I test it with
 
sbi
11:30 PM
@RMartinhoFernandes You, of all people users here, speak of "sci-fi crap"?
 
@sbi I just read your article, that is new news. About a week after the neutrino thing I saw an article saying that the GPS time delay would account for the error exactly, and everyone stopped talking about it.
 
@sbi my physics teacher told be that they did similar test but didn't yelled the same results in December
 
@LearningC so you need to implement CALNZ x in microops?
 
@MooingDuck Yes
@MooingDuck I have the answer but don't know how they got it
 
11:33 PM
@LearningC can you describe the steps in the process? What each of the microcodes have to do? (I'm still looking through the docs you gave me, so I haven't got details yet)
 
@MooingDuck Honestly I have no idea what is going on in that class either.
 
@sehe well I got something working, so I posted it
 
@LearningC hmm, this is not a trivial microcode you have here
 
@sbi I don't like to read sci-fi in the news.
 
@je4d :) I'm getting lost in variadics/perfect forwarding land. Time to cut a corner, I guess
 
11:36 PM
@MooingDuck So far I know that alu:ac will load the alu with ac
@MooingDuck and google don't know either
 
@sehe aah, variadics are my favourite toy at the moment ;)
 
@LearningC you have to read and understand this file: ece.umd.edu/class/enee350.S2012.Silio/Notes/Microarch.pdf
 
@sehe if you've got a variadics problem/puzzle, I'm all ears
 
or at least, the opcodes. DOn't need timing for that
 
@MooingDuck I have it in front of me. They don't go into details of what the command is doing
 
11:38 PM
@je4d I was hoping i could show whether arguments were passed as (const) lvalue/rvalue. Easily. Not easily. I'm sure I could using std::is_reference<> etc, but it's beyond scope now
 
@LearningC -wait no, still reading-
 
@sehe Too many dadadas?
 
@MooingDuck What is "non conditional"
 
@sehe std::is_lvalue_reference to be precise. If it yields true, you were passed an lvalue. Otherwise, an xvalue or prvalue (aka rvalue).
 
@LearningC a non conditional is "do this now". A conditional is "IF x, then do this"
 
11:40 PM
You can't however distinguish between xvalue or prvalue. foo(42); and int i; foo(std::move(i)); both instantiate foo<int&&>.
 
@LucDanton Thanks. Didn't have that one interned yet. Thanks, will be stored now for future reference.
@LucDanton I understood that
 
@MooingDuck what does the AMUX do?
 
@LearningC I've never seen this microcode before, I'm still reading. I have no idea yet
 
Why is my packed struct of four uint8_ts 5 bytes?
 
Because you did something wrong?
 
11:45 PM
Obviously we need prvalue references to distinguish between prvalues and xvalues: void perfect(auto&&&); where perfect(42); instantiates perfect<int> but perfect(std::move(i)); instantiates perfect<int&&>!
 
What could go wrong though?
 
@LucDanton I think that overlaps with the goals of constexpr anyways
 
@LearningC bottom of page 7 says AMUX switches the first input of the ALU (thing that does addition and other math) between the A bus and the MBR
@LearningC do you know what the MBR is? Because I haven't read that yet
 
@MooingDuck It is one of the two register, MBR and MAR
 
$ cat test.cpp
#include <cstdint>
struct foo {
    std::uint8_t x;
    std::uint8_t y;
    std::uint8_t z;
    std::uint8_t w;
} __attribute__((__packed__));
static_assert(sizeof(foo) == 4, "Size of foo must be 4!");
int main() {}
$ g++-4.7 -std=c++11 -Wall -Wextra -Werror -pedantic test.cpp
$
 
11:48 PM
@LearningC oh, makes sense. kinda
 
lol
 
@Pubby Even if not packed, 4 uint8_ts should use up four bytes, since no padding is needed.
 
Yeah, it's 5 unpacked too
 
Are you sure you didn't let a fifth one in accidentally?
 
I'm sure. Oh well, I don't need the struct anyway
 
11:50 PM
No slight intended but let's cover everything: inheritance?
 
No inheritance
 
@LearningC I've never worked with opcodes this confusing before, this is nuts.
 
@MooingDuck If you confused but you have experience. I have none...
 
@LucDanton What is auto&&&?
 
@LearningC it probably doesn't help that I skipped the first half the paper, so don't have a good understanding of how A, B, MBR, and MAR are connected, or for
@LearningC not with microops, I've never done this before
 
11:53 PM
@SethCarnegie A bit of a joke using hypothetical new syntax for declaring templates with less boilerplate.
 
@MooingDuck look at second last page
 
Inspired from considerations by the SC to make [](auto i) { return i + 3; } a valid lambda expression.
 
@LearningC oh, that's better. slightly. Except I don't know what any of those tla's refer to
 
@MooingDuck What is tla?
 
11:55 PM
Three Letter Acronym.
 
@LearningC three letter acronym
 
TLA is a TLA for "Three Letter Acronym"
Is that a recursive definition?
 
@SethCarnegie kindof
anyway, moving on: Implement execution of the machine instruction:
CALNZ x which calls subroutine (procedure) x if the content of the accumulator (ac) is NOT equal to zero.
 
@MooingDuck I guess it depends on if you do a depth- or breadth-first parse
 
@SethCarnegie It's autological.
 
11:57 PM
@MooingDuck So I took a peek at the solution:
 
@LearningC you know how to call a subroutine?
 
@MooingDuck At position 100 alu:=ac; if z goto 0;
@MooingDuck So they passged ac to alu and check if it is zero, if it is zero exit the check and go to next statement. That is what I understand so far.
 

« first day (494 days earlier)      last day (4456 days later) »