5 ms·
Two million checkboxes (written in Elixir)
- bhaney 2y agoHa, nice. Any interesting notes on scaling and load testing? At what point does it fall over? We all found it out empirically with One Million Checkboxes, so I'm curious how this compares.
- pjullrich 2y agoI'll let you know once we had actually hit some performance ceiling. Right now, there like 50 users. I don't even see that in my metrics. But I'll keep you posted.
- wruza 2y agoSome numbers. When cursors.io (now dead, search images) had a huge influx from China for some time, it went into thousands daily. According to wiki, r/place attracted 90k, mostly bots, I guess. There isn’t much to retain a “player” in subj tbh, so…
- ahamez 2y agoYou can read more information here: https://github.com/PJUllrich/twomillioncheckboxes https://github.com/PJUllrich/twomillioncheckboxes
- kmorgh 2y agoIs this going to be a thing now where someone releases a doubled version every week? I would like that.
- pjullrich 2y agoI just built my own version because I was curious how this would look like in a server-side rendered framework like LiveView. But I'm all for it that we build different versions in different stacks and compare notes :)
- _kb 2y agoI’ll setup a chessboard to keep track of them on.
- neogodless 2y agoWe could call it More's Law.
- wanderingstan 2y agoI’d like to see it go exponential: “one million websites of one million checkboxes” Perhaps every checkbox in the toplevel site spawns a new, million-checkbox page? :)
- jimbobthrowawy 2y agoIf there were to be an arms race like that, my first attempt would be infinite-checkboxes or similar. Would probably run absolutely horribly on anything but the beefiest machines, and cost thousands of dollars for bandwidth. Would need to come up with a way to make (un)checking computationally expensive to stop the state immediately ballooning to gigabytes in size.
- bcardarella 2y agoOk but where is the ceiling? I was told there would be a ceiling!
- pjullrich 2y agoLet's find out! :D
- 01HNNWZ0MV43FF 2y agoDid they do Rust yet?
- patates 2y agoCeiling found, check!
- staticelf 2y agoElixir + Phoenix Liveview is such a mind blowing set of software. It really is something different that works so well for the majority of web applications. I really do recommend everyone to try it out.
- josefrichter 2y agoFunny how these things are fairly simple on BEAM. Funny how majority of industry won’t ever learn anything about BEAM and will keep hitting walls for the rest of their careers.
- jahsome 2y agoWithout evaluating the merits of your statement, I find it funny you start out implying others are close-minded, but end up rather close-minded yourself.
- bcardarella 2y agoConsidering how many other solutions that are all trying to solve distributed systems issues but avoiding just using Erlang or Elixir I think the statement has merit.
- cpursley 2y agoExactly, I've commented many times on here that at least half the show hn posts (like Hatchet from yesterday) are just overlycomplex implementations of features that have existed on the beam for decades. Or at least already in the Erlang/Elixir ecosystem (Oban, for example).
- 01HNNWZ0MV43FF 2y agoProof that the only thing that matters about any software is whether it's easy for beginners to get into. What's wrong with Erlang that in ten years it's seen so little adoption?
- cpursley 2y ago10 years? You mean 38 years. And Elixir (a language on top of Erlang) has had solid adoption and is very easy for beginners. https://joyofelixir.com/ https://joyofelixir.com/
- 2y ago
- deleted 2y ago[deleted]
- mathverse 2y agoFor every checkbox unchecked there should be a pop-up ad.
- blinding-streak 2y agoFor every comment like this you should have to sit through a PSA for OCD /s
- ecmascript 2y agoSeems like the server disconnects pretty often. I get disconnected twice now which ruined the boxes I had selected. :(
- pjullrich 2y agoYes sorry I just had to upgrade the server and deploy a new version which now shows an updated checkbox checked count.
- cainxinth 2y agoThink about it. You walk into a video store, you see 8-Minute Abs sittin' there, there's 7-Minute Abs right beside it. Which one are you gonna pick, man?
- cobbzilla 2y ago“What about 6-minute abs??”
- pjullrich 2y agoI upgraded the server to 2 performance CPUs and 8gb of ram, running on Fly.io Should be fiiiiiiine, right?
- hun3 2y agoWhich coordinate is the "opt out of targeting cookies" checkbox at?
- sillysaurusx 2y agoIt’s actually fascinating to watch this one. You can see scripters fighting for control. I just watched all the checkboxes get unchecked within a couple seconds, followed by an equally swift counterchecking from the opposing side. Love the user count too. That was missing from the first one. It would be nice if it had a fixed zoom level so that messages like "hi" would show up the same for everybody. But given the scripting, I guess it wouldn’t matter anyway. Now you know what you have to do next: add 8-bit color selection support. Then we can prove once and for all what HN’s favorite color is.
- deleted 2y ago[deleted]
- madamelic 2y agoWhat is wrong with un-checkers. Like do y'all leave carts out in the parking lots and Starbucks drinks on shelves? What went wrong in your life that you think it is fun to destroy other people's work. EDIT: Feature request with that in mind: you should block someone's ability for 5 seconds to click if they are clicking subsequent boxes and someone reverses the check/uncheck within 2 seconds. Turn it into a real war. eg: you are checking/unchecking in a line and someone clicks the box right as you click it, you get stunned.
- blinding-streak 2y agoIt's a checkbox. It has one job in life. To be clicked. Your OCD isn't going to prevent me from clicking some checkboxes, either to check or uncheck them.
- deleted 2y ago[deleted]
- tomekowal 2y agoAwesome! Would it be possible to make checkbox number part of the url? This way, I could send someone a link straight to part of canvas, that I worked on :D
- blinding-streak 2y agoFuck everything, we're doing 5 million checkboxes [0] https://www.theonion.com/fuck-everything-were-doing-five-blades-1819584036 https://www.theonion.com/fuck-everything-were-doing-five-bla...
- isodev 2y agoHaha, this is so much fun! I love Elixir/LiveView!
- vfclists 2y agoIt has gone wonky. An hour ago even with more users circa 170 I was able to jump to 1900000 and above and get a display. As of now (14:00 BST, circa 70 users)there is no display even for the numbers before that, 95000.
- darajava 2y agoThis has a much higher build quality than the one submitted a few days ago.
- gsanghera 2y agoExcellent! The scrolling could be better though. I love elixir - but the scrolling from the site a couple of days back was much snappier.
- butz 2y agoWill one of those checkbox pages finally add support for "indeterminate" state?
- hu3 2y agoI was expecting it to keep 2million checkboxes updated in my browser. But looking at the websocket messages, it seems to only send updates about the slice I am looking at which consists of 1441 checkboxes at a time. https://i.imgur.com/uKH4wee.png https://i.imgur.com/uKH4wee.png
- 01HNNWZ0MV43FF 2y agoDarn, I was gonna do that optimization