r/programming • u/bemmu • Dec 26 '17
TIL there's a community called "dwitter" where people compose 140 character JavaScript programs that produce interesting visuals
https://www.dwitter.net/top
20k
Upvotes
2.2k
u/lionleaf Dec 26 '17 edited Dec 28 '17
Now that the server seems to be under control, let me high-jack my top comment to give you some tips:
And it's a ton of fun to see all the excitement :) Might have to get back to working on it. (github.com/lionleaf/dwitter if you want to contribute)
Edit: /u/xen_the posted a guide worth checking out if you're interested in making your first dweet! https://redd.it/7mgcd1
Edit 2: I've set up a discord for discussing all things dwitter: https://discord.gg/emHe6cP
Old post:
Hi guys! Creator here, it seems you've crashed it. Currently working on getting it stabilized again.
I'll come back here and post some of my favorites when I'm not in such a hurry ;)
Update: I think we're good! Threw a bunch of hardware at it, which helped a bit at first, but then the extra caching added by my friend seems to be more than enough for the current load :D
806
u/Thatmanwiththefedora Dec 26 '17
I think we crashed it.
321
u/Foezjie Dec 26 '17
Can anyone explain how you start making something like these?
257
u/lurking_digger Dec 26 '17
Have they upped it to 280?
110
u/[deleted] Dec 26 '17
Demoscene is back in JavaScript form.
28
u/[deleted] Dec 26 '17
this one though...
66
u/Mr_Pickles_Esq Dec 26 '17
Beagle Bros, who wrote software for the Apple II back in the day, would have two-liner contests where people had to do something cool in two lines of AppleBasic. They would include them in their newsletters.
They were pretty amazing (and usually inscrutable) but one that stood out for me would simulate a train by revving the floppy drives back and forth faster and faster.
21
u/AyrA_ch Dec 26 '17
If you allow 1 kb
37
u/wavy_lines Dec 26 '17
That's some magic they've got over there. Nice.
41
u/[deleted] Dec 26 '17
r/loadingicon
10
u/Nezteb Dec 26 '17 edited Dec 26 '17
/r/tinycode (and the subreddits in its sidebar)
19
u/Harbingerx81 Dec 26 '17
Anyone here remember portal.hell.com? (may have been portal.hell.net)
It was essentially a collection of really cool and innovative website designs back in the late 90's. It was a major source of inspiration while I was in high school and people were making Geocities websites to share with their friends.
At the time, I was pretty adept at qBasic at the time and I learned SO much about web design from reverse engineering the code on some of those websites.
9
u/[deleted] Dec 26 '17
Is there anyway I can make sense of the 140 character code that is written? How can experiment, test and run these codes myself?
8
u/fkxfkx Dec 26 '17
Thanks for the link, I now have a fun new way to waste my life.
6
u/BreastUsername Dec 26 '17
I wonder if experienced programmers can tell what an image will look like just by looking at the code.
6
u/[deleted] Dec 27 '17
Sounds lame as fuck
Clicks ... THIS IS COOL AS FUCK
11
u/bliths Dec 26 '17
and TIFU by introducing reddit to a community called "dwitter"
13
u/terrified_traveler Dec 26 '17
I wish I had the motivation to learn code, it's so cool and seems like modern magic.
9
u/SCphotog Dec 26 '17
You should check out the demo scene. Search 64k Demos.
4
u/[deleted] Dec 26 '17
/u/currycakes
3
u/ldf1111 Dec 27 '17
I’ve always loved this creative visual coding stuff,the 140char limit is a nice idea but I’d like to learn some of the techniques involved which is harder with the minimised code
3
u/TrustworthyAndroid Dec 27 '17
These guys were probably pretty busy in class drawing on their TI-86 using functions
3
u/nickisaboss Dec 27 '17
Chris Shier makes a lot of cool things like this including the GifMelter
3
u/milkrusk Dec 27 '17
I don't understand any of the code but damn I want to now. So fucking cool.
4
u/Blueblaze97 Dec 26 '17
This is wonderful. Thanks for sharing.
2
u/kunteper Dec 26 '17
is there somewhere for people who want to learn how to make stuff like this?
2
u/[deleted] Dec 26 '17
Aaaaand bookmarked.
2
u/jiminiminimini Dec 26 '17
I don't know if you guys know about the audio programming language called Supercollider but there was this thing #sc140 about 140-character supercollider programs, some of which are pretty amazing if you are interested in that sort of thing. Apparently people are still tweeting with that hashtag on twitter.
2
u/[deleted] Dec 27 '17
https://www.dwitter.net/d/739 my favourite
2
u/[deleted] Dec 27 '17
This is very neat. It reminds me of the "Demo" scene in the 80's and 90's where talented graphics programmers would make amazing demo's in very limited RAM. Thanks for sharing.
2
u/madcapmonster Dec 27 '17
It would take me seven libraries and 478 lines of my own to make most of these
2
u/xen_the Dec 27 '17
very basic guide you can share: https://www.reddit.com/r/dwitter/comments/7mgcd1/basic_dwitter_guide/
3
u/CrinkIe420 Dec 26 '17
Damn I thought js1k was too limiting
3
u/Virtualization_Freak Dec 26 '17
/r/tinycode is another place that might interest some of you!
6
u/MisterAdzzz Dec 26 '17
RemindMe! 2 days
1
u/JIBIN-P Dec 26 '17
Its awesome.
1
u/[deleted] Dec 26 '17
When I'm drunk and think about outer space
1
u/fresherest_memes Dec 26 '17
Nice
1
u/mr-no-homo Dec 26 '17
Damn this is cool. Never knew it existed
1
u/apple_juice97 Dec 26 '17
Watching one of the visuals with Come Alive is the most awesomest thing ever.
1
u/ApeofBass Dec 26 '17
These ppl are smrt
1
u/24hReader Dec 26 '17
RemindMe! 2 days
1
u/[deleted] Dec 26 '17
When I first read this I was like how in the hell is 140 characters enough.... how people can write one line code like that, I cant understand it at all lol.
1
u/[deleted] Dec 27 '17
This is brilliant.
1
u/felio_ Dec 27 '17
I love it, thanks for showing me this!
1
u/felio_ Dec 27 '17
I love it, thanks for showing me this!
1
u/theofficialdeavmi Dec 27 '17
This is amazing.
1
u/SadGhoster87 Dec 27 '17
Welp, here I was thinking I knew anything about JS.
1
u/gullman Dec 27 '17
This is one of the coolest things I've ever seen. Straight to saved.
1
u/tuxmanexe Dec 27 '17
GOD BLESS JSFUCK
1
u/anawfullybadusername Dec 27 '17
Similar concept but unrelated, what is the place where people attempt to write bootloaders that produce interesting visuals?
1
u/mightylordredbeard Dec 27 '17
Coming from /r/all so sorry if this type of question is dumb or not allowed;
I don't know anything about coding, but the gifs below each code is what the codes created, right?
If so then man this is really cool!
1
u/HillaryDianeRodham Dec 27 '17
This is so fucking dank
1
u/bzmrktngbg10nch Dec 27 '17
This is easily one of the coolest things I've seen on Reddit -
1
u/SteeezyE Dec 27 '17
My favorite part is seeing my glorious 144 fps displayed.
1
u/LogeeBare Dec 27 '17
!remindme
1
u/[deleted] Dec 27 '17
This is insane!
1
u/indjev99 Dec 27 '17
TBH, I think you should add abs as one of the functions. Math.abs is way too long and it is really useful.
1
u/Chipnstein Dec 27 '17
For anyone interested, there's a cool little program called Plastuer which is PWYW (pay what you want, literally, $1 even) tho download servers are slow for the 80MB it has, you can do all cool sorts of backgrounds on your PC.
Just got it, made a .html file with some standard code foundhere and just copy paste in the code from Dwitter in the slot it tells you to.
If you want to change the background of the desktop itself, just add
just after the else{} in the ResizeCanvas() function at the top of the code. Find a nice color and play around. If you research a tiny bit, you can find out how to easily do a gradient as well.
NOTE: I am in no way associated with Plastuer by any means, I'm not trying to advertise it for any personal gain, simply to share with other little geeks like me about this cool little app.
1
u/[deleted] Dec 27 '17
My daily dose of feeling stupid for the day
1
u/Bloaf Dec 28 '17
Mathematica had a contest with this idea several years ago:
http://blog.wolfram.com/2010/12/17/the-mathematica-one-liner-competition/
1
u/Jarmahent Jan 01 '18
Wow.
1
u/emdeka87 Mar 22 '18
Kinda like Shadertoy but in JavaScript lol
1
u/[deleted] Jan 23 '23
Also worth noting: https://nanochess.org/chess4.html
1
u/Da-Blue-Guy Sep 11 '23
:O thats actually pretty cool!
1
u/scandalousmambo Dec 26 '17
And they still use 100% CPU.
1
u/DeuxAlpha Dec 26 '17
Amazing!
1
u/LostSkunk Dec 26 '17
Neat
1
u/crambler Dec 26 '17
HoD?
1
u/Iridion3007 Dec 26 '17
Can I use processing (p5.js)? Wanted to know more but the site is down :(
1
u/[deleted] Dec 26 '17
https://i.imgur.com/hYtjhIN.gifv