9 ms·
Show HN: Free and open-source home for art made with code
- antoineMoPa 8y agoFor some info about the tech stack, I use: - Ruby on Rails - Vue - CodeMirror - gif.js - avconv (FFMPEG) for video previews - A $5/Month Linode server The server handled being top 3 on HN with about 20 reqs/second with less than 15% CPU load. The editor uses an architecture that allows me to quickly add a new language. Just create a class & reference it. EDIT: Forgot to mention important parts: - Bulma CSS - feather SVG icons (https://feathericons.com/ https://feathericons.com/) - zip.js
- brian_herman__ 8y agoImpressive 20 req a second with just 15% cpu!
- partycoder 8y agoA server can do way more.
- antoineMoPa 8y agoAt 5 $ per month?
- remram 8y agoYes. Ruby is not that slow, this is not quite the throughput that will require load-balancing or even caching.
- cdubzzz 8y agoThe dark theme is beautiful — I really like everything about the font, styling and layout. Well done.
- feiss 8y agoNeat! very nice idea, well implemented. +1
- sarreph 8y agoThis is a refreshing take on a shader-sharing platform. My first thought was "Here's another Shadertoy competitor", but this was quashed by two core features that I think are done really well: - A cleaner / extensive code editor (that also supports JS, woop!) - Conversion of shader output to GIFs... Even on a laptop with a dedicated GPU, Shadertoy pulls the rug from underneath my system resources I would like to see a grid-view (unless this already exists and I missed it) of the feed, as I don't think scrolling through a feed of linear, huge one-by-one posts is good for discovery.
- antoineMoPa 8y agoThanks for the feedback, I like the grid idea!
- sarreph 8y agoNo worries :) — Great to hear. Just a question since you're here: I've poked around with WebGL / GLSL in the past and have started to get into Metal (mainly out of necessity for macOS development) — is there scope for Metal to be ported / rendered on the web, and if so would you be interested in adding that as a language?
- antoineMoPa 8y agoThere seems to be a fight between browser vendors for the next generation of 3D web standards - (https://news.ycombinator.com/item?id=16186043 https://news.ycombinator.com/item?id=16186043) As soon as some browsers support an implementation, I'll try it. (However, it will be difficult if it's Safari only, since I use Linux)
- sarreph 8y agoThank you for this information! Agreed on the boxing-in of Safari :)
- tokyodude 8y agothere's no fight. all the major players are working out the details. the last major detail is what format the shader language will be. Google and Mozilla are currently pushing for a subset of SPIR/V, Microsoft and Apple are pushing for a subset of HLSL. Both seem to have their merits
- geo_mer 8y agoThis is actually a very neat and useful website. Also respect for making the website fast and not adding any 3rd party scripts.
- antoineMoPa 8y agoYeah, it's terrible how things like Google analytics, web fonts, can slow things down. I tried to keep this app as light as possible. Of course, I will not get a lot of data for analysis, but as a user, I know what can be improved, I don't need to monitor every click, typed keys, mouse moves, ...
- geo_mer 8y agogoogle analytics is the only 3rd party script I am okay with. Maybe you should add it sometime in the future to get a rough idea about your users, I was talking mainly about the more intrusive analytics and ads scripts that plagued the web. It's rare to see anybody who respect his users to that extent these days :D respect again!
- aplummer 8y agoGA is also cached for most users, so the downloading part is non-existent.
- antoineMoPa 8y agoBut there is overhead at every tracked event because you have an extra request to Google.
- aplummer 8y agoTrue true, although GA batches these pretty smartly from what I remember.
- kibibu 8y agoThere's something to be said for having at least a small part of the Web hidden from the Google panopticon
- readysteady 8y agoi used this platform very first time and now a days i'm taking help from here: https://theanimationstudio.co/ https://theanimationstudio.co/ regarding art and animation point of view.
- sdan 8y agoThis is great. Hopefully I can use it in the future sometime.
- hate 8y agothanks for sharing!
- crummy 8y agoThis may sound like an odd request but at a creative codejam in Berlin a while back I saw something like this but "multiplayer" - different people could log on to a room and edit live. In this example they couldn't edit each others code but all shared the same output window. It used Processing. It ended up being kind of a shared creation/remix experience which was really cool. I figure adding live simultaneous edits is a fairly difficult ask but it's immediately what I looked for when I saw your page. Regardless, looks really cool!
- antoineMoPa 8y agoComplicated, but not impossible! In fact, I already have an issue in github for this: https://github.com/antoineMoPa/shadergif/issues/50 https://github.com/antoineMoPa/shadergif/issues/50 I will make it one of my priorities for the next months (Studying still being priority number 1, of course).
- harowitzblack 8y agowow, this is really interesting.
- speps 8y agoOne feature I found myself missing from ShaderToy is that you can't have render targets of arbitrary size. You have Buffer A/B/C/D but they're all the same size as the canvas. I would love to see a way to specify a shader that generates a 64x64 texture for example, that would allow some nice effects like a simple low res fluid sim.
- antoineMoPa 8y agoCurrently, I support many passes, but also at the canvas size. I took a note in my github issues and I will try to implement it when I have time! In the meantime, it is still possible to create 2D toy fluid sim: https://shadergif.com/search?search=fluid https://shadergif.com/search?search=fluid
- tfolbrecht 8y agoThe feed is cool, I would appreciate if it was subdivided with tags like Mandelbrot, fractal, etc. 10/10 would add to my daily RSS feeds!