« first day (1626 days earlier)      last day (3327 days later) » 

3:00 PM
the problem with treating the underlying bytes as a way to hash an object isn't just because of padding between data-members, but also that there could be padding "within" an intrinsic types themselves (since the standard allows this)
 
ITT Bartek complains
 
user1804599
Shit, I forgot a keyword.
 
@LightnessRacesinOrbit I need to marry that living being
 
can you create a bookmark in the chat, while ignoring some messages that are irrelevant to the conversation?
 
3:02 PM
@FilipRoséen-refp no
 
@LightnessRacesinOrbit damn it..
 
I'll send him a pull request with that fix
 
@BartekBanachewicz sounds like a smart thing to do. Hope your IDE retains the layout history. So you don't have to manually open those tabs again. (Also: who uses tabs?!?!?!?!? Use spaces!)
 
> “At seven, I would tell my mom, ‘You need to get more bang for your buck.’”
Heavens. Sexualisation of children is rife in the USA, I see!
 
3:02 PM
@sehe nice
 
@LightnessRacesinOrbit Almost worked.
 
Ctrl-T - Opens new browser tab
Ctrl-S - Opens new browser space
 
@LightnessRacesinOrbit 4/10 for effort, 8/10 because it's against the best (and only)country on earth
 
ok
wtf is a "browser space"
> Taylor’s artistic roots trace back to the ripe age of 8, she says, when she began incorporating “mixed media” into her finger-painting.
 
Probably a window
 
3:06 PM
giggle
 
Noob question: does it make sense to use unsigned char to represent RGB components? I hear unsigned is bad, so perhaps I should just use ints?
 
@AndyProwl what do you want to do with them?
 
@AndyProwl yes it does
 
you probably need two variants: float and uint8_t
 
@AndyProwl if you care about them being laid out in 8 bits...otherwise
 
3:07 PM
@BartekBanachewicz just represent RGB component, 0-255
 
@LightnessRacesinOrbit what
 
@AndyProwl you don't want to be doing some operations on 0-255 range. What do you want to do with them?
 
@AndyProwl unsigned arithmetic doesn't behave as needed for that. (Neither does signed, though.) As long as you are aware of that, it's ok.
 
I tried atom as a new text editor. Damn.. relying on the "community will code all the features for us" is kinda failing.. next and previous buttons crash (with the most upvoted plugin), I can't remember panes or files if I close down the application and when plugins update automatically there's a good chance that errors will cause the entire editor to crash
 
3:08 PM
@BartekBanachewicz I want to read those values from a file and eventually convert them into cinder::Color (which uses float components). I just want a library-independent representation
 
@AndyProwl so you want to store texture data, so to say.
a library independent representation would be PNG
 
@BartekBanachewicz Pretty much, although it's just color, not texture
 
@LightnessRacesinOrbit why's float funny? :/
 
@melak47 cos lol
 
3:09 PM
@AndyProwl if it uses float components, to store it you need to serialize floats
 
@BartekBanachewicz I don't need to store/load images. I have a data structure (a "block" in my game) that has a few properties, among which color
 
does it use HDR color?
 
what's HDR?
 
3 mins ago, by Andy Prowl
@BartekBanachewicz just represent RGB component, 0-255
 
high dynamic range
High-dynamic-range imaging (HDRI or HDR) is a set of techniques used in imaging and photography to reproduce a greater dynamic range of luminosity than standard digital imaging or photographic techniques can do. The aim is to present the human eye with a similar range of luminance as that which, through the visual system, is familiar in everyday life. The human eye, through adaptation of the iris (and other methods) adjusts constantly to the huge dynamic changes ubiquitous in our environment. The brain continuously interprets this information so that most of us can see in a wide range of light...
 
3:10 PM
Don't think so, I just need a plain RGB color
That picture is cool
 
(In a scottish voice) Look Wha' I Foun'!
1772
Q: How do I remove a Git submodule?

R. Martinho FernandesHow do I remove a Git submodule? By the way, is there a reason I can't simply do git submodule rm whatever ?

 
@AndyProwl that picture can't happen in real life
 
Yeah it doesn't look very real
But it's cool
 
Just have a specific class that stores them as unsigned and don't allow math operations on them
 
3:11 PM
@R.MartinhoFernandes I was looking for git stuff.
 
@AndyProwl anyway, the point in HDR is to be able to calculate lights brighter than 1, so to say
 
well, since you're already going to convert your colors to float...might as well store them as half precision floats in the mean time, maximum conversion fun!
 
a flashlight and a sun can both be white (255,255,255), but the sun is mich brighter
 
All right, thank you guys
 
@Moshe Why Scottish?
 
3:12 PM
@AndyProwl Funny, because the point of HDR photography is to be more faithful to the way the eye views things.
 
@R.MartinhoFernandes It's amazing how many amateurs completely fuck that up
 
(In practice it's just hipsters tone-mapping the shit out of everything)
7
 
Btw my question reminds of this:
Mar 26 '14 at 10:48, by Lightness Races in Orbit
@Bruce I'm writing a website. Should I use char or int?
 
@R.MartinhoFernandes welp, it doesn't look like a real photograph
 
look at this bullshit for example
@R.MartinhoFernandes :D
 
3:14 PM
I like that photo
 
@Jefffrey That is curable, with early detection.
 
this one is cooler imho
 
just found this
Jan 2 '14 at 16:10, by Lightness Races in Orbit
user image
 
@LightnessRacesinOrbit Gosh.
 
funny how in video games HDR is used to make crap less fake looking, and in photography it does the opposite :p
 
3:17 PM
you should have seen the HDR in Two Worlds (1)
haha, that was a mess
I generally turn off HDR because it doesn't look nice in any game imo tho
HDR and bloom always go away
as well as motion blur
 
bloom is nice if it's not fake as shit fixed radius bloom. which it almost always is.
 
but seriously the HDR effect on water in Two Worlds was fucking broken
look at this shit
 
yikes
I wouldn't go swimming in that
 
how does that seem realistic it's a fucking NEON
 
Xeo
It's a river of light!
 
3:20 PM
@Xeo It's a river of shite.
 
^ Here's tasteful HDR
 
@AndyProwl use my template image lib
 
@LightnessRacesinOrbit Which city is that?
 
@Jefffrey is your snake going to be in 3D?
 
I don't even recognize my old code... ughh
 
3:22 PM
@BartekBanachewicz A more proper question would be "is your snake going to be?"
 
@Jefffrey are you planning on developing your snake in 3D?
 
Good grief, four years old and still not fixed! — Lightness Races in Orbit 5 secs ago
 
to snake or not to snake
 
@BartekBanachewicz Yes
 
But hey at least SO is getting its own fucking TV channel
@Jeremy New York City in the USA
 
3:23 PM
@LightnessRacesinOrbit wat
 
@Jefffrey k
so you both have 7 days
 
597
Q: An experiment: Stack Overflow TV

Matt ShermanStack Overflow is beginning an experiment called Stack Overflow TV, or SOTV for short. It will be a series of fast, smart videos for experienced programmers who want to learn a new thing. The videos will serve as a complement to Stack’s Q&A, and intended for that community. Of course, they will ...

 
damn it... I accidentally picked up the wrong rolling-paper, and now my smokes taste like crap
 
well 6.5 till sunday 2400
 
@FilipRoséen-refp "Smokes" always taste like crap.
 
3:24 PM
a part of my brain even thought "ah well, maybe this is a good time to quit smoking"
 
@LightnessRacesinOrbit Didn't recognize that view at all - looking from the east, I guess? I used to live nearby.
 
I like the way some games are doing the brightness blindness thing, so you get washed out screen for a moment when you go from a dark place to a bright place.
 
@BartekBanachewicz So 6
 
> With English lyrics in 3D!
Why would anyone want 3D lyrics
 
@ParkYoung-Bae Because bored developers
 
3:24 PM
@LightnessRacesinOrbit I'm not sure why you put it in quotations, but to suit your UK state of mind I can refer to my smokes as "fags" instead.. if that makes it any easier
 
@melak47 To snake
 
@FilipRoséen-refp heaven forbid you taste the death
 
wait.. maybe it isn't @LightnessRacesinOrbit that's from the UK?
 
@FilipRoséen-refp Mind bending, ain't it?
@Jeremy Looking from the West. Nice try, though.
 
@thecoshman I should have said that to the Jehovah's Witness girl that just knocked on my door
 
3:26 PM
LRiO is secretly from USA
 
I was however standing in my briefs at the time, so I didn't see it as a good time to open up the door
 
@Jefffrey anyway I think I have an idea that will allow me to get backends done
 
@Jeremy Specifically, the Meadowlands complex just over the water from Secaucus.
@Jefffrey Wouldn't that just flip your brain
@FilipRoséen-refp lol
 
did you guys know that The Watchtower is the most widely circulated magazine in the world?
 
3:27 PM
All along the watchtower
 
there must be some way out of here
please
 
53 000 000 copies (on average) each month? that's crazy, in more than one way
 
inb4 link to 'leave'
 
@LightnessRacesinOrbit Oh, that makes more sense.
 
3:27 PM
I could do
data ProgramState = forall gs. (Module GraphicsModuleInterface gs) => ProgramState {
    graphicsModule :: gs
}
 
@райтфолд > ISO C++ prohibits anonymous structs
 
@Puppy hey
 
uh oh
 
sooo....you know about llvm and stuff, right? :p
 
53 million.. let's just say that my mind is blown at this time
 
3:28 PM
how did I know that was coming
@FilipRoséen-refp 53 million bits of dead tree? I'm amazed they could sell a single one
 
@Puppy that's another thing.. it's not sold
 
it's in the ship
it's in the FFFRAKKING ship
 
no advertisement, no fee, no nothing.. just annoying people knocking at your door
 
@Puppy spidey sense?
 
3:29 PM
frankly, I'm amazed they could give away a single one.
who wants bits of dead tree littering up the place?
 
I wonder how long it will take @Puppy to shake the crap associated with "DeadMG"
 
@melak47 What's the question?
 
I'd be more concerned with the crap he's accumulated as "Puppy"
 
@LightnessRacesinOrbit true dat
 
user image
6
BET YOU CLICKED ON IT
 
3:31 PM
@Puppy I was following this basic LLVM getting started thing, use an IRBuilder to build some IR, and I had a looksie at your stuff to figure out how to like...turn that IR into an executable? but you seem to target ming32? :S is there any (easy? :D) way to just make it build an obj file/executable with vc++? :/
 
racist profiling is wrong, but profiling based on the use of programming languages isn't.
 
@melak47 I think that you can ask LLVM to output a COFF file that you can then link with link.exe.
but the answer is no, because LLVM currently completely depends on external tools for the linking stage.
 
but clang-cl knows what do do :(
 
comments are quite funny btw
@FilipRoséen-refp racial profiling isn't wrong
 
that's because clang-cl doesn't actually have to do anything.
 
3:33 PM
hmph, yeah I guess.
 
@LightnessRacesinOrbit certainly depends on what kind of profiling you do.. so yeah, you got a point
 
all it has to do is output an object file at the requested location and let the existing MSBuild infrastructure and other tools handle all the rest.
 
Xeo
@Puppy Oh, lld still not ready?
 
I think that it's getting closer
but not done.
 
llvm::Triple target_triple;
const llvm::Target& target = *llvm::TargetRegistry::lookupTarget("x86", target_triple, err);
target_machine = std::unique_ptr<llvm::TargetMachine>(target.createTargetMachine(target_triple.str(), target_triple.getArchName(), "", target_opts));
std::ofstream file("D:/llvm/out.whatever", std::ios::trunc | std::ios::binary);
llvm::raw_os_ostream out(file);
llvm::formatted_raw_ostream format_out(out);
target_machine->addPassesToEmitFile(pm, format_out, llvm::TargetMachine::CodeGenFileType::CGFT_ObjectFile);
 
3:35 PM
that looks pretty familiar
 
I cobbled this together, trying to use the native target thing...but I get zero output :/
yeah stole 99% from you :)
 
how do I store a monad context
 
what's module got in it?
 
a main, a string, and a puts declaration
 
did you remember to declare your main as external
 
@LightnessRacesinOrbit I don't have a physical licence of any sort. It disappeared when my wallet got boosted at Stansted some 11 years ago. I never bothered to go through the misery applying for a replacement. I guess that, eventually, I'll get caught by some motoring offence that requires me to 'present' :(
 
also, you clearly did not actually set your triple to anything, so how are they supposed to know what format to output as?
if I had to guess, I'd say that it's erroring and you're just not inspecting their shitty out parameter error handling.
 
@MartinJames Or you'll need to hire a car, or use a garage's courtesy car.
 
@Puppy, I thought the triple lokup thing looks up the x86 target and gets me the triple into the triple ref I provided
 
don't think so.
 
3:37 PM
@FilipRoséen-refp most people think racial profiling is wrong but they are wrong
> former Doctor Who star Karen Gillan won best female newcomer for her work in Guardians of the Galaxy
what
she was utterly terrible
 
@LightnessRacesinOrbit I've hired cars, no problem. I use ID and my driver number, the hire co. look it up at DVLA, they give me the car.
 
in fact
 
@LightnessRacesinOrbit I agree with you
 
it says here that I don't pass any string into lookupTarget.
just the triple and the error.
 
3:39 PM
x86 is not a target or a triple anyway, since there's a bunch of environment, subprocessor, etc stuff that's a part of the triple.
 
I guess this triple does look a bit broken...
 
yep.
 
but I don't have any others ._.
 
> Organisers of a friendly match between El Salvador and Argentina have apologised for wrongly playing the anthem for the Isle of Man.
hahaha
 
I tried to initialize all the architecture things...but only native target works. the others aren't built/linked :/
 
3:39 PM
> Ellan Vannin - the Manx name for the Isle of Man - and El Salvador are next to each other on a list of anthems.
oh dear
 
type GraphicsModule = Int -> (IO (), m (Int -> (IO (), -> ...
damn it
so close
 
well that only occurs if you failed to build LLVM correctly.
I have to admit that their target system is bullshit but that's an independent matter really.
 
LLVM_DEFAULT_TARGET_TRIPLE is i686-pc-win32 apparently. whatever that is.
 
32bit Windows VS, I believe.
 
LLVM_TARGETS_TO_BUILD = all
shouldn't that be fine?
 
3:42 PM
dunno, I never had a problem with LLVM not being able to find a target.
 
all the LLVMTargetThingCodeGen.lib etc's seem to be generated, do I have to add each one manually to the list of things to link?
 
time to write some code.. ploff
 
yes.
you have to link every library that's built by the LLVM build, obviously.
there's a giant list in Wide's build script.
 
I assumed "Target" would contain the targets. silly me
 
nope
those are in-order for Linux LLVM 3.5, by the way, for Windows order doesn't matter so.
 
3:46 PM
do I remove the LLVM prefix? in the cmake crap they don't seem to have that
 
I think that their build process adds it implicitly.
you need to keep it.
 
@melak47 are you doing a normal build configuration with CMake or some special stuff?
 
how often do you guys take breaks when on a computer
 
@MarcoA. I have no clue about cmake, so...I dunno
 
@Pris Thanks, but I don't want to overengineer this thing too. It's really just about storing 3 RGB components and deciding whether to use an int or an unsigned char.
 
3:47 PM
LLVM's cmake stuff.
 
@Pris not nearly as often as I should
 
@melak47 that isn't going to work..
 
@MarcoA. pff
 
my break from a computer generally involves looking at a different computer for a few minutes
 
@AndyProwl FINE! one day someone will use my code an then you'll be sorry!
 
3:48 PM
@melak47 To snake!
@Pris lol, ok
 
In all seriousness, how is working with Cinder? I've wanted to try it but I don't think it supports Linux
 
@MarcoA. Works fine for me.
 
People do lots of cool visual art hipster stuff with it, like OFX
 
@Pris it has silly API
 
What does this have to do with the error OP is getting (terminate called after throwing an instance of 'std::bad_alloc')? — Borgleader 56 secs ago
 
3:50 PM
@Pris Some things are nice, others are awkward. Documentation could be much better
 
initialGraphicsModule :: GraphicsModule
initialGraphicsModule = Module $ do
    render
    return ((),
 
23 hours ago, by Andy Prowl
fuck you Cinder why do you have drawTorus() but not drawCone?
etc
 
what now
 
Yeah those are the awkward things
 
I have to return a new module
updated one.
newtype Module m a b =
    Module (a -> m (b, Module m a b))
this is melting my brain
think bartok think
 
3:53 PM
@LightnessRacesinOrbit Because I just finished watching Broadchurch on Netflix and David Tennant is awesome. Even if the show was a bit dark.
 
Yeap
 
I have 4-nested loops.
 
is it ironic that I'm learning how to use char* and forgetting how to use std::string thanks to OOP class?
 
are you bragging
 
3:55 PM
Old McDonald had a farm ee-eye-ee-eye-oh. And on his farm he had four nested loops, ee-eye-ee-eye-oh.
 
@DonLarynx It's too common.
 
I am compelled to not #include <string> and just stick to char[]
 
@R.MartinhoFernandes could you help me with that signature above?
 
@R.MartinhoFernandes :(
 
for(int nw = 0; nw < 2; ++nw)
for(int ne = 0; ne < 2; ++ne)
for(int sw = 0; sw < 2; ++sw)
for(int se = 0; se < 2; ++se)
    make(nw, ne, sw, se);
 
3:56 PM
@BartekBanachewicz who the fuck is Bartok
 
There should be a better way.
 
@DonLarynx By what? Stupidity?
 
@BartekBanachewicz What about it?
 
@Moshe Did you know, your hero was born David MacDonald
 
@R.MartinhoFernandes I can't write a body that would fit it
 
3:57 PM
@R.MartinhoFernandes lol
so hungry
 
@LightnessRacesinOrbit bartok is improved strtok
 
I understand that a module takes some a, produces some b, and does it under some (possibly stateful) monad m, hiding that monad
 
@R.MartinhoFernandes You beat me, I have three. But the innermost loop contains an if.
 
@LightnessRacesinOrbit Yes, my brother told me it had to do with a union rule or something.
 
but I don't get how would an implementation of it look like
I need to provide initial state and every invocation is supposed to produce a new module
so I need a function that creates a module that holds a function that can create a module that holds a function
 
3:59 PM
@R.MartinhoFernandes Have a counter from 0 to 2^4-1 and decompose it?
 
Probably fixpoints
@ParkYoung-Bae Over the network
 

« first day (1626 days earlier)      last day (3327 days later) »