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

11:00 PM
my guts feel like shit
they're supposed to produce shit not be shit
 
user3010322
Well, that's what's in it.
 
My guts are fine, but I'm working on it.
 
user3010322
@ScarletAmaranth How do you do materials on each object? Currently mine is list-based on the scene. That is, whatever material gets added last is used for all subsequent calls to AddPrimitive. Should I try it a different way?
 
ewww horrible state machine crap
 
Wots wrong with state machines?
 
11:05 PM
you might make a point that global state machines are terrible
 
user1804599
Nothing.
 
user1804599
You need state machines.
 
they don't make good APIs.
 
but then again, any global state is terrible
 
user1804599
No.
 
user1804599
11:05 PM
Mutable global state is terrible.
 
state machines make useful algorithm-generated implementations and that's about it.
 
Well, global state tables are OK.
 
@rightfold right
 
user3010322
Well, I could make it do AddPrimitive( primitive, material )
 
@DeadMG disagree
 
user3010322
11:06 PM
But... that's kind of a hassle?
 
..thiough I would normally use static data.
 
@ThePhD why?
 
user3010322
If you're making 20 white spheres, you'd have to specify the same white material 20 times. And store it again 20 times.
 
you can partially apply addPrimitive
 
well, firstly, one has to question why you are adding a single primitive at a time.
 
11:07 PM
or flip addPrimitive in that case, I guess
 
user1804599
@ThePhD Turn it inside out.
 
why not add a collection of primitives at a time?
it seems pretty fuckin dumb to me to be like, AddPrimitive({ vertex data }); 20 times in a row.
 
0
Q: Returning true or false in c++

BobWhen I run a method of type bool in c++ with a return statement like so: bool method() { return true; } there is no output at the console. To get output, I have to do: bool method() { cout << "true"; return true; } Is this the right approach?

 
@ThePhD in glisha, an instance is { mesh, pipeline, position }, (s/position/transformation/, I guess)
 
user1804599
@BartekBanachewicz moar indirection solves the problem! :D
 
11:08 PM
that has been working well for me thus far
 
all I'm saying is, this non-problem is trivially solved by the fundamental construct of a "loop".
2
 
Poor @Mysticial
 
user3010322
Each primitive is different. There's literally no point to having 2 primitives occupy the same space. There's a lot of point in having the same material reused. So the "Add multiple primitives" approach is already covered by having a state-machine based API.
 
user image
13
 
user1804599
@ThePhD have templates (not to be confused with C++ templates). Have one sphere template that you can create multiple instances of with different transformations. The instances merely store the transformations and a pointer to the template.
 
11:09 PM
Loops are evil
 
Shit. I clicked on @Rapptz link, now I have yet another 'connecting circle of death'
 
@Rapptz Thats like his 3rd question in 2 days
 
@ThePhD Well, one point of having multiple primitives in one call is so that you don't have to dick around with a pointless state machine for setting materials.
that sounds like an excellent motivation to put multiple primitives in one call.
 
@Rapptz And mysticial probably didnt need to lift a finger to get as much rep as vlad xD
 
user3010322
Guess I need more variadic template calls or something.
 
user3010322
11:13 PM
AddPrimitives( material, Primitives... )
 
user1804599
@Mysticial you suck.
 
user1804599
We’re gonna replace you by our new beloved friend Vlad.
 
@Rapptz You got owned there.
 
@Borgleader Almost (but not quite) true--he did write one answer this month.
 
@EtiennedeMartel Me?
 
11:16 PM
@Rapptz My brain fucked up.
 
@Rapptz WTF
lol
 
user1804599
It’s a mystiery.
 
and I'm #82 :(
 
Vlad is obviously the superior rep whore.
 
user1804599
 
11:18 PM
Granted, I haven't done much in the way of shit recently...
 
I had one a few hours ago
 
user1804599
I wonder how long it will take for Vlad to become a mod.
 
2 years
 
@rightfold How long do you have?
 
user3010322
@Mysticial I could post some purrrrformance questions.
 
user1804599
11:19 PM
@LightnessRacesinOrbit It wouldn’t surprise me, really.
 
user3010322
Soon, since I'm writing a DSP and I need it to do real-time management of a serious audio stream coming from 48 lasers and going to 2-4 different speakers.
 
user3010322
And I have to make it for the Raspberry Pi. <_>
 
user3010322
Shoulda bought a beagle board...
 
Should'a bought an i7 :)
 
lol
 
11:22 PM
..or an actual DSP array chip.
 
user3010322
I don't suppose multithreading will help me in the Raspberry Pi?
 
there is a tiny bit fo me that thinks one day thePhD will get some sense.
@MartinJames FPGA
 
@ThePhD Dunno - how many cores does it have?
 
user3010322
1 and only 1, apparently.
 
@MartinJames 3.14 cores
 
11:24 PM
So no, probably not:(
 
user3010322
it can execute some Floating Point instructions in parallel
 
user3010322
Apparently
 
user3010322
But other than that, it's just software threads using rubbed-down Linux.
 
@ThePhD ..but you have 32-bit uint samples, presumably?
 
@MartinJames Most are dual core (not sure--maybe all are).
 
11:25 PM
it has a fairly reasonable gpu compared to the cpu
 
@ThePhD What model do you have?
 
user3010322
@MartinJames Either incoming 32bit or 16bit samples. The professor said the incoming stream should be 16bit CD-quality 44.1 Khz
 
@JerryCoffin which ones are dual?
 
1
Q: Passing inferred type into std::find_if lambda function

cmbasnettI have the following code. I'm trying to eliminate the need for explicitly passing the localization_data_t::language_t type into the lambda argument. auto language_itr = std::find_if(languages.begin(), languages.end(), [&](const localization_data_t::language_t& language) { ...

polymorphic lambdas!
everyone wants them
 
AFAIK all pis have the same CPU, a single core arm
 
11:26 PM
blerght
my collision code is clunky
 
Stereo, so effectively 32-bit?
 
user3010322
@JerryCoffin Model B 756-8308
 
user3010322
@MartinJames Yeah, but you usually manipulate them separately, right?
 
depends. exhibit a: joint stereo
 
user3010322
11:28 PM
Also, it lists all the specs here (I can't find it on the raspberry Pi website for some reason):
 
@thecoshman Doing some looking, "most" was probably an overstatement, but the list includes a fair number of dual core, and at least one quad core. Predictably, I suppose, the less expensive models tend toward fewer cores.
 
@ThePhD Yeah. I hope you have really good drivers..
 
user3010322
Well, I think I'll be programming using C++ against ALSA?
 
user3010322
Since I'll mostly likely NOT be making a circuit to do the input from the Analog to Digital for all these lasers and getting some big thing that funnels it into the USB port.
 
user3010322
11:30 PM
I'll either output on the Pi's HDMI or its 3.5mm audio jack.
 
lasers? audio? wut?
 
@ThePhD Oh yeah - I remember this coming up before.
 
@ThePhD Gotta love it: "37 new from $27.98 13 used from $34.22"
Gotta pay extra for one with experience.
 
@JerryCoffin those aren't pi boards, those are comparable boards (I think) (fairly sure)
 
@JerryCoffin lol
 
user3010322
11:32 PM
My professor got an old organ for free on Craigslist. The entire thing is busted, but the keys are still there. He's going to hook lasers up to every one and point them upwards. He's going to build a giant bracket that hangs on the piano and the lasers will shoot upwards.
 
user3010322
My job is to catch the laser signals for each keypress, which will have the sound of the note encoded into the laser by way of an oscillating light signal.
 
@thecoshman I s'pose it's a question of how you define the term.
 
user3010322
These will just be boring, static notes, probably sine waves. Those don't sound very organ-y. My job is to Add some chorus / vibrato, and make it sound as cathedral-y as possible.
 
Blowing air through an abruptly-vented pipe might be easier.
 
@JerryCoffin what do you mean? there are like 2 or 3 versions of the pi... that's it
any way, night chaps
 
11:34 PM
Nite:)
 
@thecoshman From the viewpoint of the Raspberry Pi foundation, I'm pretty sure "Raspberry Pi" means exactly what they make, and nothing else. For most others, it's pretty much any cheap board that runs Linux.
 
nn
can't believe I'm going to bed at 11.30pm ..
 
@thecoshman G'night.
 
10 min on 10% is aparrently not enough. My pizza is still frozen.
..and I move on to Marstons EPA.
 
try: reduce
except: from functools import reduce
huh, that's neat
 
11:46 PM
saw a huge difference when turning that stuff off
 
I need to tune the scaling. manwe.flamingdangerzone.com:8000/bar.html. But now, sleep.
 
I'm on the Apple LLVM 5.0 compiler. auto is not supported for function arguments apparently. :/ — cmbasnett 4 mins ago
apparently people use the Apple versions
 
The builtin g++ is actually Apple LLVM.
 
@StackedCrooked LOL! I would expect all the parking bays to be mined.
 
11:54 PM
$ /usr/bin/g++ --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
 
@JohanLarsson hahahahah "Thanks for taking the time to report this issue. We are investigating ways to improve this for the next full release of Visual Studio."
 
I had 80% cpu on 8 cores and mouse lag from that thing
think I lost a couple of months of my life from it
 
@R.MartinhoFernandes Holy shit.
 
Why holy shit?
 
11:57 PM
Microsoft customer service is the worst
"We know this bug exists, please pay $1000+ to receive the fix"?
 
At Microsoft everyone must feeel powerless. Things change so slowly.
 
Hahaha.. 'For now, this is on our internal backlog for the next release'. No biggie - machine unuseable.
 

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