|
Wheany posted:this pretty much happened in our old web ui. that's a pretty good example of how writing apps for the browser lets you not worry about the stuff that the old compiled language programmers had to worry about
|
# ? Oct 4, 2012 06:42 |
|
|
# ? Jun 5, 2024 04:38 |
|
the php at my job is really neat and clean AND the guy who set it up seems neurotypical; its p weird
|
# ? Oct 4, 2012 06:43 |
|
Tiny Bug Child posted:this doesn't really make any sense cause using a lot of memory doesn't hurt anything Wheany posted:and even with that global array of everything, a browser didn't use more than a gig or two of memory after a weekend.
|
# ? Oct 4, 2012 06:43 |
|
het posted:some of us write stuff that isn't toys for children and serves millions of people i.e. some of us write things that do things.
|
# ? Oct 4, 2012 06:45 |
|
het posted:some of us write stuff that isn't toys for children and serves millions of people ya me too, we do like 100m unique hits a month. feels good to have a huge stake in making a great product used by so many people
|
# ? Oct 4, 2012 06:48 |
|
het posted:I can't even tell if you're joking, maybe I'm dumb using a gig of memory on a modern computer is not a problem like right now, on my computer: skype is using 400 megs of memory of who knows what. I havent even used it, it's just sitting in the background. loving putty uses over 100 megs for showing a bunch of text in a terminal. those are my top two non-browser memory using programs right now. oh no, my megarams
|
# ? Oct 4, 2012 07:05 |
|
Wheany posted:using a gig of memory on a modern computer is not a problem
|
# ? Oct 4, 2012 07:08 |
|
i guess your point is having lovely resource management is bad? if so, i agree, but you can get away with some amazing actual poo poo depending on the environment.
|
# ? Oct 4, 2012 07:20 |
|
tef posted:tbh this is a perfectly good strategy for short running programs, assuming you'll finish working before you run out of memory. the flash vm has this thing where garbage collection will only go so far down the tree. once it hits a certain depth it gives up and says "welp, too far down, im not goin all the way down there, better just leave it where it is." Which sounds insane until you realize that the average lifespan of a flash object is 30 seconds. they optimized for the common case and, welp, there u go.
|
# ? Oct 4, 2012 08:44 |
|
het posted:I still can't tell if you're joking, and it's not because I think a program using a gig of memory is a problem then waht are you talking about?
|
# ? Oct 4, 2012 14:53 |
|
use as much memory as you want. theres no reason to aggressively manage it yourself. as long as you arent constantly destroying and creating large objects you'll be fine.
|
# ? Oct 4, 2012 14:55 |
|
Tiny Bug Child posted:ya me too, we do like 100m unique hits a month. feels good to have a huge stake in making a great product used by so many people mm yes, 100 million attempts to foil downthemall. im on this, boss
|
# ? Oct 4, 2012 14:56 |
|
Shaggar posted:use as much memory as you want. theres no reason to aggressively manage it yourself. as long as you arent constantly destroying and creating large objects you'll be fine. even then its probably not a big deal in 90% of cases
|
# ? Oct 4, 2012 14:56 |
|
Socracheese posted:the php at my job is really neat and clean AND the guy who set it up seems neurotypical; its p weird i told you no more forums posting at work, tiny bug assistant
|
# ? Oct 4, 2012 15:13 |
|
Shaggar posted:even then its probably not a big deal in 90% of cases that's what eden space adn the stack are for
|
# ? Oct 4, 2012 15:15 |
|
lol if you don't just buy more ram when you run out. rule 36
|
# ? Oct 4, 2012 15:19 |
|
lmao if you spend your day puzzling out how you can make your codes fit in 10 bits of rams instead of 12 or whatever the gently caress
|
# ? Oct 4, 2012 15:25 |
|
Hammerite posted:lmao if you spend your day puzzling out how you can make your codes fit in 10 bits of rams instead of 12 or whatever the gently caress I wish this was my job
|
# ? Oct 4, 2012 15:27 |
|
Hammerite posted:lmao if you spend your day puzzling out how you can make your codes fit in 10 bits of rams instead of 12 or whatever the gently caress if youre poo poo's popular, every byte counts. saving 32 bytes 100 million times a day is probably more than your salary
|
# ? Oct 4, 2012 15:33 |
|
Hammerite posted:lmao if you spend your day puzzling out how you can make your codes fit in 10 bits of rams instead of 12 or whatever the gently caress actually it owns bones. toodles
|
# ? Oct 4, 2012 15:33 |
|
trex eaterofcadrs posted:if youre poo poo's popular, every byte counts. saving 32 bytes 100 million times a day is probably more than your salary not if those 32 bytes just pop out of existence along with the rest after the < 1s it takes to execute the request, and you have a huge memory pool that rarely even comes close to maximum utilization anyway
|
# ? Oct 4, 2012 15:37 |
|
Tiny Bug Child posted:not if those 32 bytes just pop out of existence along with the rest after the < 1s it takes to execute the request, and you have a huge memory pool that rarely even comes close to maximum utilization anyway that because you write lovely webapps that live in a browser what about all of those systems that actually do the work that you just display
|
# ? Oct 4, 2012 15:38 |
|
Sweeper posted:that because you write lovely webapps that live in a browser Tiny Bug Child posted:that's a pretty good example of how writing apps for the browser lets you not worry about the stuff that the old compiled language programmers had to worry about
|
# ? Oct 4, 2012 15:40 |
|
Hammerite posted:lmao if you spend your day puzzling out how you can make your codes fit in 10 bits of rams instead of 12 or whatever the gently caress drop a tab of acid as well and that pretty much sums up nintendo ds development
|
# ? Oct 4, 2012 15:40 |
|
Tiny Bug Child posted:not if those 32 bytes just pop out of existence along with the rest after the < 1s it takes to execute the request, and you have a huge memory pool that rarely even comes close to maximum utilization anyway what are you talking about, look at facebook, just by making their urls shorter they saved some retarded amount of money
|
# ? Oct 4, 2012 15:43 |
|
trex eaterofcadrs posted:what are you talking about, [citation needed]
|
# ? Oct 4, 2012 15:45 |
|
trex eaterofcadrs posted:that's what eden space adn the stack are for yeah but dont you gotta worry about heap fragmentation if ur creating and destroying tons of stuff? idk. i've never run into it as an irl problem nor have i had gc pausing create performance issues.
|
# ? Oct 4, 2012 15:45 |
|
seriously the worst thing about cs nerds and useless academics is how not only are they incapable of just doing what works, but they actually see it as a moral good. you're a bad programmer unless you do all this extra unnecessary poo poo computers have been able to do for you since the eighties!
|
# ? Oct 4, 2012 15:47 |
|
neither of those things have anything to do with academics, who have been using lisp and ml and other languages with superior garbage collectors for years
|
# ? Oct 4, 2012 15:53 |
|
the people you're thinking of who make tradeoffs based on analysis of the problem instead of spraying projectile diarrhea into a text file and begging a vm to run it are "engineers"
|
# ? Oct 4, 2012 15:54 |
|
Otto Skorzeny posted:neither of those things have anything to do with academics, who have been using lisp and ml and other languages with superior garbage collectors for years yo i'm not saying all academics are bad; i'm well aware that development owes a huge debt to ppl like rasmus lerdorf who actually make good stuff and contribute towards the future of computing instead of being obstinate roadblocks
|
# ? Oct 4, 2012 16:01 |
|
youre all letting him troll you again
|
# ? Oct 4, 2012 16:05 |
|
vapid cutlery posted:youre all letting him troll you again
|
# ? Oct 4, 2012 16:09 |
|
i'm just going to post princess bride snippets from now on
|
# ? Oct 4, 2012 16:25 |
|
Otto Skorzeny posted:i'm just going to post princess bride snippets from now on as you wish
|
# ? Oct 4, 2012 16:26 |
|
you know what i like to do in java? i read an image file into an array of 32-bit packed pixels, aarrggbb. i then make a copy of those pixels, separating each channel in each pixel into their own double. then i do my processing using those doubles. i'll probably make several copies of those doubles during the various processing steps. once i'm done, i'll pack them into yet another int array. i never free one byte of memory. processing one 5-megapixel image will use several hundred megabytes of memory.
|
# ? Oct 4, 2012 18:11 |
|
what does using doubles buy you in that case btw? is it just that narrow integer arithmetic makes things lovely when you're doing your fft arithmetic?
|
# ? Oct 4, 2012 18:40 |
|
probably nothing. it might have affected the color or a pixel or two in the whole image compared to integer math, but ehh. if you want to gamma correct your images before/after other processing steps, you might want to separate your channels into floats. doubles are probably overkill in any case.
|
# ? Oct 4, 2012 19:11 |
|
i remember some of the most fun i had writing porgrams was for the palmpilot where your binary had to be like <20k or people made fun of you
|
# ? Oct 4, 2012 19:55 |
|
|
# ? Jun 5, 2024 04:38 |
|
250kb for a binary?? hey pal this aint some kinda $800 Dell Axim ok
|
# ? Oct 4, 2012 19:56 |