Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Acid - final release

Name: FrozenVoid 2011-10-28 11:50

Optimized quasicrystal code: full window size render ~17 seconds for 30 frames
http://pastebin.com/fjLQnbkB

Name: Anonymous 2011-11-01 19:39

>>100-103
Go back to /g/.

Name: Anonymous 2011-11-01 19:47

>>999-104
Go back to /g/.

my face when they have all gone back to /g/
:|

Name: Anonymous 2011-11-01 19:59

>You want to embed this cpu-intensive-as-shit (even once it renders) thing into a webpage? What's wrong with you?
>If you want this animation on a website, put up an APNG or GIF animated image.
Actually, you have to use intensive JS shit to display APNG in half of the browsers: https://github.com/davidmz/apng-canvas

Name: CC D 2011-11-01 20:39

>>106
my face when webgl is not even mentioned
instead a gif solution is proposed
:|

Name: Anonymous 2011-11-01 21:26

>>106,107
back to /g/, faggots

Name: Anonymous 2011-11-01 21:34

>>105-108
Go back to /g/.

Name: CCD 2011-11-01 22:02

mfw people cant even go back to /g/
:|

Name: Anonymous 2011-11-01 22:09

>>1
my face when people try to optimize spaghetti js code
with no functions and a bazillion uniquely named
variables
:|

mfw they could just call couple webgl functions
:|

mfw /prog/ is not about programming anymore
but about people trying to sent other people back to /g/
:|

mfw
you need at least 1.21 Giga Watts to sent someone
back to /g/
:|

Name: Anonymous 2011-11-01 23:56

>>111
Nice trips ``category 5 fagstorm''

MFW you refuse to go back to /{b,g,jp}/

:((((

Name: FrozenVoid 2011-11-02 0:57

>>111
When webGL becomes a stable api(note "experimental-webgl" part) supported by all browsers, i'll consider it.
Last time i tried to runs WebGL half the shaders didn't run, another displayed white blobs randomly on my screen and FF used up all my memory

Name: Anonymous 2011-11-02 3:20

>>113
Because you can't program for shit.

Name: FrozenVoid 2011-11-02 3:25

>>114
I didn't write any shaders, i've tried to run
http://www.iquilezles.org/apps/shadertoy/

Name: Anonymous 2011-11-02 4:04

WebGL leads to security flaws.  I keep it disabled.

Name: Anonymous 2011-11-02 6:00

>>112
mfw when some kid tries to troll /prog/
:|

Name: Anonymous 2011-11-02 6:01

>>114
mfw some kid confuses programming with testing
:|

>>116
mfw some kid still thinks he's in /g/
so he plays it safe
:|

Name: Anonymous 2011-11-02 6:04

>>115
this didnt work for you?
how come?

Name: Anonymous 2011-11-02 6:04

Masturbate Early, Masturbate Often.

Name: Anonymous 2011-11-02 6:25

>>118
I'm okay with your use of mfw and `>implying, but at least put a little thought in your posts.

Name: Anonymous 2011-11-02 7:44

>>110-121
Go back to /g/.

Name: Anonymous 2011-11-02 10:15

>>122
go fuck a goat, autist

Name: FrozenVoid 2011-11-02 12:20

>>119
I'm using ATI Radeon 2100(onboard) (i don't intend to upgrade for modern 3-D games or something equally useless)

Name: Anonymous 2011-11-02 13:36

<--- check my dubz

Name: FrozenVoid 2011-11-02 14:03

Name: Anonymous 2011-11-02 14:27

you guys do realize however that you have to post
pc specs too right?

Name: Anonymous 2011-11-02 15:08

wtf i thought this was instruktion how to make asid

Name: h 2011-11-02 15:42

>>128
You will have to look that up on your own grasseater.

Name: FrozenVoid 2011-11-02 16:31

>>127
CPU:Athlon II 240     2.8 GHz     45nm SOI     2MB:L2Cache     socket AM3     65W TDP, Family 16 Model 6
Video:ATI Radeon 2100 onboard
OS:Windows XP sp2
Browser:Firefox 10.0a1 (2011-11-02)

Name: Anonymous 2011-11-02 21:18

>>130
OS:Windows XP sp2
shit quality

Name: FrozenVoid 2011-11-03 1:35

952ms : subsecond barrier broken with merged pixel fill hack
http://pastebin.com/d9X4q7VM

Name: FrozenVoid 2011-11-03 1:43

>>131
 i don't have to fight my OS everyday to use it. I don't have to resolve dependencies, hunt correct drivers or recompile kernels.
I just expect the system to be stable and behave as expected. I'm not a fan of MS but XP is excellent OS for casual use.
No Lunix distro does ever come close.

Name: Anonymous 2011-11-03 1:52

>>133
At the end of the day, you're still some FrozenVoid.

Name: HAXUS THE WISE 2011-11-03 2:06

>>133
XP is made of equal parts FAIL and AIDES. Enjoy that giant redmond dick up your ass, kid.

Name: FrozenVoid 2011-11-03 2:06

>>134
At the end of the day, you're still some Anonymous, while i retain my own personality.

Name: FrozenVoid 2011-11-03 2:09

>>135
You know, you should install LoseThos, the only OS not ruined by big corporations.

Name: FrozenVoid 2011-11-03 2:11

>>137
That is not me.

Name: FrozenVoid 2011-11-03 2:14

>>136,138
Stop impersonating me.

Name: FrozenVoid 2011-11-03 2:14

>>138
Identity!=Personality. You can pretend to be FrozenVoid but you lack personality, just another anonymous trying to mock me.

Name: Anonymous 2011-11-03 2:14

>>137, 138 Where's the trip to prove it? Mr. False FV? Back your claims up or be called out on your Bullshit.

Name: FrozenVoid 2011-11-03 2:17

>>139,140
It really doesn't matter if you post with my name. I am still me.

Name: Anonymous 2011-11-03 2:19

>>141
Will you get upset at tripcode use again?

Name: FrozenVoid 2011-11-03 2:19

Then who was phone?

Name: FrozenVoid !frozEn/KIg 2011-11-03 2:22

Okay due popular demand i switch to tripcode use again. With secure tripcode so it won't be hacked.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 2:23

Test~

Name: FrozenVoid !frozEn/KIg 2011-11-03 2:23

>>146
This will be the new tripcode

Name: Anonymous 2011-11-03 2:26

>>145
I think popular demand was more something along the lines of "GTFO".

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 2:29

>>148
If you want me to "GTFO" why you impersonate and emulate me?

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 2:39

http://pastebin.com/zqQNB8HN
892ms: variable fix

Name: Anonymous 2011-11-03 2:47

>>150
Awesome code. Great size. Looks concise. Efficient. Elegant. Keep us all posted on your continued progress with any new code factoring or compiler optimization. Show us what you got man. Wanna see how freakin' expressive, efficient, concise and elegant you can get. Thanks for the motivation.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 2:53

>>151
I was originally motivated by slow render on jasons site, it was about 2 minutes to render a tiny rectangle.
I opened the code in my Notepad2 and noticed it used closures and complex functions in the inner loop, so i refactored it and started optimizing.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 3:16

http://pastebin.com/4rNEs0Wg
871ms  lookup replaced by Math.abs in the inner loop

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 3:39

861ms :merged even/odd to abs arguments.
http://pastebin.com/ax1WjEVh

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 4:03

http://pastebin.com/yDCh0WJS
848ms switched to increment for Xindex

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 5:00

http://pastebin.com/CeR6WWtQ
830ms faster unroll

Name: Anonymous 2011-11-03 6:28

'When webGL becomes a stable api(note "experimental-webgl" part) supported by all browsers, i'll consider it.'

yet webgl works in more browsers than your code, which only works with newer versions of firefox, and not only that, the window has to be a certain size!

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 6:52

>>157
>yet webgl works in more browsers than your code
Not in mine. WebGL is newer and less supported than canvas, require specific hardware(have you ever upgraded your video card to View a  Webpage?)
>which only works with newer versions of firefox
It use ArrayBuffer and PutImageData nothing complex
>the window has to be a certain size!
 its so hard to click maximize window.

Name: Anonymous 2011-11-03 8:15

http://i.imgur.com/RrxMc.jpg

here's what it looks like in my maximized firefox.

it's stretchfucked unless i find the magic window ratio that makes it work

and it's not the arraybuffers that make it not work in other browsers, it's the function syntax

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 9:56

>>159
http://pastebin.com/1nYSxAZf
Acid 7 with CSS fix for canvas

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 10:01

Apparently does not work. Canvas ruins 16:9 ratio

Name: Anonymous 2011-11-03 10:09

why are you wasting so much time optimizing
a gimmick effect that is pretty much unwatchable after
couple seconds and dont optimize something else
and if one of your answers is
1)because i can ,well there better things to optimize
2)like what , i dont know work on something interactive
you strike me as a smart person dont confine yourself
with just this

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 10:10

Name: Anonymous 2011-11-03 10:12

FrozenVoid, why don't you make a canvas-based danmaku game?

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 10:14

>>162
Its called recreational programming or hacking: I'm not a code monkey assigned to optimize indian bloatware or open source developer striving to develop a "product".

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 10:16

>>164
I don't liek twitch games.

Name: Anonymous 2011-11-03 10:22

>>165
Then hack a bit and optimize something useful, such as Hurd. You don't have to try to finish it, just improve it.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 10:27

>>167
I don't "join open source projects".
I could take the code, optimize it and post to pastebin, but i will not "distribute" or "support" anything
And i certainly don't want to optimize GNU/Turd ancient code.

Name: Anonymous 2011-11-03 10:29

>>168
Why not?

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 10:30

Besides i have my own OS project, though its not a priority right now.
http://www.reddit.com/r/FrozenOS/

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 10:32

>>169
In open source terms i will "fork the code", and i will not improve your code i will improve my code.

Name: Anonymous 2011-11-03 10:34

>>171
Okay, do that.
As long as your code is also published under a free license, the original project can benefit from it. Also, your fork may actually be better than the original. Both are Good.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 10:40

>>172
>your code is also published
I'd use creative commons for my code, but since i won't support it i won't "publish"
A fork quality is dependent on effort spent into it.
I can optimize a small 10kb script all day long with minimum effort but OS development is far more resource intensive.
LoseThos author spent 9 years to write a VGA-only Multiuser DOS clone.

Name: Anonymous 2011-11-03 10:49

>>173
Okay then, suit yourself.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 10:57

If you consider effort/reward ratio for OS development(very low), its useless for hacking unless the OS itself is very small.
OS performance is not a primary goal in most cases: usability/security/design always trumps such concerns as absolute algorithmic speed(i.e. there is no point optimizing it for speed,unlike an abstract algorithm).
The idea that developing an OS is serious, productive and respectable work while coding a script is useless gimmick is like comparing
people working at orchestra and people playing a violin at home.

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 11:07

If you can find an algorithm(source code in JavaScript or C(i dislike debugging complex C code, but i like to write low-level bithacks which require C)) where
1.Performance is ultimate concern
2.Algorithm can be tested many time per hour
3.Its provides a useful effect,feature or some other result which depends on performance.
I'll copy it to my script folder and optimize it,
if it works better, i'll post it on /prog/ and my subreddit.

Name: Anonymous 2011-11-03 11:28

>>176
>Optimizing algorithms instead of software
Are you a Computer Scientist?

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 11:53

>>177
I suppose I am in some form a computer scientist, but my field of "science" is more about hacking algorithms and far removed from writing papers or proving theorems(i.e. i'm more concerned about algos as code, rather then their theoretical properties)
When i use a sine formula, i use it like a tool, i don't intend to comprehend it as long as it works(unlike a computer scientist who would describe its algorithmic complexity, minimal running time or some arcane abstract proof from algorithmic theory)

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-03 12:56

I can see the gulf between theoretical computer science and algorithm hacking as
1. the first is all about the purity of form, the algorithm has to be expressed as succinctly as possible(lambda calculus, function combinators)
2. the second is all about the purity of essence, stripping the code from internal cruft and removing inefficiency, the algorithm external look is irrelevant.

Name: Anonymous 2011-11-03 12:58

>>179
So you say computer scientists are Protoss and hackers are Zerg?

Name: Anonymous 2011-11-03 13:04

>>180
Are then programmers Terran?

Name: Anonymous 2011-11-03 15:01

>>181
Are then progamers Terran?

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-04 10:16

http://pastebin.com/zAvRA9Tp
Acid 7.5 - Reduced memory usage and fixes in css for render aspects

Name: Anonymous 2011-11-04 11:36

put some decent textures render with transparency
and u've got yourself water effect

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-04 12:10

http://pastebin.com/V8ebcddY
A version with per-frame pallette index changes

Name: Anonymous 2011-11-04 13:40

nobody cares

Name: Anonymous 2011-11-04 13:58

the code is a huge mess someone should put some comments
if it to be redistributed

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-04 14:08

>>187
>is a huge mess
Pretty clear to me. it precomputes a chain of tables, saves indexes to wint array and displays them frame by frame.
New version is more CPU-intensive but uses 4 times less memory(since it stores 8 bits per pixel(index)).

Name: Anonymous 2011-11-04 14:10

its pretty clear to you that spent so much time with it
if you want someone to immediately get a grip
comments are a necessity especially
when the code is a mess

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-04 14:10

Name: Anonymous 2011-11-04 14:23

>>187
Those are great ideas. Popst tha shit up when you are done doing it. DOn't go trying to get us to do that for you. We aintcha niggas.

Name: Anonymous 2011-11-04 14:34

ok ok

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-04 14:40

Name: Anonymous 2011-11-04 14:51

>>190
How on earth that code has been mutated into >>193

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-04 15:16

>>194
>I am to lazy to read the entire thread, please post an outline

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-04 17:11

http://pastebin.com/61361hxi
Better dispframe() performance with unrolled convert loop.
render speed is the same:
120frames at 3360ms
30 frames at 902 ms

Name: Anonymous 2011-11-04 17:24

>xsum*((((xsum>=0)|0)<<1)-1)
What the fuck?

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-04 17:35

>>197
A way to calculate absolute value. Its just an alternative to express x*( x>0?1:-1) without the ternary.
Math.abs is faster(due fact JS converts doubles to int32 each time a bitwise operation is required and back.)

Name: Anonymous 2011-11-04 17:42

>>197
Wouldn't something like xsum - 2 * xsum * (xsum<0) be simpler?

Name: Anonymous 2011-11-04 18:18

(xsum>=0)|0
what is the point of this?

Name: Anonymous 2011-11-04 18:37


           xsum >= 0                   // true or false
          (xsum >= 0) | 0              // 0 or 1
        (((xsum >= 0) | 0) << 1)       // 0 or 2
       ((((xsum >= 0) | 0) << 1) - 1)  // 1 or -1
xsum * ((((xsum >= 0) | 0) << 1) - 1)  // xsum or -xsum


If xsum is non-negative, the expression evaluates to xsum.  If it is negative, it evaluates to -xsum, which would be a positive number.  That's a really ignorant way to do abs(xsum).

Name: Anonymous 2011-11-04 18:43

>>201
true or false
damn, I always forget how stupid javascript is. calling 1/0 something else and after that applying a stupid operator ( OR ing with 0) to "convert" it 1/0

and people still trying to optimize it

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-04 22:05

>>197
That requires 2 multiplies instead of 1. >>202 its from C code
see http://codepad.org/nfOfmEqA

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List