|
Subjunctive posted:why do you need to be unsafe for that? you're banging on some byte buffers, that's fine in managed code. I don't have the slightest idea, but I found the source code, and it's giving me a headache e: jesus, had almost forgotten about the k-means++ color reducer, the bespoke monochrome converter and all the other insanity e2: I guess it's the kind of C# code a C++ programmer would write, pining for C++ template functions the whole time e3: iirc the microsoft resource compiler hated icons with embedded pngs anyway, and I had to use windres from mingw, and link the icon as a separate .res file e4: I'm a bad programmer is the moral hackbunny fucked around with this message at 10:36 on Jan 30, 2015 |
# ? Jan 30, 2015 09:59 |
|
|
# ? Jun 11, 2024 00:07 |
|
Subjunctive posted:why do you need to be unsafe for that? you're banging on some byte buffers, that's fine in managed code. bounds checks will kill your performance not that it really matters when just doing a couple 256x256 images but start processing much larger ones in bulk and it gets to be an issue add a near-real-time requirement and it's practically mandatory to use unsafe code
|
# ? Jan 30, 2015 10:43 |
|
Dessert Rose posted:bounds checks will kill your performance it was totally unnecessary in my case, but I used to have an obsession with zero-copy, and Bitmap.LockBits in read-only mode could guarantee that (... if GDI+ used a DIB section for that bitmap). I also have an irrational prejudice against getpixel/setpixel methods since reading that article on how solitaire used to take 100% cpu on nt 3.1 with its victory animation, because it used getpixel/setpixel instead of manipulating bits in memory
|
# ? Jan 30, 2015 13:13 |
|
I used unsafe once because I had a very fast c++ library heck borderline application but I wanted to use something pleasant and not painful to set up and tear down all the data to it and also manage the parallelism and so forth so I used c# for the bits it was great at and c++ for the bits it was great at and that program was my magnum opus
|
# ? Jan 30, 2015 14:51 |
|
i cant find the podcast thread so.... gimme some good programming podcasts to listen to whilst
|
# ? Jan 30, 2015 15:51 |
|
here they are:
|
# ? Jan 30, 2015 16:01 |
|
Dessert Rose posted:bounds checks will kill your performance I thought the .NET JIT did a really good job hoisting or eliminating bounds checks these days. The bounds check itself is pretty cheap and very friendly to modern (x64) architectures as well; IIRC it's a fused compare/jump that's easily predicted and plays nicely with speculative execution. it used to be that you wanted to use certain patterns in your loops to trigger the elimination, but I think that's much more flexible in modern CLR too. but yeah, I'd understand if it were a high-throughput pipeline and pinvoking to a tuned C++ library wasn't an option. it didn't sound like that was the case.
|
# ? Jan 30, 2015 16:05 |
|
Shinku ABOOKEN posted:i cant find the podcast thread so.... the Good Omens radio show was decent, Pratchett and Gaiman have cameos :3
|
# ? Jan 30, 2015 16:06 |
Shinku ABOOKEN posted:i cant find the podcast thread so.... about history of korea though
|
|
# ? Jan 30, 2015 16:06 |
|
there are no good podcasts on any subject.
|
# ? Jan 30, 2015 16:18 |
|
my boss once told me that he listens to the leo laporte podcast during his commute. i lost a lil respect for him that day
|
# ? Jan 30, 2015 16:19 |
|
it's me i'm the podcaster
|
# ? Jan 30, 2015 17:03 |
|
wtf everybody is supposed to listen to Uhh Yeah Dude on their commute
|
# ? Jan 30, 2015 17:41 |
|
Isn't radiolab a thing that is good? I haven't listened to it but I know people I don't hate who like it.
|
# ? Jan 30, 2015 17:45 |
|
MononcQc posted:it's me i'm the podcaster can't find your podcast
|
# ? Jan 30, 2015 18:11 |
|
Shinku ABOOKEN posted:can't find your podcast I'm frequently invited to talk (and mostly complain) on Mostly Erlang. I don't particularly recommend it unless you're really into hearing people spend one hour talking about pet libraries in Erlang and stuff like that. I'm kind of amazed it gets listeners at all in the first place.
|
# ? Jan 30, 2015 18:14 |
|
Bloody posted:Isn't radiolab a thing that is good? I haven't listened to it but I know people I don't hate who like it. people around here do not like radiolab. i believe shaggar hates them extra there are good podcasts out there; i like comedy podcasts for commuting
|
# ? Jan 30, 2015 18:28 |
|
lol if your commute is long enough for any podcasts
|
# ? Jan 30, 2015 18:38 |
|
rrrrrrrrrrrt posted:lol if your commute is long enough for any podcasts looks like the plan is i gotta fly back to the central office on the regular, which leaves plenty of time for binging on podcasts
|
# ? Jan 30, 2015 18:44 |
|
rrrrrrrrrrrt posted:lol if your commute is long enough for any podcasts i don't get to listen to a whole podcast on one trip
|
# ? Jan 30, 2015 18:45 |
|
Bloody posted:Isn't radiolab a thing that is good? I haven't listened to it but I know people I don't hate who like it. i used to like radiolab a lot when i listened to it in the car while driving. i was highly distracted (by the task of driving) so all the weird voiceovers and jump cuts were entertaining listening to the same content in my living room, with my full attention, it's extremely irritating
|
# ? Jan 30, 2015 22:58 |
|
hi from fosdem
|
# ? Jan 31, 2015 11:44 |
|
tef posted:hi from fosdem tell them hi from yospos
|
# ? Jan 31, 2015 12:01 |
|
python tools for visual studio (ptvs) is some goddamn loving win!!! i honestly thought it was going to be some half assed syntax highlighting plugin but it's the full package. thanks Microsoft
|
# ? Jan 31, 2015 18:34 |
|
tef posted:hi from fosdem what's a fosdem
|
# ? Jan 31, 2015 19:01 |
|
fosdem? i barely knew'em
|
# ? Jan 31, 2015 19:03 |
|
rotor posted:what's a fosdem a type of bear.
|
# ? Jan 31, 2015 19:04 |
|
rotor posted:what's a fosdem A place for Linux developers to drink too much and eat too many waffles, while getting their employer to pay for it since you can claim it on an education budget. Though in my case there's also a bit of advertising for my employer, since I'm speaking there this year.
|
# ? Jan 31, 2015 19:07 |
|
I went twice and hated it both times.
|
# ? Jan 31, 2015 22:32 |
|
tef posted:hi from fosdem fosdem posting blues
|
# ? Jan 31, 2015 23:22 |
|
tef posted:hi from fosdem Hi back. Did you see anything horrible yet?
|
# ? Feb 1, 2015 00:22 |
|
Shinku ABOOKEN posted:i cant find the podcast thread so.... it's literally never occurred to me that i would want to listen to a programming podcast
|
# ? Feb 1, 2015 00:38 |
|
Bloody posted:Isn't radiolab a thing that is good? I haven't listened to it but I know people I don't hate who like it. it's just up its own rear end. it's guts are pretty good so it's not a bad rear end to be in but it can get annoying. 99% invisible is the same way sorta except i can actually tolerate radiolab. 99% is usually about something interesting but i cannot stand roman mars. everything else has kinda been a letdown. i like probably science but i also hate it a lot because while it's sometimes good, othertimes it's just redditors talking. the bugle is the only thing i am 100% behind.
|
# ? Feb 1, 2015 00:41 |
|
MALE SHOEGAZE posted:it's literally never occurred to me that i would want to listen to a programming podcast I'd be ok with listening to a podcast starring brian kernighan telling stories about things going wrong
|
# ? Feb 1, 2015 01:52 |
|
I don't know if a programming podcast isn't a flawed premise because I like to look at examples if you're just talking about programming without scribbling and showing code snippets it's probably boring shallow stuff
|
# ? Feb 1, 2015 01:58 |
|
Symbolic Butt posted:I don't know if a programming podcast isn't a flawed premise because I like to look at examples discussion of high level concepts is pretty important and something i have a really hard time absorbing when i'm reading up on code because i usually just want to skip to the code examples so i dont know maybe i need both.
|
# ? Feb 1, 2015 02:02 |
|
idk tef has a good talk or two that can be listened to probably
|
# ? Feb 1, 2015 03:28 |
|
Bloody posted:idk tef has a good talk or two that can be listened to probably where can i find a teftalk TEFx next tef
|
# ? Feb 1, 2015 03:39 |
|
MALE SHOEGAZE posted:where can i find a teftalk i think theres a newer version of this somewhere but this is the one i can find https://www.youtube.com/watch?v=csyL9EC0S0c
|
# ? Feb 1, 2015 03:50 |
|
|
# ? Jun 11, 2024 00:07 |
|
Arcsech posted:i think theres a newer version of this somewhere but this is the one i can find https://www.youtube.com/watch?v=csyL9EC0S0c thank you also thank you tef. i'm really really glad that i have access to your knowledge but more than anything your attitude and approach to programming and other programmers inspires me as a programmer and you're an asset to this terrible forum
|
# ? Feb 1, 2015 04:00 |