« first day (3016 days earlier)      last day (1926 days later) » 

12:00 AM
Quadros will eat a bit more power than comparable mobile geforce. Measure passmark/power_consumed
 
@JerryCoffin The neck maybe stands out but as a pig I am beautiful.
@Mikhail My immediate impression is that you are looking at the wrong brand. Particularly if you are paying for it yourself.
 
@CaptainGiraffe Neck and really long legs...
 
@JerryCoffin Well, cut them off and call me shorty.
@JerryCoffin You can't take the spots away from me!
 
@CaptainGiraffe Maybe if you weren't rolling in the mud I could see them.
 
@JerryCoffin As Jesus said: don't condemn the mud on the skin of your friendly pig(giraffe in the hebrew translation), but rather the hamberder in your mouth.
This is probably my first vegan friendly religious sentence I've ever made.
 
12:18 AM
We are officially over-populated.
We have no way of escaping earth. We are doomed.
 
@Mikhail Then don't buy Lenovos?
 
If humans extinct they have no one else to blame but themselves. They had chance, but they are too dumb, care too much about money and power and lack strategical thinking ability. No one could really think a nuclear bunker could really save humanity - one would just die a lonely, depressed death with no sunshine and limited food resources there.
And no country would ever want less population, because they care too much about GDP, so world population will ALWAYS increase (unless war or disease).
The more population the closer we are at tipping point.
 
12:37 AM
@Mysticial I fell for the build quality meme, its already fucking falling apart. Lenvo!=IBM. Anyways, I'm here to warn you guys.
 
@TelKitty No, we are not. We throw away tremendous amounts of food, and waste all kinds of resources.
 
@EtiennedeMartel You mean developed countries. Yes, but developed nations holds a small percentage of world's population.
 
1:39 AM
40 degrees celsius max temperature today, going to a ocean rock pool this afternoon
Sydney rock pools are the best - safe, fresh ocean water with fish and other sea creatures and free of charge.
 
2:10 AM
@TelKitty You can feed Africa with the food Europe throws away.
 
If you clear a vector by calling vector.erase(vector.begin()) until it's empty, is that really quadratic? Because each iteration the size shrinks by one. And that seems to make it quadratic divided by linear, which would make it linear again.
Oh, wait it's just O(n²/2).
Each iteration the size shrinks by one. Average size will be size/2. So it's size * size / 2. I get it now.
I'm like a new Gauss.
 
Erm.. what does that mean?
 
There was a hat for it this last Winter Bash.
 
2:31 AM
@StackedCrooked I'd guess it means "you figured it out by telling the rubber duck what was going on."
 
Ah.
I thought the large duck represented quadratic growth or something.
 
@StackedCrooked *quackatic growth
6
 
2:52 AM
I kind of get what the P vs NP problem is about now. Exponential dwarfs polynomial.
 
@StackedCrooked And factorial is even worse than exponential. Instead of A^N (for some fixed A) it's almost like N^N.
 
Factorial's not quite as bad, but pretty close.
34
A: Factorial-time algorithms and P/NP

Jerry Coffin No. factorial time is not polynomial time. Polynomial time normally means an equation of the form O(Nk), where N = number of items being processed, and k = some constant. The important part is that the exponent is a constant -- you're multiplying N by itself some number of that's fixed -- not de...

The important part:
So, the base is that processing one item takes .1 ns. In that case, with 20 items:

O(log N) = .3 ns
O(N) = 2 ns
O(N log N) = 6 ns
O(N2) = 40 ns
O(N!) = 7.7 years.
 
That last one is a bummer.
 
3:07 AM
Kind of a serious jump..
 
Don't forget to cache the result
 
@Mikhail I don't trust a mere cache with that.
 
Also multiplication is secretly O(N^2), or maybe O(N Log(N)) if you're clever
One of my goals in life is to teach 2nd graders peasant multiplication instead of the O(N^2) stuff we do now days.
 
3:27 AM
I should work on that. In fact, my son (who just happens to be in second grade) is working on multiplication and division right now...
He got a little frustrated tonight with a problem about "explain how you can do 8x8 if you only know how to multiply by 4, not 8."
 
He's already fucked by using decimal
Only hope is that your keyboard is Dvorak
 
I used a Dvorak pencil, but I'm afraid it may have been EBCDIC paper.
 
Don't you have to pay IBM a nickle every time you represent a number in EBCDIC?
 
@JerryCoffin That seems kinda tricky for second grade.
 
 
1 hour later…
5:01 AM
 
 
3 hours later…
8:01 AM
@towc low-level languages by design typically won't be functional, because low-level coding is all about having explicit machine state
Effects on that global state must thus be as efficient and transparent as possible, not abstracted away. Once you start writing code that pretends that there's no such state, you're not really low-level.
There were old computers designed specifically for Lisp code, called Lisp machines. For them, functional Lisp was indeed low-level, but that's not true for modern architectures.
 
8:26 AM
@thecoshman that vbo code is like 10 minutes to write
 
@BartekBanachewicz yes, but requires texture atlas first
 
8:50 AM
1958. InMIT AI LabMemo No. 1,McCarthy defined the high-level language Lisp, which was to become LISP the dominant AI programming language for the next 30 years.
@BartekBanachewicz Looks like Lisp was initially designed for cater A.I. purposes.
 
@thecoshman frankly I have no idea what you're doing in that code, but it's not that complex either way
 
9:07 AM
I just got a gold badge :o
I almost forgot that it was possible
I got my first « famous question » badge for a question that wasn't even my most viewed one for the longest time
Go figure
 
@BartekBanachewicz I'm currently loading the image files into individual gl textures, and swapping them for each cube that I render
In order to VBO my chunks, and not do it per cube type, I need to first move to using a texture atlas, a single gl texture
but I want this to support 'unlimited' textures being added to it, so I need to build it dynamically from the individual image files
and I'm saying that the atlas, once built, needs to provide a way for other parts of the code to ask "what are the UV co-ords for texture 'foo'"
 
 
1 hour later…
10:24 AM
One thing that annoys me a little about CMake is that I need to change the current directory in order to invoke make. e.g (cd build && make).
 
Don't use make
Use cmake --build build
You still have to go into the build subdirectory if you want to run ctest though
 
@Morwenn Hm. I'll try that.
 
I generally do cmake -H. -Bbuild -G"Something" then cmake --build build -j 4 nowadays :p
It took me some time to learn to use CMake properly instead of making it do only part of the job ^^'
 
@Morwenn yea, it's one of biggest elephants in the room
it takes so much damn time to deal with cmake problems, if you don't know it
 
I remember that it took me some time to properly run Valgrind through CTest too
I want CMake 3.13 to be able to use add_link_option T_T
Why did it take so long to get such a command without having to manually handle strings
 
10:33 AM
@thecoshman I told you how to do that
it doesn't need to be "unlimited"
@thecoshman yeah but cube faces are trivial
 
@BartekBanachewicz what I mean is, I don't want to have magic number to limit the number of textures that go into the atlas
@BartekBanachewicz ah, yes... you mentioned there was some way to say "here is an X by Y image, copy it into that texture, starting at this co-ord"
I don't have to manually create my own image of pixel data in ram, and then send that openGL as a single image
that said, I still need to load all the images to check their sizes
even though for me, for now, they will be 16*16
 
@thecoshman why not
@thecoshman glTexSubImage
@thecoshman which makes it simpler. Don't overcomplicate it
if you assume all textures are 16 by 16, you can load them in eg. batches of 256 in 256x256 textures
and then the texture ID could be e.g. u16, where LSB is the position in the atlas, and the MSB is the atlas number
once you run out you just allocate a new 256x256 texture
this gives you 65536 textures, which is way more than you'll ever need
@towc that being said, Rust.
 
yeah... I might just, at least for now, go with 'textures have to be 16*16'
 
11:02 AM
@thecoshman YAGNI everything
 
Though I do really want to be able to support larger textures
but hey, I'll deal with it when I need to :D
 
BTW @thecoshman did I tell you how awesome glium is already
I prolly did but
one thing it does is uniforms that don't suck
everything automagically goes through uniform buffers
I think that's one thing I really like about this library, it uses the good practices for you
 
glium being that Rust lib?
 
@thecoshman yep
it's like an optimizing compiler for OpenGL
 
hahaha
 
11:09 AM
it produces better OpenGL code than you'd likely write by hand
 
I probably will move over to it at some stage
maybe
 
took me just a few days and it was really worth it
fuck C++
 
To be fair, the things that slows me down the most, is just not spending that much time on this thing :P
I do need to blog my next release though :D
 
well, yeah, I'm also working on the basement in my spare time
the desk is almost done
it's turning out really nicely, I put the 2nd coat of varnish on it yesterday
gotta be an epic workshop when I'm done with it
 
 
1 hour later…
12:43 PM
@BartekBanachewicz for electronics?
 
12:55 PM
@ABuckau not really, cases for stuff if anything
mostly for regular work stuff
 
 
1 hour later…
1:57 PM
I'd really like to get a metal lathe and milling machine
but while I'm pretty sure a small lathe would fit, the milling machines are really huge and awkward
so maybe I'll have to settle for a drill press
 
2:48 PM
Yeah, mills are big
but they are also... more or less... just vertical lathes :P
Whilst not easy, any operation you can do on one, you can do on the other
but mills tend to be waaaay more solid
Christ alive man, it's been nearly nine years I've been on SO
 
 
1 hour later…
3:55 PM
@thecoshman no, not really
you can't do horizontal slices on a lathe
if anything, I'd say that mills are more versatile, but require more additional tools and setup and precision is worse
 
@BartekBanachewicz huh?
basically, stick the tool in the chuck, and the item where you normally have the tool, a boom, a bad milling machine
but they aren't really built for that sort of use
like, you could mount a work item in the chuck of a milling machine, and use a lathes cutting tool on the bed. Effectively turning your mill into a vertical lathe
but again, not really built for those sorts of stresses
 
@thecoshman hmm
 
at the end of the day, they are both basically a big motor for spinning something along with an XYZ bed
weather you spin the cutting tool or the work piece doesn't really matter
 
yeah I know it's just I never thought about it
actually sounds great
I mean you're limited in the cut length quite considerably
but still
> Holding a milling cutter with a hardened shank is a real no-no. The jaws of the chuck are are hardened and can not get a good grip on the milling cutter shank because of the very small contact area. The loading of the milling cutter when cutting will suck the cutter out of the chuck and into the work if end milling. This can happen in an instant and if you are lucky just mar the work and not mar you with part of a shattered end mill.
apparently you'd need a separate tool holder
 
Ah, but as always, just because you can doesn't mean you should :P
 
4:05 PM
@thecoshman well i mean a tool holder wouldn't be that expensive
yet another reason to get a lathe before a milling machine anyway
 
I think a 'proper' mill and lather would be better, but in a pinch... it's not too bad
 
@thecoshman I have really tight space constraints
I can easily fit 1000mm x 450mm lathe on a separate desk
but I'd need to sacrifice my main desk for the milling machine and that kinda sucks
I suppose I'd rather buy a decent, low-profile vertical drill press instead
they require much less space and can actually be repositioned, since the vibrations aren't that critical
this one's about €1100
and quite small, 750 x 280 x 300 mm
 
4:22 PM
Yeah, a drill press is a must really I think
 
plus you can get small milling beds to use on a drill press
 
they aren't great, but can work
 
they're not meant for that
 
4:23 PM
I think using the lathe is better though... but that's not the greatest
And of course having the milling machine as well is even besterest :P
 
 
3 hours later…
7:45 PM
ok well, rust it is
 
@BartekBanachewicz Yes--you normally want to use a collet to hold a milling cutter. At least on a full-sized lathe, you can normally remove the chuck and install a collet chuck in its place. Biggest problem is that you need a separate collet for each size of milling tool shank, which can get expensive. On the other hand, you need pretty much the same for a vertical mill as well.
@thecoshman A lathe is definitely better for the task. In particular, the bearings in a drill press aren't normally designed to withstand side-loading very well, only end-loading. A milling machine or lathe mostly deals in side loads.
 

« first day (3016 days earlier)      last day (1926 days later) »