<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: lnyng</title><link>https://news.ycombinator.com/user?id=lnyng</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Tue, 07 Apr 2026 06:18:34 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=lnyng" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by lnyng in "A Rust API Inspired by Python, Powered by Serde"]]></title><description><![CDATA[
<p>Interesting post. We wrote this “below” utility [1] that monitor system metrics similar to atop. We want the ability to collect all metrics into a single object, pass it around and visualize it elsewhere. Naturally we need some way to query into fields or even nested-struct fields. For example, to get the file cache usage of a particular process, we need to go through sample->processes->pid->memory->file cache. To do it ergonomically and also type-safely, we end up using proc macro to generate enums that represent field paths of the structs and then use them to query values of non-struct (leaf) fields. I always wonder if there are simpler ways or existing proc macro derives to safe us the efforts. Maybe I do need to look into serde internals for some inspirations.<p>[1] <a href="https://github.com/facebookincubator/below/blob/main/below/below_derive/src/lib.rs">https://github.com/facebookincubator/below/blob/main/below/b...</a></p>
]]></description><pubDate>Thu, 15 May 2025 16:00:50 +0000</pubDate><link>https://news.ycombinator.com/item?id=43996392</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=43996392</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43996392</guid></item><item><title><![CDATA[New comment by lnyng in "I made a game you can play without anyone knowing (no visuals/sound)"]]></title><description><![CDATA[
<p>Additional suggestions:<p>- increase tolerance to slightly off taps, and gradually increase the number of ticks (not sure you already do this but right now it’s too hard win many times in a row)<p>- tik of the day mode. A long tick that challenges people who can win it in fewest trials</p>
]]></description><pubDate>Wed, 02 Oct 2024 14:07:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=41720823</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=41720823</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41720823</guid></item><item><title><![CDATA[New comment by lnyng in "I made a game you can play without anyone knowing (no visuals/sound)"]]></title><description><![CDATA[
<p>Bought and played for a while, 83 attempts with 12 corrects and max 2 corrects in a row. It s a very difficult game without visual and sound to aid figuring out the exact rhythm, and the game seems very strict about how much you can be off.<p>Suggestions:
- have an option to add 4 constant interval tiks at the beginning to help setup the base rhythm
- hold down the small white dot to return to menu so you can see progress without exiting
- have a way to visualize a rhythm similar to the example or skip it (maybe two finger hold?) if you are stuck
- some rhythms feel to have slightly uneven tempo. Is the duration of the tick taken into consideration when generating the tempo?<p>Interesting game overall. Well done</p>
]]></description><pubDate>Wed, 02 Oct 2024 13:49:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=41720646</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=41720646</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41720646</guid></item><item><title><![CDATA[New comment by lnyng in "Toothpaste Null-Terminator"]]></title><description><![CDATA[
<p>Many years ago I learned from some Japanese TV show that you can use centrifugal force to get the very last bit of toothpaste out of the tube even if you can’t squeeze out any more. Something similar to this: <a href="https://m.youtube.com/watch?v=u-4MKefJqbc" rel="nofollow">https://m.youtube.com/watch?v=u-4MKefJqbc</a></p>
]]></description><pubDate>Sat, 17 Aug 2024 17:55:14 +0000</pubDate><link>https://news.ycombinator.com/item?id=41276457</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=41276457</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41276457</guid></item><item><title><![CDATA[New comment by lnyng in "Fiber optic drone control beats any RF jammer"]]></title><description><![CDATA[
<p>What if deploy some high altitude balloons as base stations.</p>
]]></description><pubDate>Mon, 05 Aug 2024 23:00:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=41166405</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=41166405</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41166405</guid></item><item><title><![CDATA[New comment by lnyng in "I built an ROV to solve missing person cases"]]></title><description><![CDATA[
<p>One of the best articles I have read for years. It's easy to underestimate how difficult it is to make things "just work" in the first trial. I really envy the author's ability to plan for known and unknown situations. Marvelous job!</p>
]]></description><pubDate>Tue, 11 Jun 2024 03:53:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=40642132</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=40642132</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40642132</guid></item><item><title><![CDATA[New comment by lnyng in "Linux ate my RAM (2009)"]]></title><description><![CDATA[
<p>We published this paper "TMO: Transparent Memory Offloading in Datacenters" last year which covers some Linux memory management mechanisms that may be quite useful for providing reasonable estimations to application memory usage.<p>We observed that the real memory footprint for applications depends on many factors: file access pattern, disk IO speed (especially if swap is enabled), ssd vs hdd, application latency sensitivity, etc. Instead of coming up with some overly complicated heuristic, we use the Linux kernel provided memory.pressure [0] metric via cgroup v2. It measures the amount of time spent waiting for memory (page fault etc). Then by slowly reclaiming memory from the application until its memory pressure hits some target (say 0.1%), we can claim that the steady state usage is the actual memory footprint.<p>This may not be useful for PC but could be very useful for data center to track memory regression, and also to harvest disk swap without concerning too much about the cliff effect when the host runs out of memory and suddenly kernel pushes everything to swap space.<p>[0] <a href="https://facebookmicrosites.github.io/cgroup2/docs/pressure-metrics.html" rel="nofollow noreferrer">https://facebookmicrosites.github.io/cgroup2/docs/pressure-m...</a></p>
]]></description><pubDate>Tue, 10 Oct 2023 00:59:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=37827436</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=37827436</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37827436</guid></item><item><title><![CDATA[Meta's Deliberative Democracy for Metaverse and GenAI Governance]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.wired.com/story/meta-ran-a-giant-experiment-in-governance-now-its-turning-to-ai/">https://www.wired.com/story/meta-ran-a-giant-experiment-in-governance-now-its-turning-to-ai/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=36686525">https://news.ycombinator.com/item?id=36686525</a></p>
<p>Points: 3</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 11 Jul 2023 20:04:10 +0000</pubDate><link>https://www.wired.com/story/meta-ran-a-giant-experiment-in-governance-now-its-turning-to-ai/</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=36686525</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36686525</guid></item><item><title><![CDATA[New comment by lnyng in "Inky Impression 5.7“ – Colour e-ink display for Raspberry Pi"]]></title><description><![CDATA[
<p>Very nice! I would like to diy this into a picture frame. Wonder where would be a good place to find/make frame and casing that fit it?</p>
]]></description><pubDate>Mon, 22 Aug 2022 05:28:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=32547693</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=32547693</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32547693</guid></item><item><title><![CDATA[New comment by lnyng in "Attacking Titan M with Only One Byte"]]></title><description><![CDATA[
<p>For a moment I thought this is something related to the anime</p>
]]></description><pubDate>Mon, 15 Aug 2022 12:57:44 +0000</pubDate><link>https://news.ycombinator.com/item?id=32469094</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=32469094</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32469094</guid></item><item><title><![CDATA[New comment by lnyng in "Type-checked keypaths in Rust"]]></title><description><![CDATA[
<p>I created something similar for our project “below” (<a href="https://github.com/facebookincubator/below/blob/main/below/below_derive/src/lib.rs" rel="nofollow">https://github.com/facebookincubator/below/blob/main/below/b...</a>).<p>The program collects system resource metrics into a data structure and we need to display the fields with different styles and formats. In order to decouple the data structure from rendering, Queriable (Keyable) and FieldId (combine KeyPath + mirror struct into enum) are used. I will definitely like to checkout the KeyPath implementation as it seems more general.</p>
]]></description><pubDate>Mon, 27 Jun 2022 06:22:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=31891216</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=31891216</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31891216</guid></item><item><title><![CDATA[New comment by lnyng in "Show HN: Tetris, but silly"]]></title><description><![CDATA[
<p>Is it possible to make use of gravity sensor on phones?</p>
]]></description><pubDate>Fri, 06 May 2022 20:18:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=31289233</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=31289233</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=31289233</guid></item><item><title><![CDATA[New comment by lnyng in "ArtFrame: E-paper wireless artwork for your living room"]]></title><description><![CDATA[
<p>I was recently searching for wedding gift for my photographer friend and found this. There does not seem to exist many other e-paper art frames and this one looks decent. It also has some open source software (<a href="https://github.com/framelabs-eu" rel="nofollow">https://github.com/framelabs-eu</a>), but the firmware seems closed-source.</p>
]]></description><pubDate>Mon, 28 Mar 2022 17:54:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=30833432</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=30833432</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30833432</guid></item><item><title><![CDATA[New comment by lnyng in "ArtFrame: E-paper wireless artwork for your living room"]]></title><description><![CDATA[
<p>But that requires a wire that goes from the outlet all the way to the charge pad though, right? I think the main goal is to have no visible wire when it's on the wall. On the other hand 7k image changes before going out of battery seems quite a lot. Just not sure if that's a representative number.</p>
]]></description><pubDate>Mon, 28 Mar 2022 17:50:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=30833380</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=30833380</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30833380</guid></item><item><title><![CDATA[ArtFrame: E-paper wireless artwork for your living room]]></title><description><![CDATA[
<p>Article URL: <a href="https://framelabs.eu/en/">https://framelabs.eu/en/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=30830462">https://news.ycombinator.com/item?id=30830462</a></p>
<p>Points: 93</p>
<p># Comments: 82</p>
]]></description><pubDate>Mon, 28 Mar 2022 13:52:08 +0000</pubDate><link>https://framelabs.eu/en/</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=30830462</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30830462</guid></item><item><title><![CDATA[New comment by lnyng in "Sinking 1K NYC subway cars in the Atlantic to create a reef didn’t go as planned"]]></title><description><![CDATA[
<p>This reminds me of Splatoon 2’s deep sea metro. Can’t help laughing lol</p>
]]></description><pubDate>Fri, 28 Jan 2022 14:49:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=30115255</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=30115255</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=30115255</guid></item><item><title><![CDATA[New comment by lnyng in "How Microsoft reduced Windows 11 update size by 40%"]]></title><description><![CDATA[
<p>> Not regress install time.<p>They seems to achieve size reduction by transmitting only the forward upgrade patches, and let the machine generate the downgrade patches during the upgrade. How do they manage to keep install time the same while this definitely uses more resources (cpu, io)?</p>
]]></description><pubDate>Thu, 28 Oct 2021 05:34:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=29022732</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=29022732</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=29022732</guid></item><item><title><![CDATA[New comment by lnyng in "China has forbidden under-18s from playing games for more than three hours/week"]]></title><description><![CDATA[
<p>I believe this all comes down to enforcement, which is grey in the first place. It also matters if the game got (maliciously) reported to enforcement agents.</p>
]]></description><pubDate>Mon, 30 Aug 2021 17:01:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=28357891</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=28357891</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=28357891</guid></item><item><title><![CDATA[New comment by lnyng in "China has forbidden under-18s from playing games for more than three hours/week"]]></title><description><![CDATA[
<p>I wonder if the journey article author didn’t think online game differs much with general games.</p>
]]></description><pubDate>Mon, 30 Aug 2021 16:55:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=28357816</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=28357816</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=28357816</guid></item><item><title><![CDATA[New comment by lnyng in "China has forbidden under-18s from playing games for more than three hours/week"]]></title><description><![CDATA[
<p>Original notice from the government: <a href="https://web.archive.org/web/20210830120201/http://www.nppa.gov.cn/nppa/contents/279/98792.shtml" rel="nofollow">https://web.archive.org/web/20210830120201/http://www.nppa.g...</a><p>Google translation of the first entry:<p>> Strictly limit the time for providing online game services to minors. Since the implementation of this notice, all online game companies can only provide minors with one-hour online game services from 20 to 21:00 on Friday, Saturday, Sunday and legal holidays. At other times, it is not allowed to provide online game services to minors in any form.</p>
]]></description><pubDate>Mon, 30 Aug 2021 16:11:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=28357167</link><dc:creator>lnyng</dc:creator><comments>https://news.ycombinator.com/item?id=28357167</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=28357167</guid></item></channel></rss>