« first day (1230 days earlier)      last day (3736 days later) » 

user3010322
5:00 PM
When I run the thing in release mode on my computer, it works just fine. When I transplant it to a different folder, it doesn't work and I get the same error.
 
haha, harcoded external relative paths.
 
the programmer of that thing must be real bad ^^
 
user3010322
Running it through visual studio in Release mode also works.
 
user3010322
OH
 
user3010322
I see what I goofed up. I never sent you the assets. :D
 
user3010322
5:01 PM
Or rather, I never packaged the assets.
 
user3010322
Herpaderpityderp.
 
user3010322
VS automatically changes the working directories for you.
 
user3010322
@ScarletAmaranth Noow it should work: github.com/ThePhD/ThePhameDam/releases/tag/Morning-After
 
user3010322
Sorry 'bout that.
 
5:09 PM
@ThePhD Still doesn't start.
 
user3010322
Wah. Whyy. ;~;
 
user3010322
It legit works on my computer now!
 
user3010322
From anywhere.
 
5:12 PM
I have a BONUS for you guys
Whoever wins the logo contest will also get to do a FAVICON!!
 
ahahaha
Luckily I didn't do a logo
 
user1804599
Driving theory is so fucking obvious and boring.
 
I kinda forgot about it
 
user1804599
You really have to turn off your brain.
 
vote Alabaster !
 
5:13 PM
@rightfold No you have to learn it. So you know the rules of the road
 
@rightfold thats a thing?
 
@A.H. You don't have to study theory before you learn to drive?
 
user1804599
@TonyTheLion Indeed, I need to know what to do in case there is a military exercise with tanks. :v
 
@TonyTheLion I was given an exam before I got my license
its super simple stuff
 
@rightfold lol
 
5:15 PM
@rightfold you stay at home
 
@A.H. You didn't have to study for that?
 
@ThePhD your game is awesome! :)
 
user3010322
@ScarletAmaranth So it works for you?
 
nope, they just ask about signs and basic mechanics
 
user3010322
Hah! I wasn't crazy. @JerryCoffin's computer is just ooold. :P
 
5:16 PM
@ThePhD no I am just taking a guess
 
user3010322
@ScarletAmaranth =[[[[ My feelings, why would you do that to me. ;~;
 
user3010322
o_o
 
user3010322
It's... right... there?
 
user3010322
I.... I'm not sure what to tell you.
 
5:17 PM
@ThePhD it works and it's alright all things considered, I'd expect some feedback on cursor hit
 
user3010322
@ScarletAmaranth Yeah, like a sound or something.
 
hihi, the dependencies.
 
user3010322
@R.MartinhoFernandes q_q you hush with your... your always-right-in-the-end-ness!
 
@ThePhD btw, you could "ship" it with VS2013 redistributable and it would work everywhere
 
user3010322
5:19 PM
Yeah, I could put those DLLs in with it too.
 
user1804599
 
It is there, yes...
 
user1804599
Really, who the fuck cares? :v
 
@ThePhD That's not legal!
 
user3010322
5:19 PM
@R.MartinhoFernandes The VS 2013 redistributables that people can download? o.0
 
@rightfold lol that wasn't in my driving theory
 
@ThePhD yup, they need to agree with stuff
 
user3010322
Oooh, right.
 
user3010322
Well, damn. I could give them the installer though, right?
 
5:20 PM
@ThePhD AFAIK Only the exactly file you download, not the dlls.
 
yes
you can ship the redistributable exe
 
user3010322
Or package it with my installer, and then auto-run it (like steam does, all the time)
 
Or MSI merge modules
 
@ThePhD Actually, I just rebuilt my computer, so the CPU, mobo and installation of Windows are only something like 3 weeks old. As a hint at how little progress has been made in CPU speed recently, the new CPU is nearly identical in speed to the (7 year) old one. Runs a lot cooler and quieter though.
 
or use static libs
 
5:20 PM
or what cat says even though I don't know what that is
but cat is too good at taping red
 
user3010322
@JerryCoffin Moore's Law in action!
 
Xeo
@JerryCoffin what about the processor count, though?
 
@ThePhD The whole point is that Moore's law mostly isn't taking much action any more.
 
user3010322
@JerryCoffin But it sounds quieter !
 
It's shifting from clock speed to other things
 
user3010322
5:22 PM
Clearly, an advancement in computer technology has been made.
 
user3010322
Now we just need to prove it's 2 magnitudes quieter, and we've basically won.
 
16-core desktop CPUs :getin:
 
it should be illegal for my uni to provide any information about my grades to pretty much anyone other than me, right?
 
@Xeo Identical. I suppose I should add: the old computer was pretty high-end when I built it, and the new one is pretty low-end. Still, there was a time that even a completely bottom end new machine would obliterate anything short of a super computer from 7 years before.
 
Xeo
@JerryCoffin also, what kind of beast cpu did you get 7 years ago?
 
user3010322
5:24 PM
The YodaCore™
 
A Celeron
 
Xeo
my 6-7 year old amd athlon 64 x2 runs 2.2GHz per processors
which is a far cry from the 3.5GHz you see today
 
@ScarletAmaranth Grades are normally published freely, so I don't see how there could be any privacy?
 
@MartinJames are they?
 
I haven't looked at clock speeds for years now
 
user3010322
5:26 PM
In my university, I have to sign a release for that to happen.
 
@ScarletAmaranth are you planning to lie about them ?
 
@JerryCoffin Do you have the model numbers of both CPUs?
 
@Xeo I bought a dual-core AMD at the very end of the time that AMD was still beating Intel at most stuff. Don't remember the model number offhand though.
 
@ScarletAmaranth They were when I was at uni, though I admit having to dodge herds of dinosaurs on the way home.
 
@A.H. I have basically As only so I really don't have a reason to, but there have been some weird things happening as of recent
 
Xeo
5:26 PM
@JerryCoffin and you got a dual core again now?
I thought most stuff was 4 core nowadays
 
@Xeo Yes, for the moment.
 
@MartinJames :)
 
user3010322
He did say low-end.
 
@Scarlet merge modules are like libs for msi installers. You can make your own installer, add the redist merge modules to it and the whole thing gets installed in one go.
 
There's some 2-core low ends still
 
Xeo
5:27 PM
i3?
 
You'll be hard pressed to find a single core CPU now though
 
user3010322
i3 is still 4core?
 
Our TV server donwstairs has a strange 3-core AMD. I wonder if the chip is a funny shape?
 
@Borgleader Don't remember the model number of the old one. The new one is an AMD A6 6400K.
 
Xeo
was it? can't remember
 
5:28 PM
There are two-core i5s even
 
@R.MartinhoFernandes aaah, alright, thanks, I have like literally never really shipped anything in a whole package! :)
 
user1804599
@TonyTheLion good.
 
Xeo
I though i3 was 2core, i5 4 core, and i7 4 core with hyperthreading. maybe not.
 
user1804599
It means the world has become more terrible.
 
@MartinJames The chip is almost certainly a 4-core that had one core fail in testing.
 
user3010322
Nope, it looks like it's 2core i3
 
user3010322
4 threads though, thanks to hyperthreading
 
@JerryCoffin Aren't those usually sold as 2-core?
 
Just download more.
 
Xeo
AMD sells 3 and 6 cores
 
5:30 PM
I don't remember seeing any 3-core CPUs ever
 
@CatPlusPlus Wasnt the Xbox 360 a tri-core power pc chip?
 
Like I care about silly consoles
 
@CatPlusPlus Not sure. AMD has a fair number of 3-core model numbers though, and I'd always assumed they started out as 4 and one failed. I suppose they might have actually designed it as a 3-core though.
 
Xeo
@JerryCoffin the failing theory doesn't really explain the 6-cores though
 
user3010322
@Xeo Well 6-core is evenly divisble by 2.
 
user3010322
5:32 PM
So I mean, 3 dual cores... it kind of works out?
 
@jalf lol at your star message, I need to try: "star if you think that 5 is greater than 3" :)
 
user3010322
But just having 3 cores is... weird.
 
@Xeo It sort of does. They share one floating point unit between two integer units, so a failure in one FPU disables two cores at a time. There's also the simple fact that it's probably not worth defining a new SKU for 7-core processors.
 
powers of 2 or GTFO
 
Xeo
@ScarletAmaranth no, to go with his theme, it should be 'if 3 is greater than 5'
@JerryCoffin hm
 
5:33 PM
@ThePhD It works fine. There are often AV's when Anne is playing games, but I don't care about that:)
 
and the topic is... CPUs? well great.
 
user3010322
@Borgleader I remember programming for the Xbox 360. And all its big-endian weirdness.
 
Xeo
we can make it C++PUs if you want
 
@thecoshman Don't moan, at least it's not unit-testing.
 
Why is programming for a big endian cpu wird
 
5:34 PM
@MartinJames fuck... you're right.
 
You people suck
 
@ThePhD o.o Whats weird about big endian?
 
user3010322
Everything!
 
Someone link to Rob Pike's article
 
@Borgleader It can only be programmed by Australians.
 
user3010322
5:35 PM
It particularly screwed up my Flac reader when I went from my intel PC to Xbox 360.
 
Bad code is bad
 
If endianness matters, you're doing it wrong, you low-level savage
 
user3010322
=[
 
user3010322
Flac specifies things in bit fields. q_q
 
irrelephant
 
user3010322
5:36 PM
I don't remember how I fixed it to work between the two platforms.
 
I love deserialisation code that does dumb load to memory
 
@CatPlusPlus if endianness doesn't matter, you're losing site of the co... I... I don't know, something stupid about using low level shit being good
 
user3010322
I think that was when I introduced the endian class?
 
cowboy_casting?
 
stack_cast
 
user3010322
stack_cast best cast.
 
I cant find the glorious high level master race picture :(
 
@Borgleader No loss.
 
@melak47 ^
 
user3010322
5:38 PM
> What does matter is the byte order of a peripheral or encoded data stream
 
@Borgleader We have now seen it a few times
 
@ThePhD keep reading.
 
@TonyTheLion It's relevant though!
 
user3010322
FLAC is a data stream, its endianess matters. It's not part of the processing, it's the reading. :c
 
@Borgleader said someone who uses C++
 
5:39 PM
The Xbox processor is not a data stream
Don't stop reading.
 
@BartekBanachewicz hush hush you haskellite
 
Haskell master race
 
@BartekBanachewicz Oh, it seems I am racist after all :)
 
> If instead you try to write byte-order-dependent code in a type-safe language, you'll find it's very hard.
hihi
 
user3010322
@R.MartinhoFernandes He just points out there's a portable way to read an integer based on whether the stream is Little Endian or Big Endian.
 
user3010322
5:40 PM
That's... not new?
 
@CatPlusPlus what the fuck
 
Seems it was new to you because your code failed on Xbox
 
It's true
 
And if you still think the xbox endianness matters is still new
 
If your deserialisation is not portable, you're bad
 
@TonyTheLion :D
 
So I want to write another haskell library
after or perhaps along glisha
Because world needs more spatiotemporal in-memory databases in haskell
 
user1804599
It doesn’t.
 
user1804599
It would be just as fine if they were written in other languages.
 
well, okay, I give you that
implementation language is p much irrelevant here
but world needs more spatiotemporal in-memory databases
 
user3010322
5:44 PM
Hm.
 
user1804599
Build it on top of acid-state. :D
 
user3010322
A quick question out of curiosity: how does one get a sequence of 4 bytes into a float?
 
10 hours ago, by sudo rm -rf Telkitty
F*ck this chat, I am leaving here for a while ... let's see how long I can stay away ~_~
lol
 
user1804599
> “Een lichte verkeersovertreding wordt meestal bestraft met:

A. Een gevangenisstraf.”
 
user1804599
lol
 
5:45 PM
she's done quite well
 
@ThePhD memcpy
 
user1804599
@ThePhD std::memcpy(&dat_float, dat_array.data(), 4).
 
@rightfold hm, interesting
 
user3010322
We're asumming the bytes going into the float are not in the correct order, e.g. they have to be re-arranged.
 
@ThePhD memcpy byte-by-byte
 
user1804599
5:46 PM
@ThePhD Reorder the bytes first, then std::memcpy. It’s not rocket science
 
user3010322
Do we copy into a temporary buffer byte temp[4] and then rearrange the bytes and then copy it into the float?
 
or yeah, reorder first
 
Naturally, just to upset everyone else, I would use a packed union.
 
@MartinJames it's UB if you use it to type conversion
 
user1804599
@ThePhD That is a way to do it if you do not want to mutate the original, yes.
 
user1804599
5:47 PM
(And no, it’s not slow.)
 
@ThePhD sounds alright
 
@BartekBanachewicz I assumed the 4 bytes are 4 bytes of sliced float.
 
@MartinJames so?
were you intending to write to different union components that you would read from?
 
You can't do it portably without lots of hurt
 
@BartekBanachewicz Of course, that's the whole point.
 
5:48 PM
@MartinJames then it's UB.
Don't deliberately write programs that have UB.
 
user1804599
Union is both more code and more difficult to understand than std::memcpy so avoid it.
 
@BartekBanachewicz I've been doing it for 30 years. The programs work.
 
Under what I think are reasonable assumptions I'd make an int out of the bytes and the use the typical way of bitwise-making floats out of ints
 
user1804599
@MartinJames It’s because if compilers optimise it out existing software breaks horribly. :P
 
@BartekBanachewicz I've done that fairly frequently. Sometimes, "non-portable" is pretty much your own choice.
 
5:51 PM
@MartinJames old compilers had precautions that allowed those hacks. It was also back when they were needed. They are not needed anymore and compilers optimize more aggresively, so it might well change.
 
I have trouble memcpy'ing bitfields.
 
@JerryCoffin if it's deliberately UB then it should be abstracted and closed in a separate well-defined module
 
I know that some machines exist where that will fail and they even use IEEE754 floats, but fuck 'em.
 
but I think I am repeating myself
 
So, I either resort to horrible bitwise logic or bitfields and a union.
 
5:52 PM
Regarding the union thing, failure is not hypothetical.
 
@MartinJames do it with horrible bitwise logic and create a reasonable abstraction from it.
then use that abstraction
 
@rightfold when are you going to hatch your egg?
 
user1804599
What?
 
no twitter profile pic :P
 
@BartekBanachewicz Depends. I've written quite a few things where virtually nothing involved was portable.
 
user1804599
5:54 PM
Never.
 
Maybe I'll put up a snippet on Coliru later.
 
@R.MartinhoFernandes I'm pretty sure that, if I chop up a 4-byte float into 4 bytes, then load them into a 4-byte packed union in the correct order, I can read the float back OK.
 
@Martin I'll show you
 
@MartinJames I am pretty sure this is unnecessary risk and simply bad code.
 
Not while on my phone, though
 
5:55 PM
@JerryCoffin I think that the cost of simple abstraction is negligible compared to refactorings shall the portability be needed later.
 
@R.MartinhoFernandes Oh - don't slice up your phone just for me:)
 
@MartinJames what is wrong with creating a proper abstraction over the terrible bit manipulation again?
 
@BartekBanachewicz I have to look at the terrible bit manipulation, plus it's too easy to get it wrong. It's very easy to look at a packed typedef and match it up to the peripheral register/whatever as defined in the user manual.
 

« first day (1230 days earlier)      last day (3736 days later) »