« first day (3698 days earlier)      last day (1233 days later) » 

4:08 AM
Talking about covert sexism, there was one guy who thought that I have co-founded my A.I. in Robotics group with some other dude. Yes, I have had a lot of help on the way and was assisted by people who were more knowledgeable than me in the field. But I have founded this group by myself, being the only one paying for the fees and have personally organised most of the events.
Doing some studies before opening your mouth would make you sound less of an idiot!
 
 
5 hours later…
8:51 AM
> Doing some studies before opening your mouth [...]
That's not how sexism works x)
 
 
2 hours later…
10:31 AM
@Morwenn Wanna C some flowers?
 
I wanna C++
 
How about some tiny flowers?
 
scarlet pimpernel, clover and something else?
 
11:06 AM
You maybe right about scarlet pimpernel, not sure about the yellow and the purple flowers. All three are equally tiny >_<
 
11:22 AM
scarlet pimpernel is good to have in your fields because it fixes nitrogen IIRC
 
12:06 PM
@Mikhail Linus Tech Tips noted that awhile back, that apple appeared to be deliberately sandbagging performance even with the chips they had
 
I kind of want to know which order that stuff happened in. Like, did they design their current gen laptops with their ARM chips in mind already and just put in the Intel stuff as an afterthought, because their ARM hardware or software wasn't ready yet.
 
 
1 hour later…
1:19 PM
@PeterT I suspect they've been working on ARM since 2013ish honestly, while people point to the skylake stagnation I honestly think it goes back to Steve. I remember him saying that the iPad had a "desktop class processor" and thinking that Apple was going to make the move. I was only surprised that it took this long
actually longer... the announcement I remember that in was 2013, which means it's been planned for longer
 
 
2 hours later…
nwp
3:08 PM
Since when did MSVC disappear from godbolt.org?
 
@nwp it's still there for me
 
nwp
Weird. I only see clang, ellcc (whatever that is), gcc, icc and zapcc. Or am I dumb and ellcc is what I refer to as MSVC?
 
nah, its lists it as msvc for me, did you check some libraries not available for msvc maybe? Just try to clear your cookies
 
nwp
Clicking on More -> Reset code and UI layout fixed it. So many compilers, even MIPS.
 
3:37 PM
dpaste.org/3yr7 anyone got any clues for me? the dp is hard to set up, greedy didnt work
 
 
3 hours later…
6:34 PM
 
user7659542
7:15 PM
@TelKitty TIL sexism is all about doing research on someone's carreer/hobbys
 
user7659542
So apparently C has no way to loop/for each over every field of a struct.
 
user7659542
Does such a possibility exist in C++?
 
@traducerad not standard C++, there's a bunch of macro based approaches or other pre-processing to do it.
also there's multiple proposals in the works for static reflection in future standards versions
 
user7659542
I was expecting to find some crazy macro stuff for this in C. But even this does not seem to be available.
 
user7659542
(I just openefd 1 or 2 links)
 
7:21 PM
The only non-processing non-macro C++ solution is magic_get, and it's an incomplete one
 
@traducerad So, the C solution is to have them backed by an array to facilitate looping and then use macro magick to get members by name...
"No nonsense solution"
I wonder if there is some ungodly solution where you have a union, so that you have a union between a class with an array (for looping) and a class with named members
I spent the morning hacking python MROs to append classes. Are you proud of me?
 
user7659542
@Morwenn incomplete... like it only loops over 50% of the fields?
 
user7659542
@Mikhail i d rather not...
 
7:36 PM
@traducerad as in it works well fro aggregates and even more, but chokes on some classes of more complicated types
That said, it should work well for any C struct that doesn't use C++ features
 
I thought he was using C?
 
22 mins ago, by traducerad
Does such a possibility exist in C++?
 
user7659542
I use C, but was curious if it existed in C++
 
user7659542
as cpp often offers solutions for stuff where C lacks clean solutions
 
user7659542
So both explanations are welcome hehe
 
7:40 PM
One thing to consider is that there is some runtime cost to to this kind of pfr stuff? So if you have a class that for example represents a hot code path, may not be a good idea.
 
It has a runtime cost? I thought it was just utter template wizardry
One of its backends uses stateful template metaprogramming
 
@Morwenn probably still using offsetof under the hood
 
@Mgetz no git for offsetof in the project
 
interesting... because that's how the C folks would have done it per @Mikhail's suggestion
just loop over it and use offsetof and pray the padding doesn't mess things up
 
I know that it either uses stateful template metaprogramming, or some utility that converts to anything, or it hacks over structured bindings in the C++17 backend
 
7:49 PM
@Morwenn your hunch is correct
 
I wonder if accessor function introduces overhead. Macros would basically be inlined and play happily with vectorization...
 
user7659542
@Mgetz thx, now I feel bad I didn't think of this myself
 
@traducerad it's still ugly and doesn't work if the type has bitfields
I know this because I had to rip some out that was doing exactly that... because bitfields cause it to be UB
 
user7659542
@Mgetz I ve never needed to use bitfields
 
@traducerad you've never dealt with hardware registers?
I'm actually surprised
 
user7659542
7:51 PM
I ve actually never been in a situation where I though "Man, bitfields is the perfect solution here"!
 
I have, gotta get that memory foot print down. Actually right now...
 
bitfields are generally used for serialization or hardware registers
or in older code for memory footprint at the expense of access cost
 
user7659542
@Mgetz yes, of course. Lemme google that to see how I would have done it...
 
@traducerad you probably did it in ASM or just or'd it to gether
 
user7659542
@Mgetz yes I go for the latter
 
user7659542
7:53 PM
always
 
user7659542
train is about to arrive. Still a bus to take. I should be home in 40 minutes. I ll look it up then
 
Is the older code comment because on today's computers you can just download more ram :-)
 
@Mikhail nah because 64k was hard to work with... and staying within your local segment had huge performance advantages over a FAR pointer
technically I don't think C++ has a concept of a far pointer anymore
I'd be almost amused to see someone make a C++20 (mostly) compliant compiler for the 6802
 
Can you just port GCC? Isn't there a version for 68k?
 
no 6802 is 8bit
there is no libc
derp 6502
I'm an idiot
The MOS Technology 6502 (typically "sixty-five-oh-two" or "six-five-oh-two") is an 8-bit microprocessor that was designed by a small team led by Chuck Peddle for MOS Technology. The design team had formerly worked at Motorola on the Motorola 6800 project; the 6502 is essentially a simplified, less expensive and faster version of that design. When it was introduced in 1975, the 6502 was the least expensive microprocessor on the market by a considerable margin. It initially sold for less than one-sixth the cost of competing designs from larger companies, such as the 6800 or Intel 8080. Its introduction...
that said you could probably get a compiler for this
The W65C816S (also 65C816 or 65816) is an 8/16-bit microprocessor (MPU) developed and sold by the Western Design Center (WDC). Introduced in 1983, the W65C816S is an enhanced version of the WDC 65C02 8-bit MPU, itself a CMOS enhancement of the venerable MOS Technology 6502 NMOS MPU. The 65C816 was the CPU for the Apple IIGS and in modified form, the Super Nintendo Entertainment System. The 65 in the part's designation comes from its 65C02 compatibility mode, and the 816 signifies that the MPU has selectable 8– and 16–bit register sizes. In addition to the availability of 16 bit registers, t...
 

« first day (3698 days earlier)      last day (1233 days later) »