« first day (2173 days earlier)      last day (2772 days later) » 

12:04 AM
@sehe I don't know but it wasn't worth it
 
@jaggedSpire Will you be watching the debate?
 
@Borgleader I don't have enough alcohol, and I have work tomorrow.
I'll find a summary of it and try to cope with that
maybe not tonight. I also require a decent amount of sleep tonight
maybe Thursday night
 
I'm catching a plane on Friday so it won't matter terribly if I'm up all night Thursday staring at the ceiling in horror
 
@Borgleader At least if it seemed to be a good book, I'd be a lot more interested if they said something like: "hey, I just finished reading that; you want to borrow a slightly used copy?"
@sehe Maybe it's one of those Biblical things, where your five-times-over great grandfather did something wrong, and you're still part of the seven generations being punished for it. Hey, at least it's not quite as bad as fire and brimstone...
 
12:15 AM
must be
 
Which reminds me of the old story about a child in Sunday school. They were told the story of Lot, and how his wife looked back and turned into a pillar of salt. One of the kids quips up with: "something like that happened to us last week." The teacher was a bit astounded, and asked what happened. "Dad was driving. He looked back at a girl jogging by in a bikini, and we turned into a telephone pole."
12
 
Hahahahaha
 
12:40 AM
Well, even though I scored 73% on an assignment (losing 27% due to solving the more general problem on one question, and neglecting a condition of the the other), I've been given a grade of 48% because the assignment is graded on a curve and over half the class received 100%. sigh
 
@Aaron3468 Ouch!
 
To add salt to the wound, windows has decided to helpfully schedule the buggy anniversary update to a time I don't appear to use my computer; 10 minutes from now Q.Q
 
12:56 AM
@Aaron3468 Every time I hear about Windows 10, I'm more happy that I decided against the free "upgrade".
 
Don't get me wrong, it's definitely faster and a bit less crash-prone, but the auto-updates they introduced in win 8 are absolutely terrible. And the new settings are just a simpler reskin of control panel (now with global state so all your apps must share the setting).
I'm seriously contemplating using linux distros from here on out. It's just too bad some of the games I play aren't wine-compatible
 
@Aaron3468 I have few enough crashes with Win7 that it's not an issue. Extra speed would be handy, and I do have a CPU for which its scheduling is a noticeable improvement. That strikes me as a fairly minor improvement, and the loss seems pretty substantial.
 
Yeah, I kind of miss win 7 because it barely tried to manage my computer for me
 
1:12 AM
telkitty.com is not blocked in china, but telkitty.com.au is ...
not sure whether it's because the .au site is new
 
1:27 AM
If I have a function that returns a reference to an int, does it return an address or an alias?
 
@LuisAverhoff The exact representation of a reference is (quite carefully and intentionally) not specified. It can vary between compilers, and even with the same compiler it can vary depending on the surrounding code, such as it/how that returned value is used.
 
@LuisAverhoff it returns a reference to an int
@LuisAverhoff (also check here now, you said you wanted "pictures":)
4238
A: Can a local variable's memory be accessed outside its scope?

Eric Lippert How can it be? Isn't the memory of a local variable inaccessible outside its function? You rent a hotel room. You put a book in the top drawer of the bedside table and go to sleep. You check out the next morning, but "forget" to give back your key. You steal the key! A week later, you retu...

 
Didn't Linux go on a rant about how you should be able to return pointers to local variables?
 
@sehe haha nice you remember :)
I don't know but regardless it is bad idea to do so because the local variable that you return from the function gets deallocated from the stack.
 
1:49 AM
@LuisAverhoff It's a bad idea because it's Undefined Behaviour. Indeed, the object is deallocated, but the memory is very much around, so IF the compiler implements pointers as the physical memory address, you can see why it is Undefined Behaviour to indirect through that pointer/reference after the function returned (but it's even more undefined, since pointer representation is Unspecified)
That linked answer has a splendid analogy for this
 
@sehe Yes I understand that seeing that I have had that happen to me before in C.
 
In a perfect world, if you encounter a mess you clean it up. I like to apply this logic to undefined things because without it, we would not have useful concepts like imaginary numbers. In other words, define the undefined or suffer the consequences.
 
What are negative probabilities? (besides defects in quantum topology experiments)
 
@sehe would it be equally as bad if I did this paste.ofcode.org/JZYbEnfqykfRgBdrD2k7tc
 
Congratulations. You invented the memory leak operator
 
1:54 AM
Hooray
 
Imaginary probabilities. Eventually you can factor them out of positive probabilities :)
 
Jul 29 '13 at 15:27, by R. Martinho Fernandes
*new is the memory leak operator.
6
I'mma sleep now
 
waste_of_time.txt
 
ok, just for you
 
^_^
 
1:57 AM
Don't fall asleep now
that would be a waste of time
 
what if I just do return new int?
and the function returns a pointer to an int?
 
congratulations it's a cleanup responsibility
 
it's fun
 
no fun allowed
 
2:00 AM
Fun is double-plus-un-good
 
Any of you guys watching the debate?
I'm just waiting for trump to rko hillary lol.
 
Lounge C++ is a fun-free zone, not to be confused with a function free zone
 
I'm Canadian, so it's been a debate since they both ran
 
so can we afford to forget about 'new' "leak" C++ operator?
 
2 hours ago, by jaggedSpire
@Borgleader I don't have enough alcohol, and I have work tomorrow.
 
2:03 AM
and delete :P
 
@ProblemSlover new isn't the leak operator. *new is.
 
As far as I've concluded Hilary is the politician, Trump is an idiot, and I'll be quite astonished if Trump wins. On the other hand, he'd be a similar politician to Bush, so I suppose it wouldn't be unprecedented.
 
rm -f ./
 
Anywaaays, politics makes poor conversation. Let's vote on what to talk about!
 
@Aaron3468 I'm going to vote on the opposite of whatever you want just because!
 
2:08 AM
I'm painting the roses white today!
 
Come on vote for hillary. She is hot. xD.
 
actually can I vote to talk about voting
@Aaron3468 No! Red! >:(
 
@jaggedSpire Our conversation is democratic, so that is permissible
 
I won't be surprised if Trump does win. Winning the election isn't about who is more suitable, it's about how many people you can brainwash. And Trump seems pretty adept at that.
 
"Get him out of here"
 
2:40 AM
since I have the 'fast', non linear implementation for membership testing e.g. index_in<int, list<int, double>>::value == 0 I abuse that fact for a fast duplicate test :/ i.e. index_in<int, list<int, int>>::value is an error due to overload resolution ambiguity cc @Xeo
@Xeo the larger picture, if you’re interested
fun fact: having a requires false constraint doesn’t prevent conflicts, so looks like I’ll use good ol’ fashioned partial spec
I know I can write a constructor that accepts anything and use overload resolution testing to select the correct alternative, but I wanted to avoid that to get full aggregate syntax etc.
 
good morning gentlemen
 
So how is everyone doing?
 
@Mysticial hello again :) may i ask for some more asm advice or do i better travel to the University and torture the heck out of the asm guys?
@LuisAverhoff i'm asm'ing
 
Just ask, if I'm awake and I feel like it, I'll respond.
 
alright
 
2:52 AM
Sounds like fun.
 
well, basically i got a profile of vtune for some sse vector code on a westmere
and there is a couple of spots where i don't understand what is going on, why the same thing takes different time in different places
 
VTune takes some practice to use.
 
interesting, I find no appreciable differences in compile-times so I might as well leave a ton of these tests
 
@Mysticial sure, second time i'm using it, first one being the matrices
 
user1593881
I am having difficulties with deciding as to which one is worse: online code challenges or assignment questions. What do you think?
 
2:59 AM
That is tough, but I would say online code challenges.
 
@Mysticial my question is, given this profile pasteboard.co/7Ykm89jPa.png (sorry no idea how to paste other than as image, which is sorta forbidden here)
at 198 and 216, it's the same thing, but it takes 1.5 more time on 216
 
images are fine - as long as they don't move.
 
with a weird distribution of time between the lines
and for some reason, in the second case the instr. retired count for the (sub, mul, add) is way greater
 
VTune 101, the bars aren't always in the right place.
 
i know
but look at instructions retired, they're very different too
 
3:03 AM
VTune 102, the retired count is just an approximation of some number that only Intel understands.
 
hmm, ok
thus, is it useful?
 
not really
 
aaand, what really is?
 
The only time I've seen that number make sense is when I reduced number of instructions in a function, and VTune showed the # of retired instructions has decreased.
Technically speaking, it's impossible for a sample-based profiler to get a correct retired instruction count.
 
well, i've been able to eliminate a couple hotspots already using these profiles
 
3:05 AM
So they do something to guesstimate it and nobody but Intel knows how it works.
 
i see
in that case, is callgrind better?
i sort of get lost in how kcallgrind visualizes it
 
The hotspot in there is quite clear. The division.
 
errr there is no division, except at teh very start of the func?
could you point the line#?
 
Look on the right-side with all the assembly. The divss sticks out like a sore thumb.
VTune 103, bars are usually 1 instruction after the real culprit.
 
rreaaally?!
that's real news to me
but, where does it come from? and, there are 3 sse instructions, mul, add, and sub, shouldn't they cost about the same?
 
3:08 AM
line 215
Notice the bar is very inaccurate on the source code side. That's because the compiler reordered everything.
 
well, looking at the source code side, i assumed it was the loads or the vector ops that cost 5 sec
 
That's why I rarely look at the source code side.
Because the compiler fucks everything up.
 
makes sense
it's ICC btw
icc -O3 -xHost -fPIC (because Qt is fPIC)
@Mysticial but, well, i can't quite wrap my head around it: there are 3 SSE instructions, and each of them is a few times faster than a scalar division?
 
Yeah.
Division of any kind is shit.
Your division by 1000.f can be converted into multiply by the recriprocal.
The compiler probably didn't do it because you didn't turn on fast math.
 
it sucks, you see, i can't live without it here
is it good news that this 1000 is really a constant?
 
3:15 AM
yes
 
i mean, the logic of this program dictates that it is a constant
 
If your compiler doesn't invert it for you, do it manually.
 
it will become 4000.f later on but i guess that matters not
but i recall.. sigh i may be mistaken, but i heard that today divison and multiplication are more or less equal?
 
Btw, if you want to know what memory bound looks like...
@iksemyonov Definitely not. Division is much slower.
 
still holds for haswell and skylake?
 
3:19 AM
Correct.
Division is fundamentally slow.
 
soo, in that screen, how should i see memory bound? let me guess, yellow bars for cpu stalls?
 
Look at what the bars are next to.
 
avx loads
 
does this figure make for a compelling story? the results of fine tuning some code that involves a lot of variants cc @sehe @R.MartinhoFernandes @Rapptz
 
right, makes sense, the cpu stalls on loads from memory
 
3:21 AM
@iksemyonov Under what circumstances would loads take so much longer than FP instructions?
 
coming from ram not l1/l2?
 
correct
 
is there no way to block in cache or such in that algo?
 
@iksemyonov That example is exaggerated. The code was never designed to run out of cache. But I made it run out of cache anyway for the purpose getting a screenshot.
 
oh, ok
 
3:23 AM
Quiz, why are the bars for those memory loads so uneven? Some are really tall, some are really short?
 
ha, easy :p because they're adjacent as can be seen by the register names and offsets
 
Why does adjacent matter? :)
 
when the register changes, immediately a stall follows because obviously the distance is too high
because cache line?
 
@iksemyonov correct
 
been taught that at the Uni :)
 
3:25 AM
If you take into account the off-by-one that I mentioned earlier...
It cache misses on the first access to the cache line.
 
right, i started by offsetting it back, after your explanation
 
The one next to it is on the same cache line. VTune doesn't count that as a second miss.
 
oh, i recall looking for misses with the matrices task, using the vtune cli interface
 
Quiz 2: Explain the bars in this screenshot:
 
we were doing that on a cluster of 2670v1's with no X11
 
3:27 AM
This is real code running under the intended environment. So it's not like the first one where I intentionally made it memory bound.
 
@Mysticial come back in a minute, i need to close opera to make a run with the reciprocal change
 
ahaha
 
opera 40 is really darn fast on linux ! no ui lags whatsoever first time in many years
ok gone
 
Opera has been sold to Qihoo and hence I suggest you use something else
 
@PatrickM'Bongo no way, i man, firefox is a lagfest compared to the current opera release\
 
3:35 AM
Well you may want to read about Qihoo :)
 
@PatrickM'Bongo i'm into properly multicore-aware stuff, having a 12 thread cpu
ok, sure will do, ty
 
so the time to give a try to opera?
i wanna ditch the chrome
 
@Mysticial that sore thumb is gone but there is another div too and the overall run time hasn't changed much (but it has)
 
Hey guys, can you answer this question. I have read a stack overflow post that said that traversing through a 2D array like this paste.ofcode.org/xs37FedF7kka3EMzqhrhSz is cache inefficient compared to if you did it like this paste.ofcode.org/38iH9bLHiwVhCJEedD5hBt3 . Is this true? If so, why?
 
user406009
@iksemyonov You might want to try just using chromium instead.
 
user406009
3:36 AM
It's gotten to the point where Opera is just a bad reskin of chrome.
 
@Lalaland chromium is the one i'm afraid of, maybe wrongly, for the privacy and annoying google services
 
user406009
@LuisAverhoff Sure, we can help, we just have to move it into the Q/A room: chat.stackoverflow.com/rooms/116940/c-questions-and-answers
 
like google update
 
user406009
@iksemyonov I'll tell you a secret. The new Opera uses chromium underneath.
 
starting with version #?
 
It kind of bothers me that most browsers are reskinnings of firefox or chromium because there isn't that much variation in functionality; what I dislike about <major browser here> will also be part of any small competing browsers
 
@iksemyonov You should be glad that you're only doing single-precision divisions. Double precision divisions stick out like a middle finger rather than a sore thumb.
 
@Mysticial does the reciprocal trick work with non-constants?
i have another div up there, show you in a sec
 
@iksemyonov Nope.
 
f that :(
 
3:44 AM
You can still multiply by the reciprocal, but a reciprocal is a division.
 
yeah. need to rework the bit of the algo then, somehow
the theory of one-line-off appears to prove itself
@Mysticial that's some solid division you got there
 
@iksemyonov It's that slow because it's both double-precision and a packed SIMD.
 
gladly here it's a just a viz so floats suffice
 
Haswell doesn't have a full-width divider. So it pipes the lanes sequentially though a smaller divider unit.
 
2x128 right?
instead of a 256 like sandy
 
3:49 AM
Yeah. Intel has never has a divider wider than 128 bits.
So a 256-bit divide needs to go through the 128-bit divide twice.
 
not even in parallel?
 
Well, the 128-bit divide unit can do 4 parallel SP or 2 parallel DP divides.
 
sure, but not 2 128 in parallel for 8 sp
 
Correct
 
see the div? i thought it was the roundf and thought wtf until you had taught me about the 1-off
 
3:54 AM
@LucDanton I don't understand the second graph lol
 
put on your reading glasses
horrible styling jokes aside, it’s compile time for the TU (which is a test)
the more goes on in the TU (x-axis), the more time it takes to compile what with the instantiations (y-axis)
green(ish) is before tuning, other horrible pastel colour is after
 
Why is it a line graph and not a bar graph
No jokes on alcohol please
 
fuck if I know m8
 
@Mysticial see i could get rid of the div but the trick is: i need to divide the coordinates of a point on a ray to get the cell ID, but the damn cells aren't uniform in size, Z-length can be > than X and Y
 
@PatrickM'Bongo hop
 
4:00 AM
else i'd just pretend it's 1,1,1 and there is no division required
 
@iksemyonov Btw, starting from Haswell, the rounding instructions are expensive.
Not as bad as division (not even close), but it's equivalent to two FP adds.
 
i'm on westmere :p maybe sandy soon, but surely going to jump over haswell
ok, great, note taken!
 
Rounding isn't a very important instruction, so Intel nerfed it. And it's still slow as of Skylake.
 
what I’m doing here is gauging interest in writing something about essentially std::visit, since it’ll be available soon-ish to everybody. in my case I replaced several uses of visit to a different operation (that’s not available stock with std::variant) cc @sehe @R.MartinhoFernandes @Rapptz again. I’ve griped before of my love/hate relationship with variants and what they do to compile times
 
@Mysticial short of the div that will probably take some thinking by me
there are a few more bottlenecks here, and while i can't cache block effectively without changing the algorithm, hopefully smth else can be done
 
4:07 AM
I had some code that was rounding heavy. It was great on Sandy Bridge, but not so much on Haswell. So that was some unexpected for me.
 
198-199 why are the 2 loads so different?
yeah i've noticed from reading anandtech that some things actually degrade in haswell and skylake compared to sandy/ivy
 
@iksemyonov They're probably on the same cacheline.
So the first one is slow, the second is fast. (don't forget to shift everything by 1.)
 
@Mysticial oh if one by one, then maybe yes, and what could be on the line for the first load then?
 
@iksemyonov The branch instruction that jumps to it.
 
tried looking at the asm but it's right at the block boundary - what to do about that?
oh, the jump, makes sense seeing how it's right next to the first if block
 
4:13 AM
@LucDanton much better (except for the alcohol joke)
 
arrête de me saouler
 
@LucDanton Ever since I figured out that variants were great to represent state machines (2 weeks ago), I'm spamming visit everywhere
So I'm potentially interested in your misleading graphs
 
oh, it actually only matters when visiting multiple (variant) operands
for exactly one variant there’s no difference, the two operations are the same
 
Come to rust where variants are near zero-cost
 
@Mysticial well i guess those two take so much time because the voxel is too short-lived for the loads to be from cache
the voxel[] array only lives for some 4-6 samples along a ray
 
4:22 AM
@iksemyonov To me, they're about the same size as everything else. So it's inconclusive.
Maybe L1 miss to L2. But the bars are too short relative to the surrounding code to know for sure.
 
i'm more concerned about 187 and 189 with the surroundings, what would you say? pasteboard.co/7ZHa23fqf.png the asm looks confusing to me
 
@LucDanton as in visit(visitor, variant1, variant2, ...) right
good news this is exactly what I do! namely, visit(visitor, state, event) for cheap multidispatch
 
that is somewhat relevant indeed then
 
@iksemyonov Now that I look at the assembly a bit more, base_0 is probably cache-missing.
Not all the way to memory. But probably L3.
 
sure it is
i'll tell you what it is in a few min
what can the 5s at 186 be?
 
4:27 AM
@iksemyonov If you look at the assembly side, those are all branch instructions.
 
@LucDanton what do you mean somewhat
 
@iksemyonov That branch isn't taken very often is it? I'm asking that because I realized why 198 and 199 are slow. And they should be a lot slower than they appear in VTune if the branch were taken more often than not.
 
well, presumably you optimized the state machine before turning it into code, right? if so, there’s likely nothing to fine tune
note that visiting is exactly the operation you want, the only tuning you could do is carefully picking the state and event types to share some instantiations
here is an extreme example: all the events can be stored in one int, no need for a variant type anymore
then you go from double to single dispatch
that’s the gist of it, restricting the space of the dispatch
 
@LucDanton I'm not sure I understand
@LucDanton Assuming stateless events?
 
e.g. you don’t have redundant states
@PatrickM'Bongo no, because 0 is different from 1. what matters is that all the event information can be stored in the one type (for our dramatic example)
 
4:39 AM
Redundant as in "useless"? Yes, all states have a porpoise.
 
sure
 
@LucDanton Ok, I see
So say in your case state connected { std::string session_id; } and state disconnected { std::string reason; } would be optimized into a single std::string?
 
no cos you gotta tell apart which event is which
enum struct event_type { connected, disconnected }; /* we can tell apart, but carry no information */
struct connected_or_disconnected { event_type kind; std::string payload; }; now you have both, i.e. you have unrolled a variant<connected, disconnected>
 
Ok, and the purpose of this is to reduce the number of symbols?
 
@PatrickM'Bongo kinda, if you look at the graphs there are still plenty
the big saves are in compile-times and RAM usage
 
4:45 AM
I mean is there any functional advantage otherwise
 
nope
information is information
merging different things into one type makes thing less readable for my money
@PatrickM'Bongo or maybe there is: does 'I can compile my program' count as 'functional'?
 
@LucDanton Right. Speaking of which, do you know of a variant implementation where I can tag each type with my custom index (for example your enum event_type), and get that as a .which()? IOW if (variant.which() == event_type::connected) ...
@LucDanton No
But nice try!
 
if you look at the graphs I didn’t plot anything for the 'before tuning' case in the third TU
that’s cos I ran out of RAM
@PatrickM'Bongo no
 
Can I ask whose mom you're compiling
 
4:58 AM
@Mysticial well the idea is that on average every 4 samples the if condition is true and the voxel data is reloaded
this is a poor attempt at caching what i can in a cache-unfriendly alrgorithm
 
@iksemyonov So 1 in 4? That would explain it.
 
data is a 512x512x312 3d array
 
198 and 199 are suffering from what is called store-forwarding stalls.
 
voxel is a, well, voxel, a cell in that array
wait, 1 9 8 or 1 8 8?
 
If the if-statement went in 100% of the time, then the bars on 198 and 199 would 4x larger.
 
5:00 AM
because the longer bars are at 187 and 189
 
And the cache miss inside the if-statement may actually be going all the way to memory.
 
it does
 
When I looked at it the first time, I failed to consider that the branch isn't always taken and that what's inside is actually smaller than it appears since the branch isn't always taken.
 
it's a 512x512x512 array, where i want to fetch adjacent 8 points in space, in a cube shape
the strides are then 512 elements or so
 
The problem inside the branch is that you're writing to voxel as scalars. But on 198 and 199, you read from it as a vector.
 
5:02 AM
yes? i declare it as aligned to 16 bytes
 
Current processor can't coalesce accesses like that. So the load will stall for 20+ cycles.
 
and intend to load from it into a vector, the order is specifically arranged so i can just load serially
sorry, why is that?
kinda missed the exact reason
 
@iksemyonov If you load from memory that was just written to as smaller writes, the processor can't handle it.
 
ohh, so it's not like in the matrices where i loaded massive consequent amounts of data
but, again, that would be the stalls at 198 199
while the 5-second long ones are at the beginning?
 
The 5 second ones at the beginning are cache misses.
The ones on 198 and 199 are the store-forwarding stalls.
 
5:05 AM
in a funny order right? because the first 5 second one is right at the computation of the base address
 
Stop looking at the source code. Look at the assembly.
 
and i can't understand why a few multiplications and additions would take 5seconds
 
@Aaron3468 that’s for the runtime representation and performance, not compilation time. sadly I ran out of containers so it’s only a 6-chain, but you can time this if you want
 
@Mysticial i see mov, mov, movl for 187
while all the other 8 loads look like movssl
to my uneducated eye, they differ a bit
the first cache miss is at 189 and it's a movsxw
right?
 
I can’t imagine the compile times will grow up fast though, what’s costly in C++ is (presumably) the type-checking as well as the actual code generation but in Rust the type-checking is only done once per item (cos it’s sane)
 
5:17 AM
@Mysticial also, the next feature that i'm about to add involves loading a 4x4x4 subarray, do you think it might give better performance in the sense of "If you load from memory that was just written to as smaller writes"?
 
5:27 AM
@iksemyonov I don't know enough about your algorithm to be able to comment. All I can do by looking at your VTune profiles is explain why each bar is the way it is.
 
@Mysticial sure i understand
what i meant is that if i changed scalar loads to vector ones inside the branch, would that change the situation with accesses
 
Can you get rid of the branch?
 
I just realized that "corporate greed" is just regular operation of non-human entities without human values trying to maximize their utility function.
 
i don't want to cause it prevents excessive ram access
or, l3
 
Corporations are paperclippers without superpowers.
 
5:30 AM
@Mysticial if i explained you a bit about the algorithm, would that be ok?
btw, i've realized how to kill the first div
i'll take the reciprocal out of the for loop since it's a constant in the scope of the said for loop
 
Can't say I'm interested right now since it's bed time.
 
sure no problem, you've helped a great deal already!
thanks a lot for the help
i don't even know if it's alright to discuss this stuff here in the c++ room but right now it's quite empty so probably it's fine
@Mysticial ^
 
5:50 AM
@R.MartinhoFernandes Paperclippers...?
 
Oh, yeah.
 
@Mysticial My impression was that if it is about the people at all, it is about brainwashing the right people. Let's not have any pretense that US presidential elections are democratic.
Ok, time to dive into Rust's FFI.
I spent some of the last two weeks playing around with C++'s. Should be interesting to compare the two.
 
Xeo
6:18 AM
How come you're mingling with Rust now?
 
Hack days project at work.
 
Xeo
ah, cool.
Reminds me, hopefully I can do home-office InnoDay on Friday again
 
Gonna replace the serialization code in our project with a Rust version.
 
@R.MartinhoFernandes If you learn anything neat, let me know.
I need to compile my language to the GPU.
Since there's no standard cross-platform GPU kernel, I have to either write LLVM IR and link in C code calls to talk to Vulkan and Shit,
or write my compiler in a language that's not Ocaml + OCamllex + OcamlParse + Ocaml.LLVM
 
Hey
I'm gonna do a mock interview question but I have to give one too
I'm not sure what type of question I should ask...
 
6:34 AM
Hmm, I think I have to marshall Result by hand. That's awkward.
 
user1804599
6:46 AM
@R.MartinhoFernandes ez
 
Ven
Hi
 
user1804599
Someone should write a C backend for Rust. That makes FFI nice.
 
@R.MartinhoFernandes ooo. Nom nom nom :) Interesting. Does the current code use any particular library? What will the gain be?
 
Ven
@rightfold if only rust used, like, LLVM
 
@sehe No gains required. It's just experimentation.
Jul 6 at 16:28, by R. Martinho Fernandes
At my new job, after each quarter they have a week of "hack days", where developers can basically do whatever they want. Explore new technologies, write PoCs for features that never get scheduled for various reasons, etc.
 
6:52 AM
Surely there was a motivation to replace /this/ particular bit
 
Oh, not sure. A colleague picked this part.
He put up his idea in the hack list, and I joined.
We use Boost atm.
 

« first day (2173 days earlier)      last day (2772 days later) »