« first day (2107 days earlier)      last day (2840 days later) » 

11:00 PM
this is the problem with all those wrapper libraries
they always make assumptions and then make it absurdly hard to actually get the internals to do what you want
 
Whats the bug?
 
@Mikhail they're triggering 1280
which I suspect has to do with trying to operate on a float texture
 
@BartekBanachewicz ya know. It's almost like abstractions are leaky
 
128-bit textures aren't that well supported
@sehe that's not a problem. Lack of adherence to Open-Close principle is
 
Can you elaborate on what you mean (in this particular case)?
 
11:02 PM
Do you think you can isolate it to a OGL version and then stick that as your program requirement?
Or does it always happen?
 
@Mikhail I don't think so
	// not ideal, but these are used to register a reference to the surface we were constructed with
	Surface8u			mSurface8u;
	Surface16u			mSurface16u;
	Surface32f			mSurface32f;
@sehe they hardcode a lot of things
and use sort of pimpl a lot with hidden classes
 
Sounds like bad planning and technical debt. I try to wrap all my OGL stuff in Qt because they handle the versioning, etc.
 
I tend to not write in C++
This overall has worked the best for me so far
 
You can use Python Qt...
 
@BartekBanachewicz you mean, they abstract the implementation specifics away? I think that's on purpose.
Of course, it may not be a framework for you in that case
 
11:05 PM
yeah I mean I wouldn't complain if it worked
 
Those are essentially unrelated.
 
If they exposed internals, the chances that "it works" would be reduced greatly
It's a choice. They don't wish to be your extensible OGL foundation, I guess.
 
But also 128bit textures seem a bit crazy, I think you need like OGL 5.0 to get them to work :-)
 
nwp
I like how linux has no problem with overwriting an executable while it is running
 
11:07 PM
Keep bumping the OGL requirements :-). The software I write drives $100,000, so its easier to get a new PC then deal with this stuff.
 
nwp
makes developing an IDE in that same IDE trivial
 
@Mikhail nah
it's just float RGBA
 
@nwp deleting, also fine
 
if you're doing HDR they pretty common
or, as in this case, GPU simulations
altough I suppose OpenCL would work way better for this
or at least compute shaders
 
Yes, I like wrapping OpenCL arrays with OCV umats...
 
11:11 PM
hmmm
the source FBO here is RGBA16
maybe that's the problem
mmmm it seems to have fixed OGL errors at least
but it still crashes
 
Falling asleep. Night.
 
Poetry. Moves.
 
"You can't spell poetry without try"
 
But you can try Poe
 
11:26 PM
I prefer a cask of amontillado
 
Guys question:
Can i code GoLang code in C++ ?
 
Brgla.
I don't wanna run these bnechmarks again.
 
I seem to have moved the crash to a dtor of a shared_ptr
I have no fucking idea how to debug that
@user5600875 what
 
yes you can as i searched
but it is much more effort
nvm guys
 
@user5600875 I can post "Go away" code in this lounge
 
11:30 PM
@BartekBanachewicz VS?
 
@user5600875 what
@CaptainGiraffe Xcode
 
Wow @sehe ... !(such a good joke)
 
@user5600875 I have no idea where are you searching but you should stop using that
 
@BartekBanachewicz Please just ignore this dude. It's Cinch all over again, but considerably less sharp.
 
87
Q: How to use C++ in Go?

FrankIn the new Go language, how do I call C++ code? In other words, how can I wrap my C++ classes and use them in Go?

 
11:31 PM
I giggled
 
Cinch?
 
Weren't you going to write an OS?
 
i am writing an OS
 
Plonked
 
I'm just going to assume he is like 14 years old. Idk, be nice to kids.
 
11:32 PM
All my plonks are mental. In ever sense.
 
@BartekBanachewicz I had a similar bug on windows, turned out to be UB before the destructor. The entire system froze, debugger and all at a freemem call.
 
nothing wrong with writing an OS
 
I am not blaiming the poor shared_ptr
 
at most it would be a waste of time and that's the most likely case
 
it just looks like some random fuckup that manifests there
 
11:33 PM
He deloited it... :(
 
the problem is there's so many places where the data flows back and forth to the GPU
which is actually the CPU on my machine
so it's the same RAM
 
but possibly not the same memory space
 
not necessarily :/
 
Who delinqued what?
 
@Telkitty yea.
I don't know what getting plonked means anyways
 
11:35 PM
@user5600875 ignored
 
blacklisted
 
i was asking a simple question i solved my self and I'm getting blacklisted
lol ok
 
I know, bear can be unbearable at the times
 
OK I commented out the whole code and the app works
not sure if that can be called progress
 
user406009
@BartekBanachewicz Is valgrind an option?
 
user406009
11:37 PM
Are you using raw OpenGL? Or someone's library?
 
@user5600875 The question was simple and incoherent. A ten second google answered it, so why noise?
 
I got rid of some OpenGL errors already
well all of them
So it must be something deeper
 
@sehe i made a mistake. got a problem with it?
 
again commenting out update routine made it work, so it's probably in there
 
11:38 PM
No. You?
 
I have a question about linked lists. Is there a reasonable scenario on a desktop computer (lets say an i5 with a reasonable memory bandwidth) where the linked list will outperform an std::vector<POD> ?
 
@Lalaland BTW it's a really cool project, it uses render-to-texture to abuse VS as a compute shader
I mean it sounds obvious but I never really thought about it
 
@CaptainGiraffe Depends on everything (but mostly access patterns)
 
it's actually quite easy to set up... and quite hard to set up properly, apparently
 
user406009
@BartekBanachewicz Seems like OpenCL would be easier than using OpenGL hacks.
 
11:40 PM
@sehe no
 
@CaptainGiraffe The few, few times are found in compilers. But its very very few. kjellkod.wordpress.com/2012/02/25/…
 
I have a question about linked lists. Can anyone state a scenario with a reasonable desktop computer (lets say an i5 with a reasonable memory bandwidth) where the linked list will outperform an std::vector<POD> ?
 
31 mins ago, by Bartek Banachewicz
altough I suppose OpenCL would work way better for this
glad we agree
 
@CaptainGiraffe So, make sizeof(POD) very large, make the collection get mutated many times (inserting/removing in the middle) and the read access scattered, then lists might start becoming faster. There's also side-constraints like iterator stability
 
You can't use OCL on mobile platforms, though. I had to roll my own FT, for a point of care device, for example.
 
11:42 PM
can't you?
that sounds weird
 
Not practially
 
OK I got stuff to freaking draw finally
the UI and all
now to find out where the problem in processing is
 
@sehe Never in my Knuth adventures have I encountered a method like that.
 
why is it 2am already
 
@CaptainGiraffe method?
 
11:43 PM
@BartekBanachewicz Because you live in Europe
In America its only 7pm
 
@sehe Algorithm
 
@CaptainGiraffe multiple inserts at the front?
 
@CaptainGiraffe Yeah. I don't think it's frequently applicable. Maybe in mid-size graph oriented applications
@CaptainGiraffe Huh. Most of my description was talking about data size and layout.
@BartekBanachewicz deque (*except on MSVC)
 
vector is not a deque though
 
@Mikhail so retarded
 
11:44 PM
can't be
 
@BartekBanachewicz I'm aware of it :)
 
and @CaptainGiraffe asked about vector specifically I suppose
 
@BartekBanachewicz That's a programming problem not a data structure problem.
 
I was making the extra effort to dis MSVC
 
@CaptainGiraffe um, I'd say prepending elements is very much a data structure problem
 
11:45 PM
@CaptainGiraffe Good luck using data structures in isolation from code.
 
if you want to make it "realistic", do a random 50-50 of front/back
 
Or just get one of the 100 research papers and benchmarks on the subject that somebody else did.
 
@CaptainGiraffe I wrote code that prepended things to a string like yesterday vOv
it was naively removing trash from the end of a buffer
 
Oh FFS. NEVER USE TELEGRAM. Ever. For anything. https://twitter.com/k_firsov/status/756875611872821248
God the fuck-ups. They hurt
 
ouch
we should all use Signal
 
11:48 PM
@sehe Why would you say this? Not sure if it's an insult or just that I've been expressing myself badly.
 
Because you were artificially separating algorithms from data structures. For any realistic real life performance expectation, what datastructure to use depends exactly on the operations you expect to do on them.
 
Thats not true, never use linked-lists (period).
 
@sehe this was an immediate response to push_front being a tricky operation.
 
On the other hand a graph is like a linked list...
 
@CaptainGiraffe And mine was an immediate reponse to that.
Note, you can use generic implementations of algorithms, and they can work on a plethora of datastructures transparently. All that is mere programming technique. However, where the rubber meets the road, the performance characteristics will be very different for the various combinations.
It does not make sense to compare "data structure performance" in isolation from operations
 
11:53 PM
@sehe I totally agree, but how did you type that so fast?
 
I was working on it for a bit. Clipboards rock.
 
oooooooookay
found two (2) offending drawcalls
 
I'm going to hit the sack (any takers?).
Night :)
 
sack overflow
10
 
@BartekBanachewicz So, would you say they need to be renamed to catcalls?
 
11:54 PM
@sehe lol
reduced to one!
 

« first day (2107 days earlier)      last day (2840 days later) »