Fantastic js1k Submissions
An anonymous reader writes "With just five days left in the current competition to write an app in only 1kb of JavaScript, the submissions are becoming increasingly impressive. Take for instance a beautiful 3D animation drawing on a 2D canvas. Or a mine cart animation. If you wait long enough you'll actually get to caves! Can you manage to write a demo that fits on the hall of fame before the deadline closes?"
jesus christ. why?
ok
I burned through the night on our web apps, ... Java Script,
My boss said we needed a hit,
When guests came and left us their comments,
They said looks like a big piece of
Code nice and clean,
Upload each day and your site will look keen.
after Benny Bell, 1946, re-released 1975
No luck with the demo #1451 (it errors out) but the "mine cart" is unbelievable. Never having "programmed" in javascript, I hadn't realized it was so versatile and powerful and certainly had no idea that 9,000 zeros and ones could go so far, even in such obviously skilled hands...
Maybe someone could submit something that could be used to manage host files?
Lets assign numbers to every nice app starting from one to 2^1024 and call a library for the tedious stuff..
I can't get enough of all of this good stuff! Thanks for the informative links!
God Bless You APK...
and...
apk...
Slashdot devs seem in no hurry to fix this problem and it's been driving me nuts. So for anybody who values viewing at -1 and uses greasemonkey here's a Script. There's a chance of false positives and it's not the most optimized. But I value not having to scroll through > 10 paragraphs of APK, custom hosts files, or 'acceptable ads' spam.
As has been said, the minecart is amazing.
I was looking at some of the other ones, and I managed to break the ball drop one - once the ball goes beyond the bottom of the screen, it continues infinitely.
Fuck Beta
10 paragraphs? Yeah right. Fake APK is 15 page downs. real APK is 20 page downs.
Do you even lift?
These aren't the 'roids you're looking for.
I have a java shortcut to start the Doom II executable. Can I submit that?
The fact that a lot of the work is being done by the javascript language itself makes this somewhat less impressive.
You shut your whore mouth. Did you look at the demos mentioned in the summary? There's a fucking a mine cart ride. It goes up and down while accounting for acceleration due to gravity. Some of the overhead lights randomly flicker. There's goddamn caves. With stalactites.
So go ahead and shrug it off if you're not interested. But I'll be fucked by a pineapple before I let you dismiss them as anything less than the accomplishments they are.
If you want to test the script's effectiveness, try this story. If the script is effective, it should eliminate over 200 of the 250 comments on that story...
Three-d city tour and rebirth with the trees in it is pretty cool. That's really great to have a bunch of cool demos to examine for their source code and workings!
:>)
Pac man in the park is very pretty too.
Does it matter libraries are involved? All that should matter is that it is a constraint that requires some thinking and creativity to overcome and that all of the competitors are on equal footing (i.e. not writing their own libraries so they can put more of their own stuff there). People seem to make complaints along the lines of, "Well, why not have a function DoCoolStuff() in the library, and give it a one byte alias, then you could have a one byte program that does something pretty." If such a function existed, it is pretty easy to have a competition where just doing that gives no creativity points. It would almost be hard not to notice if you got several dozen entries doing exactly the same thing because a single library call was all that was needed for something, and a handful actually doing something different.
Hear hear! I'll also be fucked by a pineapple!
"You can justify anything by putting it in quotes, adding a famous name and making it a sig" - Albert Einstein
Chrome actually faster than Firefox
The fact that a lot of the work is being done by the javascript language itself makes this somewhat less impressive.
You shut your whore mouth. Did you look at the demos mentioned in the summary? There's a fucking a mine cart ride. It goes up and down while accounting for acceleration due to gravity. Some of the overhead lights randomly flicker. There's goddamn caves. With stalactites.
So go ahead and shrug it off if you're not interested. But I'll be fucked by a pineapple before I let you dismiss them as anything less than the accomplishments they are.
whore mouth? someone a bit obsessive? Did you actually look at the source code? It's incomprehensible gibberish.. obviously it's making use of libraries to help with graphics and such.. good luck writing that in 1k of basic.
Assuming you're aware that comparing a 1k source to a binary is a pretty weak comparison I have to point out another thing. The himalaja demo uses DirectX 9 whereas these demos aren't even allowed to use WebGL. Demos like this might not be as impressive but the author had to calculate the lighting himself instead of just calling iCanHasLightSource.
Nigger, please. I actually did look at the source code. There's a single call to fillStyle and fillRect each. The same can be done and was done in 1980's home computer BASIC.
unminified: http://paste.debian.net/245039/
Probably uses massive stalactite libraries. Still not impressed. Anyway I probably could have done it in 1020 bytes.
The fact that a lot of the work is being done by the javascript language itself makes this somewhat less impressive.
The fact that IT IS done with only 1KB of javascript is even more impressive! If anything, it illustrates the power of javascript.
Román Cortés has written a nice, detailed explanation of how he made his Furbee demo:
http://www.romancortes.com/blog/furbee-my-js1k-spring-13-entry/
Very interesting read.
Me
You could enter your submission in the 1kB+20 bytes competition.
That is like crying at someone for using a monitor instead of building it to show off their demoscene project.
JavaScript is a huge unwieldy thing of a language with large function call names that cannot be accessed by other means outside of using array index offsets from the parent objects, which gets messy when you consider other browsers with different feature sets since function / method / attribute order ISN'T specified on W3C, leading to that entire subset of the language being useless to the language itself, you can only use it for your own code.
And you have obviously not heard of procedural generation if you think large things can't be made out of small amounts of code.
Hint, our DNA is pretty much that, it reads and expands itself with time as more genes are expressed, it is just an insanely more complex method.
There are counter "variables" all over that keep track of roughly where things are supposed to be. When those go bad, it causes all kinds of horrible diseases such as dwarvism or gigantism, unequally growing sides of the body and other horrible things.
In the case of JS, that isn't a problem though.
Awesome mine demo. But begs the comment that even a 1k javascript demo has better graphics than Minecraft... just sayin''.
Back in my day, we programmed with one bit... uphill... both ways.
I am very small, utmostly microscopic.
Funny thing is, for all the excruciating length of it (yet not much compared to all the reading that I end up doing most days) I came away today thinking it may have been time well spent
including all of the citations that similar posts have been modded up? That is time well spent? And citations that people don't like ads? So informative that it needs to be in the comments of stories as a header all the time instead of an article on its own site, or be defended and discussed instead of what is on topic? When threatened, APK typically produces a post with links showing he's essentially posted this hundreds of times to slashdot stories...
I'd love to read a detailed description of what all that maths is doing.
(1.21 gigawatts) / (88 miles per hour) = 30 757 874 newtons
slashdot devs are too busy installing itunes for their hipster nerd buddys to sort this problem out.
Since you seem to be modded insightful, perhaps I'll try asking you, as this is an honest question that I would like to know the answer to.
If it's using massive libraries, clearly the program in its entirity is ridiculously far more than 1kb. As in, if I wanted to save this on an SD card such that every piece of programming required to run it was on that SD card, I imagine it would be several megs. I honestly have no clue, it could be several hundred... I can't view the demos at work, nor would I have any idea how big a library required to make it would be.
That said, could you not just make a 1kb code of javascript call up a Nintendo emulator or something? If I recall correctly, I'm pretty sure NES emulation has been done in javascript by now. Or going even further (I don't know if this is even possible, but...), could you not have that 1kb piece of javascript code just open a .exe file and run Crysis or something?
I'm obviously missing something big, since I just can't see why it's challenging to write a line of code that opens whatever the actual program is. Could you please explain to me how this contest is different than typing say... "qbasic /run nibbles.bas" in ms-dos?
You are seriously retarded.
Your level of stupidity is truly groundbreaking.
The mod's and your inability to detect sarcasm and parody is groundbreaking... actually, more par for the course.
No doubt; I agree the schmeer oughta be on it's own somewhere. A simple post with link would then suffice, no?
But I was thinking of those links that led me to some places where I did more reading of a few things that I found useful or informative. Separating wheat from chaff was non-trivial, of course. "Time well spent" may've been an over-reach, but learn stuff I did. I think. Time stamp shows 0817; for me it was more oh-dark-thirty at the end of a very long day. And I did preface all by admitting 'simple-minded'. [grin]
Don't know if the hosts file has helped, cuz I forgot to turn off AdBlock, and had already selected most of what I intended to read before crashing at around 0600 local.
1044 bytes then?
I do not want your cheap brainburning drugs. They are useless for work. And I am a working man today.
I believe we now have a new term for drinking too many pina coladas.
Are you one of these people who suggests JavaScript isn't a “real” language? Would it help to know that I have applications in production that service thousands of requests per second, accessed through rich, stateful clients that are loaded once and talk to the server without reloading the page?
JavaScript is probably the most powerful, versatile, and accessible language around these days.
That should be http://nodejs.org/ not .com.