8 ms·
Repl.it GFX: Native graphics development in the browser
- nicbarth 8y agoThis is awesome! I see you have tkinter, but could you guys add tcl / tk as a language please! It'd be awesome to have tcl / tk apps on the web.
- amasad 8y agoHere you go: https://repl.it/@amasad/tcl-GUI https://repl.it/@amasad/tcl-GUI We'll add it as a top-level language soon.
- nicbarth 8y agoWoah! This is so cool! Thank you so much! Runs my Tetris clone perfectly ahaha. https://repl.it/@nickbarth/Tk-Tetris https://repl.it/@nickbarth/Tk-Tetris
- yellowapple 8y agoWell now I'm sold.
- snazz 8y agoRunning the Chromium instance within the Chromium instance within the blog post worked better than expected!
- amasad 8y agoHow many levels deep did you get? I got 3 (excluding base reality) https://imgur.com/a/Zuh9d78 https://imgur.com/a/Zuh9d78
- yellowapple 8y agoI got to three and was about to try four, but then the second one spontaneously combusted or something and reloaded itself.
- deleted 8y ago[deleted]
- sgeller 8y agoI did this then looked for a thread in case someone (you) already came up with it: https://imgur.com/a/BCESAuh https://imgur.com/a/BCESAuh
- amasad 8y ago4 levels?! Nice!
- gjsman-1000 8y agoChromium in Chrome? WTH? AWESOME! Blew my mind.
- amasad 8y agoHow many levels deep did you get? I got 3 (excluding base reality) https://imgur.com/a/Zuh9d78 https://imgur.com/a/Zuh9d78
- keeganpoppen 8y agoreally a great, evocative demo-- i couldn't help but giggle a bit when it all loaded up, and i knew it was coming! =D
- techntoke 8y agoTook way too long to load on a Gigabit connection. Whatever happened to resource optimization? This is so silly, just build a native framework using Qt.
- maccio92 8y agoAh yes nothing experimental or demonstrative should exist or be attempted because other things exist too
- techntoke 8y agoI never said that, but there is no reason to run cloud-based desktop environments like this in your web browser for tools that are designed to be ran on your desktop natively.
- asadlionpk 8y agoI think you should have that connection checked. Besides, the page is running multiple embedded VNC clients some even running entire chrome instances and all you could measure was load times?
- spookthesunset 8y agoDo you have anything positive to contribute to this discussion?
- cortexio 8y agoIn my opinion, the negative comments are more useful for the OP than the positive ones.
- amasad 8y agoRepl.it co-founder here -- happy to answer questions :) This is just coming out and lots of users are building impressive games; here is quick small sample of things I found interesting: - Super Mario: https://repl.it/@JONASRAINS/SMOB3-Python https://repl.it/@JONASRAINS/SMOB3-Python - Pacman: https://repl.it/@argthe1st/Pacman https://repl.it/@argthe1st/Pacman - Flappy Bird (hold space to fly): https://repl.it/@rennecastro/FlappyBird https://repl.it/@rennecastro/FlappyBird - Dungeon game: https://repl.it/@AbrahamTinajero/VOLTHEGAME-V-061 https://repl.it/@AbrahamTinajero/VOLTHEGAME-V-061 - LOVE2D Ant: https://repl.it/@Essentuan/AntLove https://repl.it/@Essentuan/AntLove - Evolution simulator: https://repl.it/@dumfing/OutpaceEvolution https://repl.it/@dumfing/OutpaceEvolution - Doom style 3D maze: https://repl.it/@KatyaDelaney/GameJam-3DMAZE https://repl.it/@KatyaDelaney/GameJam-3DMAZE I'm personally bullish on Pyxel -- the pico-8-like Python environment. Here is one of the example games running: https://repl.it/@amasad/jumper https://repl.it/@amasad/jumper (make sure to check the sweet asset editor; instructions in the comment). Also, I forgot to mention in the post but this works great with friends on Multiplayer -- you'll be able to interact with the same machine and output. Earlier this morning I watched YouTube with a bunch of random Twitter users: https://twitter.com/amasad/status/1108804242393821184 https://twitter.com/amasad/status/1108804242393821184 ^^
- sansnomme 8y agoWhat VNC are you using?
- amasad 8y agoServer: x11-vnc Client: NoVNC
- bronco21016 8y agoAre there any options available that utilize h264 as the screen delivery protocol in the browser? I’ve always just found VNC to be so finicky and laggy. Cool demo!
- 8y ago
- sergiotapia 8y agoWhy do the games run at super low FPS? Seems like 3 FPS or such. Mac Mojave, Firefox 67.0b3 64bit
- amasad 8y agoWhich games? In general: Repl.it infra is a multitenant container system and you might get unlucky sometimes and get a VM that's super crowded (reloading might work). Btw, if you login we also give you more compute resources and things will run faster.
- winslow 8y agoI've had the same issue on MacBook pro (Sierra) on Chrome. Both tetris and super mario were unplayable as they were to slow.
- amasad 8y agoHold on. Scaling up. For the curious here is the cpu load avg thanks to the hackernews hug of death: https://imgur.com/a/QviYhG9 https://imgur.com/a/QviYhG9 (Yellow line is a 100% saturation -- eek!)
- techntoke 8y agoThis is why cloud development environments are a bad idea, instead companies should be focused on open source and client-side automated solutions.
- amasad 8y agoI think that's a bit of a hastily generalization. We mentioned in the post (under Technology) that it's still beta quality. More generally though we have millions of users that don't have the luxury of running a fancy local developer environment. Either they're on chromebooks or tablets or they don't have a computer altogether.
- 8y ago
- Rebelgecko 8y agoThe screen that says "run your repl to see output" never changes when I hit run. Anyone else never seeing any actual graphics? I'm using Firefox on OSX 10.12.6.
- kbenson 8y agoAre you hitting the differently colored word "run" in the sentence on that screen, or are you clicking the play button above the code that's above that screen? I was doing the former at first, until I noticed that button. Also on Firefox, but Windows 10.
- Rebelgecko 8y agoI'm hitting the play button. Something is definitely running, there's lots output in the little text console (at least initially)
- amasad 8y agoAre you behind a firewall that blocks WebScokets? Try this: https://www.websocket.org/echo.html https://www.websocket.org/echo.html
- Rebelgecko 8y agoInteresting. That echo test fails for me in Firefox but works fine in Chrome. However the repl doesn't give me graphics in either browser.
- amasad 8y agoStrange. Any error in devtools?
- hiisukun 8y agoReceived a bunch of errors and couldn't get the game to run. Firefox 65 on Fedora 29. Polygott chromium-browser --no-sandbox https://repl.it/blog/gfx XOpenDisplay((null)) Starting X xset: unable to open display ":0" nohup: redirecting stderr to stdout [ I snipped out some non-error lines ] XOpenDisplay((null)) [13:59:0322/035214.877492:ERROR:bus.cc(396)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory xcb_connection_has_error() returned true [13:13:0322/035214.990820:ERROR:browser_dm_token_storage_linux.cc(101)] Error: /etc/machine-id contains 0 characters(32 were expected). XOpenDisplay((null)) XOpenDisplay((null)) [67:67:0322/035215.770758:ERROR:sandbox_linux.cc(364)] InitializeSandbox() called with multiple threads in process gpu-process. [13:254:0322/035216.684721:ERROR:bus.cc(396)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") Similar failure to run for all of them actually: Python3 with Pygame nohup: redirecting stderr to stdout xset: unable to open display ":0" ^CTraceback (most recent call last): File "main.py", line 400, in <module> main_menu(win) File "main.py", line 387, in main_menu draw_text_middle(win, 'Press Any Key To Play', 60, (255,255,255)) File "main.py", line 190, in draw_text_middle label = font.render(text, 1, color) KeyboardInterrupt XIO: fatal IO error 0 (Success) onX server ":0" after 135 requests (135 knownprocessed) with 1 events remaining. exit status 1
- VectorLock 8y agoPretty sick! Hows it work? I'd love to be able to have Pygame stuff show up right in a web browser and not have it be wrapped by repl.it.
- amasad 8y agoComing soon. This will leverage our repl.run product which allows you to ship any app -- web, terminal, desktop, etc -- as a web page https://repl.it/talk/announcements/BetaExplorers-Announcing-replrun-publish-your-terminal-apps-as-websites/7802 https://repl.it/talk/announcements/BetaExplorers-Announcing-...
- deleted 8y ago[deleted]
- dannycastonguay 8y agoI just came here to say thank you for doing this team. When I wanted to teach my 5 year old how to type and do basic math, I did it in clojure using Repl.it I may have biased it, but she found the experience more engaging than MIT Scratch (which is also very good). When kids and newbies engage with a product so easily (think git before github), you suddenly vastly increase the userbase.
- amasad 8y agoThanks Danny! I think Scratch is probably the most impactful tool in getting more people into programming. We have nothing but respect for the team. However, when we talk to some of the kids coming to Repl.it from Scratch they often say something along the lines of Scratch is an "adult's idea of what kids might like". I think some kids want to feel like hackers and like they're doing "the real thing." To that end we're working on a framework that has similar semantics to Scratch but is actually Python: https://github.com/replit/play https://github.com/replit/play BTW: a 5 year old learning Clojure is fascinating. I hope you write about that sometime.
- maitredusoi 8y ago>>>However, when we talk to some of the kids coming to Repl.it from Scratch they often say something along the lines of Scratch is an "adult's idea of what kids might like". I think some kids want to feel like hackers and like they're doing "the real thing."<<< This is just one of the most impactful sentence I have ever heard, as I am trying to build a really simple flow programming interface.
- noxToken 8y ago> However, when we talk to some of the kids coming to Repl.it from Scratch they often say something along the lines of Scratch is an "adult's idea of what kids might like". I think some kids want to feel like hackers and like they're doing "the real thing." I teach a low-impact, almost impossible to fail programming elective to HS students. We start with a fork of Scratch, and we eventually move to Python. The above is generally the response of my students as well. Scratch is a nice, gentle introduction, but then it becomes more tedious clicking through categories, dragging-and-dropping, and maintaining an organized environment with larger assignments. I'm inclined to agree. Also transferring concepts from Scratch to a terminal language doesn't click for most students. I'm still working on bettering my lesson plans in that aspect. I do want to counter with something positive about these visual implementations though. I think boot strapping the course would be 10 times harder with just a terminal language.
- aboutruby 8y agoQuite impressive, you can basically run anything on a VNC, this could even be used for automated browser testing and many other things! Congrats!
- williamstein 8y agoThis reminds me a lot of the new X11 graphics support we have in https://CoCalc.com https://CoCalc.com -- http://blog.sagemath.com/cocalc/2018/11/05/x11.html http://blog.sagemath.com/cocalc/2018/11/05/x11.html
- miki123211 8y agoI'm really impressed by what this team is doing. When will we be running Word in multi player mode instead of Google Docs? Just half kidding.
- ZeikJT 8y agohttps://support.office.com/en-us/article/collaborate-on-word-documents-with-real-time-co-authoring-7dd3040c-3f30-4fdd-bab0-8586492a1f1d https://support.office.com/en-us/article/collaborate-on-word...
- hacker_9 8y agoThis is very cool. Any plans to support Elm lang in the future?
- cortexio 8y agoIt seems kinda slow (FPS wise). The idea is pretty cool though.
- computing 8y agojust awesome