« first day (1743 days earlier)      last day (3204 days later) » 

user1804599
3:01 PM
According to SPJ, using locks and condition variables is like building a skyscraper out of bananas.
 
@chmod711telkitty This is actually one of my favorite posts by you
 
star bait ... unable to resist ... finger attracted to the mouse button ~click~
@buttifulbuttefly you did not happen to downvote, did you?
 
I upvoted that one. And favorited.
 
<3
why sometimes I can read deleted message history & sometimes I can not?
 
Ell
@Nooble why?
 
user1804599
3:09 PM
LOL
 
user1804599
ROFL
 
user1804599
N00B
 
user1804599
OMG
 
user1804599
WTF
 
@chmod711telkitty You can read only your history
 
3:12 PM
nope, I am sure at one stage, I was able to read others history after they deleted the message
ITT, we are all guinea pigs on SE
 
Ell
I think if I wrote a language I would support unnamed members
what do you think @rightfold
accessing a member just by it's type
vertex_buffer vbuf; seems silly
 
user1804599
you don't write a language
 
You write a spec
 
user1804599
also it depends completely on your goals and what your language is like
 
user1804599
you can't say much about features in isolation
 
3:17 PM
@Ell what if you have many members of the same type
 
Ell
@chmod711telkitty then you can name them
 
user1804599
Go has something similar but the other way around.
 
user1804599
Hello
 
wow that user profile page
my eyes
 
3:19 PM
Did someone get trolled?
@buttifulbuttefly I'm sorry
 
Are you unidoggy or plantsguy?
 
@buttifulbuttefly NO!
Want to flag something?
0
Q: don-gamemeneer-cool

gamemeneer <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

 
@Ell I've always eaten well-done steak and medium-rare seemed mushy.
 
@Nooble y u not on Mumbel
 
@UnicornsAreVeryVeryYummy Looks like you flag just about everything.
@nabijaczleweli Not home.
 
3:25 PM
@Nooble y u not hoem
 
@nabijaczleweli Groceries!
 
@Nooble y r u groceries
 
@nabijaczleweli So awesome.
 
@Borgleader Fun fact: this is the only occurrence of that number (from URL) in the history of the Lounge
 
Can't wait to get home and type on that new keyboard.
CLACKITYCLACK.
 
3:32 PM
And get on Mumbel
I need to yell at you (j/k)
What compiler are you using? — Cicada 9 mins ago
 
Cicada?
Can it be?!
 
> Communities (1)
> Arqade
prolly not
 
Sekayda.
What a weird way to pronounce it.
 
Sikada
topkek
 
Ell
sicarduh
 
3:41 PM
Kickada
 
does this not look like a picture of a gay couple - a man and his husbandly cat
 
Hm, if local integer variables are allocated in registers. Could replacing some 64-bit ints with 32-bit help to avoid register spilling?
If you have many local variables for some reason..
 
@StackedCrooked No, the compiler doesn't pack small integers together in registers
 
3:50 PM
You have to do the packing yourself
 
you can't perform 32-bit instructions on the "non 32-bit half" of a 64-bit register?
 
Yes you can but you can't control which half
Only the lower part is named
 
No, you can only do it on the lower half. The upper gets zeroed then
 
@buttifulbuttefly and with manual asm?
@Deduplicator ah
 
No, in RAX only EAX has a name, there's no way to say "I want the upper RAX half"
 
3:51 PM
Thanks. That's exactly what I wanted to learn :)
 
That being said you can do the packing yourself at the expense of more complex code
 
have you experience with asm?
 
I'm rusty
 
I've only looked at asm..
Intensely though :)
how does one write asm nowadays? in an inline asm block? or a separate file? or intrinsics?
 
user1804599
@StackedCrooked swap the halves first!
 
user1804599
3:54 PM
@StackedCrooked either asm or a separate file, depending on your needs.
 
Intrinsics are preferred unless the instruction is not available as intrinsic, then inline asm
 
std::swap(reinterperet_cast<eax*>(rax), eax)
 
The compiler can optimize intrinsics better than inline asm
 
user1804599
If you need custom calling conventions or weird machinery incompatible with C++, you probably need separate file.
 
@buttifulbuttefly I see.
 
user1804599
3:56 PM
Objective-C's dispatch function is written in assembly because it must jump to another function without touching any of the registers that are used to pass arguments.
 
user1804599
It can't be inline assembly in a C function.
 
There's a boost simd library in development iirc.
 
Xeo
@CatPlusPlus So, how far are you right now?
 
@StackedCrooked It's probably better to spill to SSE registers.
 
Doing stupid Angler quests before hardmode
 
Xeo
3:57 PM
whoah, not even hardmode yet?
surprising
 
@Mysticial cool..
erm, how do you do that?
I'm too noobish to ask probably :P
 
You don't. You hope the compiler does it.
Unless you want to use intrinsics directly. But then you're making big assumptions about what the compiler can or can't do with just normal registers.
 
user1804599
@StackedCrooked write your own compiler.
 
@Xeo Didn't need that armor anyway
(its dumb)
 
I found that it's pretty hard to spill general purpose registers unless you're streaming a ton of pointers.
 
3:59 PM
I have a supposidly pregnant spider on my window sill, wat do.
 
Burn it
 
I don't have anything that instantly releases enough fire in a spot to burn a spider.
I could slowly burn it with a lighter, but a lighter isn't all that flamy, it might run or do something.
 
@Vanitas Your house is poorly equipped then
 
@CatPlusPlus Apartment* and yes, you could say that now that I think about it..
 
how is spidar formed
 
4:14 PM
like a babby
 
Ell
TIL about section 75
 
I burned it, and it smells awful.
 
What did you expect, really?
 
I didn't expect such a small thing to smell this bad.
3
 
@Vanitas Are you begging for an out-of-context star?
 
4:19 PM
@columbo I'd like a star, but were it to happen I'd prefer to have a star on something like "bukkake" or something with a sexual theme to it that.
@columbo or something controversial.
 
@Vanitas Oh, so you like sex?
 
@columbo Sometimes.
 
sometimes lol
 
0
Q: Design a keylogger in C using far pointers

Katie StoneI am trying to make a simple keylogger in C-language.So I decided to use a far pointer to access the keyboard buffer.(32 bytes, address- 0x41E).I just assigned that address to a far pointer and tried to access the buffer.But the code I typed is showing only these 3 characters- a smiley,@ and lots...

 
user1804599
Is there something like std::float32_t?
 
4:30 PM
stdint.h?
 
arent floats 32 bit by default anyway?
 
user1804599
@ChemiCalChems No. It's implementation-defined.
 
user1804599
@Vanitas yay
 
4:30 PM
in most os it is though, right?
 
Yay, indeed.
 
user1804599
I have an integer n and an integer o and I want the smallest integer p such that p >= n and p % o == 0.
 
n=0;o=1;
p=1
 
the memories
hey Scott
boring
I'm bored today
I'm listening to Rammstein
been a while
muh, effort
 
4:39 PM
Or play vidjagams
 
@TonyTheLion looks like a pretty chill guy
 
what to do when hopes and motivation for a project have been lost
 
@nick he used to be a lounger
many moons ago
 
its not even written in c++
 
rip brother Alok
 
4:40 PM
and c++ is my main language @ScottW
 
@TonyTheLion do you know what he's up to now?
he must have a lot of time on his hands if he doesn't come here anymore :P
 
@nick nope
 
oh shit
 
funny how some people just fade out of your life and you don't realize they're gone until much later
 
i really don't even know what to do by now
and there is so much to do
 
4:41 PM
shit just got super philosophical
 
@nick yeah, that happens a lot
rip in rest
 
@ScottW :')
 
lol @ScottW
 
say mine too
well, when i die
 
my last words will be segmentation fault, heart dumped
 
4:43 PM
@ChemiCalChems haha
 
id really laugh if someone said that and then died
it would be so hilarious
@ScottW it would be so damn hilarious
mumble? why not team speak?
anyway, whats the ip?
 
loungecpp.sehe.nl
 
thanks
 
np m8
 
wil get there when finished installing package
 
4:46 PM
@nick That's not the IP, that's the host
 
same difference you wanker
 
@ChemiCalChems 74.207.226.156
 
why would you use the IP when we have things like domain name servers?
 
@ScottW lemme see
 
cuz that's what DNS is for
 
4:48 PM
Can the DNS' results be cached?
 
true we gotta optimize everything we can
 
(form a practical standpoint)
 
@nabijaczleweli yes but it still takes work to access the cache
 
If so, for how long?
 
don't be silly
 
4:49 PM
@nick Not if you fit it all in the cache
Just like that, you slut
 
like that's a whole 1 cpu cycle just to fetch an IP
when you could have just typed it in yourself
 
user1804599
Guys.
 
@rightfold Present
 
user1804599
I have N mutexes and I want to lock the first one which is free and know which one that is.
 
try_lock?
and manual unlock?
 
user1804599
4:51 PM
No. try_lock will spinloop if all are locked.
 
Xeo
you'd need something like std::lock_any
which doesn't exist, obviously
 
user1804599
Wait, I know.
 
user1804599
I can just use a queue instead.
 
user1804599
Dequeue, use object, enqueue.
 
5:02 PM
@rightfold Why? What are you actually doing that you need this?
 
user1804599
12 mins ago, by rightfold
Wait, I know.
 
user1804599
This means that I don't need it anymore.
 
user1804599
hth
 
@ScottW Hi I'm in a car.
My excuses are now instant.
@ScottW Are you on?
 
@Nooble There are 6 people on rn
 
5:11 PM
Ugh.
The only time I'm on is when no one is there :(
 
Including a spanish guy
 
Except nab <3
 
I'm always there for you bby
 
nab is your name polish or something
 
it's not an actual polish name, but it's composed of polish mostly
And pronounciation is polish
 
5:14 PM
i want this
 
Ugh
ugly
 
but its so $$
 
Mouse.throwException(ugly);
 
really you think its ugly? man at least it doesn't more lights than a christmas tree
NEW! 16 MILLION COLORS POSSIBLE! I dont give a shit its a mouse stop charging me for LEDs and their controllers god damn
 
I'm rolling a Logitech Canada310 and it's like the perfect mouse, while being super-basic and generic
 
5:16 PM
@Prismatic kinda wanted to get it but i dunno
the gold details don't match my black/aluminum rig
 
i just need a normal mouse
 
I like thumb buttons
 
just a keyboard really
keyboard shortcuts ftw
 
5:31 PM
@TonyTheLion Flonk Pish.
 
ohai Jerry
how's you?
 
@Mysticial btw, do you make use of GPU for your pi calculations?
 
no
 
no benefit?
 
It's communication bound.
Also, GPU requires a completely different programming paradigm.
 
5:35 PM
all i hear are excuses ;)
 
:)
 
'scuses
 
I see. GPU is more than just a bigger vectorizer?
 
you know, if a GPU can draw a circle, i bet it could calculate pi real well
logic
 
if you draw a big enough circle...
 
5:36 PM
@Mysticial what about on on cpu gpu? that uses main ram, wouldnt that avoid some of the problems?
 
Ell
Irrational numbers are crazy
 
I can calculate 3/4 because I'm a rational person.
 
@Ell not sure if pun...
 
Ell
Not pun
Idk how they can exist
 
@TonyTheLion Oh, pretty decent. Starting to get used to having my family around again.
 
5:37 PM
They simply don't align with the decimal numbering system.
 
@JerryCoffin oh nice :)
 
There's several problems with GPU with now:
1. Computations are already starved on CPU <-> main memory bandwidth. The PCIe bandwidth is much less than that. The main memory <-> disk bandwidth is an even bigger bottleneck.
2. GPUs have very shitty throughput for double-precision and 64-bit integers. It's worse than CPUs except for Tesla and Titan cards.
3. Completely different programming paradigm. I'm not going to rewrite 250k lines of code.
4. GPUs don't have enough memory to do anything useful on it.
 
Ell
The fact that they are infinite makes me uncomfortable
 
Are there numbers which are irrational in decimal, but rational in other base?
 
Ell
But maybe I've been listening to too much Norman j wildberger
@StackedCrooked No
That only occurs with rational numbers
 
5:39 PM
@StackedCrooked No. There are rational numbers that can't be represented precisely in decimal but can in other bases though.
 
@Mysticial Seems strange that memory is such a bottleneck when you are just calculating a number :)
 
@StackedCrooked When the number doesn't fit in memory, it's a bottleneck. :)
 
would the software be similar if your did square-root of 2 or e?
 
And I forgot to mention, carry-propagation doesn't vectorize very well.
 
@StackedCrooked Actually, I suppose I should revise that slightly: if you used a base that was itself irrational, then it could be. For example, if you used Pi as the base, then Pi would be just 1.
@StackedCrooked IIRC, y-cruncher already does e.
 
5:41 PM
@StackedCrooked It's the same back-end.
Btw, Knights Landing Xeon Phi host-processor will solve #2, #3, and #4.
I don't know about #1 though.
 
does the program generate a constant stream of digits, or is there variance?
 
There's no constant stream. You're constantly touching all the data until the end.
 
@StackedCrooked There are algorithms that can generate streams of digits (generally known as "spigots"), but they're (quite a bit) slower.
 
For example, when you take a square root, most of the output bits depend on all the input bits. If you have an algorithm that iterates square roots, you constantly need to access all the memory.
 
ah, so it can't be divided into chunks that can be uploaded to a GPU
 
5:44 PM
No
 
i see
 
Well you could, but you'd constantly need to send all the data back-and-forth.
 
if you need to access all the memory all the time, doesn't that mean you suffer cache misses constantly?
 
Basically, the computation/memory access ratio is far too high for a GPU to be useful.
@StackedCrooked Depends. If there is enough bandwidth, then the prefetchers will have it ready all the time. If there isn't enough bandwidth, then you'll be waiting the whole time.
On Haswell-E, there is usually enough CPU <-> main memory bandwidth to keep up.
 
so I suppose you have to keep the data structures very compact
 
5:47 PM
On mainstream Haswell, there isn't.
 
So, how you enjoyed the time? :D
 
seems like quite a challenge :)
 
@StackedCrooked Even with every single cache optimization, there isn't enough bandwidth.
That said, mainstream Haswell isn't completely memory bound. Historically, the program has been CPU bound. But Haswell is the first generation where the computation is fast enough that the memory bound portions of the computation are having a noticeable effect on performance.
 
user1804599
Haskell.
 
Ell
don't gpus have a much greater memory bandwidth?
 
5:52 PM
Swap mode computations using disk have had an IO bottleneck since antiquity. That's really the one I care about.
 
user1804599
 
@Ell They have huge bandwidth to the memory onboard the GPU. As soon as you need more than that, they have to go over PCIe, which is drastically slower (not only slower than access to onboard memory, but much slower than the CPU's access to main memory).
 
@Ell Inside the GPU yes. But not going to main memory.
 
Ell
@rightfold man I hate this guy
 
user1804599
I don't.
 
Ell
5:53 PM
I wonder if I can construct a multiarray from existing data
 
@Mysticial so I assume distributed processing is not an option
 
@StackedCrooked Yeah. Similar problems.
 
@Ell can you create it from non-existent data?
 
existence has been proved
 
Ell
@StackedCrooked yah
Oh wait
 
5:55 PM
In a super-computer with fast interconnections, it's doable. (not without a complete redesign and rewrite of the entire program)
 
you create the array, you copy the data into the array
 
In distributed computing, you'll need everyone to have an internet connection that's faster than their disk IO bandwidth.
 
@Ell or did you want a array-view overlay on top of the data?
 
Ell
@StackedCrooked that is what I meant :)
 
And you need redundancy if people leave unannounced.
 
5:56 PM
Hahaha that guy comes back from ban and gets flagged in another room
this is hilarious
 
@buttifulbuttefly
 
user1804599
I need a new project.
 
user1804599
Help!
 
Write a project idea generator
9
 
Ell
5:57 PM
^totes do this
 
@Abyx Reeeepooooost
 
^ that's about aliasing constructor: shared_ptr(const shared_ptr<Y>& r, T *ptr )
@nabijaczleweli didn't see that on the starboard.
 
@Ell create a class that takes a pointer to your data. Implement operator[].
 
Ell
@StackedCrooked It's okay, it appears to exist already :)
 

« first day (1743 days earlier)      last day (3204 days later) »