Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
It's because Firefox uses XML for its UI

Adbot
ADBOT LOVES YOU

Nomnom Cookie
Aug 30, 2009



Zombywuf posted:

page faults make code so much faster
Oh, well you didn't mention your machine only has 512MB RAM. buy a Mac, become rule 36 compliant, then see if you still have a problem

rotor
Jun 11, 2001

classic case of pineapple on pizzadog derangement syndrome

MononcQc posted:

also you guys watch this:

We Really Don't Know How to Compute by Sussman (the guy behind SICP, who also invented Scheme)

i dont NEEEEEED no instructions to know how to COMPUTE

Toady
Jan 12, 2009

tef posted:

can't think of any languages that do reference counting for you

php, python, squirrel

Jonny 290
May 5, 2005



[ASK] me about OS/2 Warp
:ughh:

Sapozhnik
Jan 2, 2005

Nap Ghost
I'm still getting used to the new glorious world order where I have my desktop absolutely covered in assorted open applications, think "gosh I'd better close some of these before my machine starts thrashing", open up system status and nope, 3.5GB / 8GB currently in use.

For real though people do need to stop bitching about modern applications' memory utilisation. Yeah I know, it's great that people used to make usable OSes with GUIs and stuff that fit into 512KB of RAM and kids these days just waste memory like it's going out of fashion. Some dude also went out and wrote a full-length novel without using the letter e. It's possible, but why not concentrate on writing good literature instead of framing every minute task along the way in the context of a crushing ambient limitation. Also, people who are used to 21st century OSX and Linux environments probably don't realise how lovely those old UNIX environments actually were compared to a modern Bash shell and GNU coreutils and Vim or whatever.

I mean I program $4 microcontrollers that have more RAM than a PDP-11. On real computers I like being able to just load an entire image/XML document/result set into memory like I don't give a gently caress instead of stuffing everything through a piecemeal stream transform.

Zombywuf
Mar 29, 2008

Nomnom Cookie posted:

Oh, well you didn't mention your machine only has 512MB RAM. buy a Mac, become rule 36 compliant, then see if you still have a problem

I have a mac, it's swappy as hell. The machines I work with have 10s to 100s of gb of RAM. Memory usage is the number one factor in performance on these. More data is more processing time, it's pretty simple really.

abraham linksys
Sep 6, 2010

:darksouls:
i played around with processing last night, it was interesting.

it's really, really hard for me to think about equations graphically, though, so i'm pretty sure that graphics programming is Not For Me in any way beyond "pasting together code samples." some guy in the creative coding thread in CoC said he made a harmonograph implementation in it, so i did too, and man i do not understand the equations behind it at all:



via http://en.wikipedia.org/wiki/Harmonograph#Computer-generated_harmonograph_figure. like, i mean obviously i could read it and translate it into code just fine, but i can't even begin to envision how it actually works

but hey i plugged in some numbers i found online for the various d, f, and p, and got this sweet butterfly:



regardless, i wanna keep trying. basically want to make some crazy-looking visuals that look like they'd be projected behind a band or something. hell, could even make a proper music video out of it i bet

Rufus Ping
Dec 27, 2006





I'm a Friend of Rodney Nano

abraham linksys posted:



i can't even begin to envision how it actually works

so try to work it out.

you're not going to learn anything if your reaction to something you don't already understand is "i dont understand that!!!!!! better not tax myself by actually trying to figure it out"

start with the parametric way to draw a circle: x=r cos(t) and y=r sin(t)
(recall that cos is just sin but 90 deg out of phase) and build it up from there

note that you can use different r vals in each if you want to draw an ellipse
or e.g. double up the t value inside one of the sins if you want a figure of 8
or knock one of them out of phase if you want to pinch the thing diagonally
or dampen the thing (recall the shape of e^-x as x increases) if you want it to die down as t increases

i suggest working with a simpler pair:
x(t) = A1 * cos(f1 t + p1) * e-d1t
y(t) = A2 * sin(f2 t + p2) * e-d2t

start with p1=p2=0 and d1=d2=0 and play with A1 and A2 and f1 and f2

Jonnty
Aug 2, 2007

The enemy has become a flaming star!

Wheany posted:

the biggest thing we have done to optimize the performance of our ui:

instead of sending an http request for pretty much every singular piece of data, we have one big mass query that returns most of the data we need in one request.

one request usually takes less than 1 second, even when you query for multiple things at once, but make hundreds of less than 1 second queries and the user kinda notices

back when i was a coding baby with lots of enthusiasm i took this approach for the automatic playlist updating on gbsfm. it automatically asked the server for data every 5s and it got to the point where one set of updating queries wouldn't actually finish before the next set starting going so they'd just snowball. leaving a tab open for ages could mean you ended up with hundreds of ongoing queries and would eventually grind the whole site to a halt at both ends.

bunching everything together in one query meant that all went away and gbsfm is now 100% Bug Free™

tef
May 30, 2004

-> some l-system crap ->

Wheany posted:

the biggest thing we have done to optimize the performance of our ui:

instead of sending an http request for pretty much every singular piece of data, we have one big mass query that returns most of the data we need in one request.

one request usually takes less than 1 second, even when you query for multiple things at once, but make hundreds of less than 1 second queries and the user kinda notices

a lack of multiplexing in http is a known problem. but really that could be considered a fault of tcp instead (especially when you consider things like congestion control problems with multiple tcp streams)

hooray for javascript workarounds for network protocol issues.

tef
May 30, 2004

-> some l-system crap ->
let's multiplex http over websockets :q:

0xB16B00B5
Aug 24, 2006

by Y Kant Ozma Post
i run a node webserver in the client browser

MrMoo
Sep 14, 2000

tef posted:

let's multiplex http over websockets :q:

I've already seen those questions on stackoverflow.

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
let's read stack overflow

- nobody smart

CamH
Apr 11, 2008

Cocoa Crispies posted:

let's read stack overflow

- nobody smart

its u

Coffee Jones
Jul 4, 2004

16 bit? Back when we was kids we only got a single bit on Christmas, as a treat
And we had to share it!
stack is there to help the majority of developers, corner cases aren't the place for it

ants on my cum rag
Sep 2, 2011

"Oh God you got the spray gun, DO NOT LOSE IT, you seriously better not screw this up, I'm not kidding"
~~The Battle Hymn of the Contra Tiger Mother~~
i seriously need to find out how to learn to code in BASIC. Where can I get BASIC?!

CamH
Apr 11, 2008

allah akbar

Gazpacho
Jun 18, 2004

by Fluffdaddy
Slippery Tilde
Barack's Anti-American Sharia Islamic Code

ants on my cum rag
Sep 2, 2011

"Oh God you got the spray gun, DO NOT LOSE IT, you seriously better not screw this up, I'm not kidding"
~~The Battle Hymn of the Contra Tiger Mother~~

Gazpacho posted:

Barack's Anti-American Sharia Islamic Code

10 ALLAH
20 AKBAR
30 GOTO 10

Sharktopus
Aug 9, 2006

after having read the last few pages in this thread my list of posters whose opinions I should completely ignore just tripled

also, some grade A trolling going on

Tetramin
Apr 1, 2006

I'ma buck you up.

Wheany posted:

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.

this is from a few pages back but

what is this supposed to mean? you loving retard

rotor
Jun 11, 2001

classic case of pineapple on pizzadog derangement syndrome

Sharktopus posted:

after having read the last few pages in this thread my list of posters whose opinions I should completely ignore just tripled

also, some grade A trolling going on

keeping a whitelist is much more space efficient

what is this
Sep 11, 2001

it is a lemur
whitelist more like whitespace

Zombywuf
Mar 29, 2008

tef posted:

let's multiplex http over websockets :q:

If only pipelining worked.

Sharktopus
Aug 9, 2006

rotor posted:

keeping a whitelist is much more space efficient

maybe I should write a lil script to color code post backgrounds so I know when to expect funny and when to mock. It's almost as if there are three categories of poster...

Meiwaku
Jan 10, 2011

Fun for the whole family!

Sharktopus posted:

maybe I should write a lil script to color code post backgrounds so I know when to expect funny and when to mock. It's almost as if there are three categories of poster...

Is that like naming your favorite monkeys at the zoo? I find sarcasm really loses something when it has to be explained...

tef
May 30, 2004

-> some l-system crap ->

Zombywuf posted:

If only pipelining worked.

let's use coap instead of http :v:

Sneaking Mission
Nov 11, 2008

spdy

0xB16B00B5
Aug 24, 2006

by Y Kant Ozma Post
we should use a torrent like setup where everyone else reading the page uploads it to you

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug
we should use a technology that's like a LAN party in your modem

Sweeper
Nov 29, 2007
The Joe Buck of Posting
Dinosaur Gum

0xB16B00B5 posted:

we should use a torrent like setup where everyone else reading the page uploads it to you

tried to do this as a senior design project but we got shot down by the professor

vapid cutlery
Apr 17, 2007

php:
<?
"it's george costanza" ?>
isn't that sort of how tor works

tef
May 30, 2004

-> some l-system crap ->
nope, tor is about onions.

tef
May 30, 2004

-> some l-system crap ->

0xB16B00B5 posted:

we should use a torrent like setup where everyone else reading the page uploads it to you

just use magnet links instead of http links, problem solved :3:

Miley Virus
Apr 9, 2010

loving stuck at 99% on this nyt article, SOMEONE PLZ SEED

ants on my cum rag
Sep 2, 2011

"Oh God you got the spray gun, DO NOT LOSE IT, you seriously better not screw this up, I'm not kidding"
~~The Battle Hymn of the Contra Tiger Mother~~

tef posted:

nope, tor is about onions.

Onions used mostly by cowardly nerds to cover up their illegal pornography habit and sometimes used by people who insist that it's not all about hiding illegal pornography, it's just that the GOVERNMENT is SPYING on MY PORN C:/Users/Brian/Desktop/Momdontclick/stopmom/mymomisabitch.exe

ants on my cum rag
Sep 2, 2011

"Oh God you got the spray gun, DO NOT LOSE IT, you seriously better not screw this up, I'm not kidding"
~~The Battle Hymn of the Contra Tiger Mother~~
the thing with mymomisabitch.exe is that its not like regular porn its an exe. you cant close it like a png. once you 2xclick you gotta be prepared man

Adbot
ADBOT LOVES YOU

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

The Worst Muslim posted:

Onions used mostly by cowardly nerds to cover up their illegal pornography habit and sometimes used by people who insist that it's not all about hiding illegal pornography, it's just that the GOVERNMENT is SPYING on MY PORN C:/Users/Brian/Desktop/Momdontclick/stopmom/mymomisabitch.exe

sometimes i use it to register twitter accounts for robots

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply