TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Two million checkboxes (written in Elixir)

122 点作者 pjullrich11 个月前

20 条评论

blinding-streak11 个月前
Fuck everything, we&#x27;re doing 5 million checkboxes<p>[0] <a href="https:&#x2F;&#x2F;www.theonion.com&#x2F;fuck-everything-were-doing-five-blades-1819584036" rel="nofollow">https:&#x2F;&#x2F;www.theonion.com&#x2F;fuck-everything-were-doing-five-bla...</a>
josefrichter11 个月前
Funny 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.
评论 #40819585 未加载
评论 #40825717 未加载
评论 #40820899 未加载
评论 #40821884 未加载
评论 #40822212 未加载
评论 #40819586 未加载
评论 #40828830 未加载
评论 #40822873 未加载
评论 #40819770 未加载
pjullrich11 个月前
I upgraded the server to 2 performance CPUs and 8gb of ram, running on Fly.io Should be fiiiiiiine, right?
评论 #40822285 未加载
评论 #40819787 未加载
sillysaurusx11 个月前
It’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.<p>Love the user count too. That was missing from the first one.<p>It would be nice if it had a fixed zoom level so that messages like &quot;hi&quot; would show up the same for everybody. But given the scripting, I guess it wouldn’t matter anyway.<p>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.
评论 #40819952 未加载
bhaney11 个月前
Ha, 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&#x27;m curious how this compares.
评论 #40819473 未加载
评论 #40819482 未加载
madamelic11 个月前
What is wrong with un-checkers.<p>Like do y&#x27;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&#x27;s work.<p>EDIT: Feature request with that in mind: you should block someone&#x27;s ability for 5 seconds to click if they are clicking subsequent boxes and someone reverses the check&#x2F;uncheck within 2 seconds. Turn it into a real war.<p>eg: you are checking&#x2F;unchecking in a line and someone clicks the box right as you click it, you get stunned.
评论 #40819961 未加载
tomekowal11 个月前
Awesome! 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
mathverse11 个月前
For every checkbox unchecked there should be a pop-up ad.
评论 #40819993 未加载
kmorgh11 个月前
Is this going to be a thing now where someone releases a doubled version every week?<p>I would like that.
评论 #40819486 未加载
评论 #40819828 未加载
评论 #40820326 未加载
评论 #40819709 未加载
评论 #40819497 未加载
staticelf11 个月前
Elixir + 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.<p>I really do recommend everyone to try it out.
hu311 个月前
I was expecting it to keep 2million checkboxes updated in my browser.<p>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.<p><a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;uKH4wee.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;uKH4wee.png</a>
评论 #40822173 未加载
hun311 个月前
Which coordinate is the &quot;opt out of targeting cookies&quot; checkbox at?
vfclists11 个月前
It 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.<p>As of now (14:00 BST, circa 70 users)there is no display even for the numbers before that, 95000.
bcardarella11 个月前
Ok but where is the ceiling? I was told there would be a ceiling!
评论 #40819491 未加载
评论 #40819819 未加载
评论 #40819734 未加载
gsanghera11 个月前
Excellent! The scrolling could be better though. I love elixir - but the scrolling from the site a couple of days back was much snappier.
ecmascript11 个月前
Seems like the server disconnects pretty often. I get disconnected twice now which ruined the boxes I had selected. :(
评论 #40819660 未加载
butz11 个月前
Will one of those checkbox pages finally add support for &quot;indeterminate&quot; state?
cainxinth11 个月前
<i>Think about it. You walk into a video store, you see 8-Minute Abs sittin&#x27; there, there&#x27;s 7-Minute Abs right beside it. Which one are you gonna pick, man?</i>
评论 #40819919 未加载
darajava11 个月前
This has a much higher build quality than the one submitted a few days ago.
isodev11 个月前
Haha, this is so much fun! I love Elixir&#x2F;LiveView!