<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: sweetsocks21</title><link>https://news.ycombinator.com/user?id=sweetsocks21</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Wed, 24 Jun 2026 08:15:22 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=sweetsocks21" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by sweetsocks21 in "Algebraic Effects for the Rest of Us"]]></title><description><![CDATA[
<p>I think the parent may be getting at the continuation aspect of effects? Effect systems make the stack a first class object you can reuse, I think a standard example is implementing a scheduler. I'm not familiar with your Bluefin library so maybe it already handles this:<p><pre><code>  effect Sched =
    yield : unit -> unit
    fork  : (unit -> unit) -> unit
  end
  
  let mut run_queue = []
  let enqueue t = run_queue := List.concat run_queue [t]
  
  let dequeue () =
    match run_queue with
    | [] -> ()
    | t :: rest ->
      run_queue := rest;
      t ()

  let rec spawn task =
    handle
      task ()
    with
    | return _ -> dequeue ()
    | yield () k ->
      enqueue (fn () -> resume k ());
      dequeue ()
    | fork f k ->
      enqueue (fn () -> resume k ());
      spawn f

  let run main = spawn main

  let worker name steps =
    let rec loop i =
      if i > steps do ()
      else do
        print $"{name}: step {i}";
        perform yield ();
        loop (i + 1)
      end
    in
    loop 1
  
  let () =
    run (fn () ->
      print "main: starting";
      perform fork (fn () -> worker "A" 3);
      perform fork (fn () -> worker "B" 3);
      print "main: forked workers, now yielding";
      perform yield ();
      print "main: done")
</code></pre>
output:<p><pre><code>  main: starting
  A: step 1
  B: step 1
  A: step 2
  main: forked workers, now yielding
  B: step 2
  A: step 3
  main: done
  B: step 3</code></pre></p>
]]></description><pubDate>Sat, 30 May 2026 23:43:08 +0000</pubDate><link>https://news.ycombinator.com/item?id=48341683</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=48341683</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48341683</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "A case for Go as the best language for AI agents"]]></title><description><![CDATA[
<p>OCaml has full multicore support with algebraic effects now. The effect system makes things like async very nice as there's no function "coloring" problem: <a href="https://discuss.ocaml.org/t/ocaml-5-0-0-is-out/10974" rel="nofollow">https://discuss.ocaml.org/t/ocaml-5-0-0-is-out/10974</a><p>But I don't believe the effects are tracked in the type system yet, but that's on it way.</p>
]]></description><pubDate>Mon, 02 Mar 2026 21:00:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=47223990</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=47223990</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47223990</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Always bet on text (2014)"]]></title><description><![CDATA[
<p>For a computer, text is a binary format like anything else. We have decades of tooling built on handling linear streams of text where we sometimes encode higher dimensional structures in it.<p>But I can't help feel that we  try to jam everything into that format because that's what's already ubiquitous. Reminds me of how every hobby OS is a copy of some Unix/Posix system.<p>If we had a more general structured format would we say the opposite?</p>
]]></description><pubDate>Sat, 27 Dec 2025 01:37:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=46398300</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=46398300</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46398300</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Verification-First Development"]]></title><description><![CDATA[
<p>This reminds me of expect tests in OCaml[0]. You create a test function that prints some state and the test framework automatically handles diffing and injecting the snapshot back into the test location. It helps keep your code modular because you need to create some visual representation of it. And it's usually obvious that's wrong through the diff.<p>[0] <a href="https://github.com/janestreet/ppx_expect" rel="nofollow">https://github.com/janestreet/ppx_expect</a></p>
]]></description><pubDate>Wed, 19 Mar 2025 03:02:44 +0000</pubDate><link>https://news.ycombinator.com/item?id=43407905</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=43407905</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43407905</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Nix – Death by a Thousand Cuts"]]></title><description><![CDATA[
<p>I will say I really love the outcome of a Nix development environment. Especially with nix-direnv having a reproducible build environment by doing git clone on any machine is amazing. NixOS has also saved my ass a couple times doing kernel updates on an old laptop, rollbacks are nice. Having consistent commands "nix build"/"nix run" is great. It's a universal build system that works across different technology stacks. Pain to setup, but bliss when it's working.<p>The bad part is the impenetrable errors and obscure configuration. Although, with the rise of LLMs I find it's not as bad. Getting a non-trivial flake.nix setup is much easier now. Could never remember the override system before, but can manage with Chat GPT haha.</p>
]]></description><pubDate>Wed, 15 Jan 2025 01:28:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=42706255</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=42706255</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42706255</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "We need visual programming. No, not like that"]]></title><description><![CDATA[
<p>It looks like this: 
<a href="https://unit.software/" rel="nofollow">https://unit.software/</a><p>Was on HN recently:
<a href="https://news.ycombinator.com/item?id=40900029">https://news.ycombinator.com/item?id=40900029</a></p>
]]></description><pubDate>Mon, 15 Jul 2024 02:57:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=40964933</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=40964933</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40964933</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Clean your codebase with basic information theory"]]></title><description><![CDATA[
<p>Intentional Software was working on a system like this many years ago: <a href="https://youtu.be/tSnnfUj1XCQ?t=230" rel="nofollow">https://youtu.be/tSnnfUj1XCQ?t=230</a><p>Part 2: <a href="https://m.youtube.com/watch?v=ZZDwB4-DPXE" rel="nofollow">https://m.youtube.com/watch?v=ZZDwB4-DPXE</a><p>You can project your programs into different views and add lots of metadata about the program and use that data in various contexts. Also extends to source control and other use cases. It looked really neat.<p>I'm not sure what happened to it.</p>
]]></description><pubDate>Mon, 19 Feb 2024 16:47:09 +0000</pubDate><link>https://news.ycombinator.com/item?id=39431856</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=39431856</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=39431856</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Brains are not required to think or solve problems – simple cells can do it"]]></title><description><![CDATA[
<p>I buy into this theory, and the other one about consciousness being a step or two behind and fabricating some cohesive explanation for why you did what you did.<p>If you are unfortunate enough to experience some human body failure modes you can get a glimpse into this process. The cohesive "veil" breaks down and you realize there's more "you" than that voice in your head. The distributed nature of the brain/body peeks through.</p>
]]></description><pubDate>Thu, 25 Jan 2024 16:47:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=39131576</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=39131576</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=39131576</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "48x32: A 1536 LED Game Computer"]]></title><description><![CDATA[
<p>This brings back memories. I ordered a NerdKit many years ago and one of the projects was making a scrollable LED panel using similar techniques you're describing:<p><a href="http://www.nerdkits.com/store/NKLEDARRAY001/" rel="nofollow">http://www.nerdkits.com/store/NKLEDARRAY001/</a><p>Multi panel extension: <a href="http://www.nerdkits.com/videos/multipanel_spi_ledarray/" rel="nofollow">http://www.nerdkits.com/videos/multipanel_spi_ledarray/</a></p>
]]></description><pubDate>Sat, 30 Dec 2023 14:46:05 +0000</pubDate><link>https://news.ycombinator.com/item?id=38815625</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=38815625</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38815625</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "How random is xkcd? (2015)"]]></title><description><![CDATA[
<p>I've noticed this too! It's especially bad after using discover weekly and liking a song or two, the shuffle then gets stuck on similar songs. It seems disabling "automix" in the settings returns the shuffle to be more like a traditional random shuffle.</p>
]]></description><pubDate>Thu, 28 Dec 2023 15:52:52 +0000</pubDate><link>https://news.ycombinator.com/item?id=38794635</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=38794635</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38794635</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "High myopia is now the leading cause of blindness in Japan, China, and Taiwan"]]></title><description><![CDATA[
<p>I've also had floaters and sometimes flashes (pin pricks) of light since childhood. Still have 20/20 vision, and every time I've gotten an eye exam they've said the retina looks healthy. From what I understand it'll be more of a "blizzard" of floaters when detachment is happening. At least for me the number of floaters seems to be highly correlated with my sleep quality. The flashes seem correlated with my blood pressure.</p>
]]></description><pubDate>Thu, 28 Dec 2023 00:34:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=38788594</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=38788594</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38788594</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Rules of schema growth (2017)"]]></title><description><![CDATA[
<p>I've been keeping an eye on <a href="https://github.com/cozodb/cozo">https://github.com/cozodb/cozo</a> which is pretty close to something I've wanted, a sqlite version of datalog/datomic.</p>
]]></description><pubDate>Tue, 31 Oct 2023 19:47:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=38090448</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=38090448</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38090448</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Staying Alive"]]></title><description><![CDATA[
<p>If you do take the teleporter it mentions that as well:<p>> Your three choices show that this is what you see as central to your sense of self, not any attachment to a particular substance, be it your body, brain or soul. However, some would say that you have not survived at all, but fallen foul of a terrible error. In the teletransporter case, for example, was it really you that travelled to Mars or is it more correct to say that a clone or copy of you was made on Mars, while you were destroyed?</p>
]]></description><pubDate>Sun, 25 Jun 2023 16:22:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=36469859</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=36469859</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36469859</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Poor sleep drove me insane, and my long path to recovery"]]></title><description><![CDATA[
<p>I appreciate you sharing your story. I had a similar journey over the last couple years because of the pandemic. Looking back now it was definitely an issue at least as far back as early teens.<p>I used to work out a lot, and very intensely as that was the only thing that made me feel "awake". It wasn't until the lockdowns when I couldn't get to the gym that it got bad enough that I also started my own journey to this diagnosis.<p>I had started living more in the dream world than the real world and being awake was a daze. I became distant to the world and lost my imagination, memory, and emotion. I was also questioning how I could ever go on with my current job and life.<p>Thankfully, I also started a sleep apnea treatment (oral appliance, and later CPAP) after many discussions with my doctor. This mostly fixed my condition. The difference is incredible and I don't have the words to describe how it has changed my life.<p>So I want to say thank you for sharing your story, you're not alone and I hope others see your story and get the help they need.<p>If you've read this story and suffer any of the symptoms mentioned, I highly recommend doing a sleep study, it's truly life altering.</p>
]]></description><pubDate>Mon, 27 Feb 2023 05:58:14 +0000</pubDate><link>https://news.ycombinator.com/item?id=34953514</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=34953514</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34953514</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Beyond Functional Programming: The Verse Programming Language [pdf]"]]></title><description><![CDATA[
<p>I believe it is the same. Tim's Twitter has a lot of references to it:<p><a href="https://mobile.twitter.com/TimSweeneyEpic/status/1595500621372788746" rel="nofollow">https://mobile.twitter.com/TimSweeneyEpic/status/15955006213...</a><p><a href="https://mobile.twitter.com/TimSweeneyEpic/status/1602182120708915201" rel="nofollow">https://mobile.twitter.com/TimSweeneyEpic/status/16021821207...</a><p>You can find more information here:
<a href="https://www.reddit.com/r/uefn/" rel="nofollow">https://www.reddit.com/r/uefn/</a><p>I believe they've been using Fortnite as a testing ground for a while now, to hammer out the design.</p>
]]></description><pubDate>Mon, 12 Dec 2022 16:24:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=33956506</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=33956506</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33956506</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Beyond Functional Programming: The Verse Programming Language [pdf]"]]></title><description><![CDATA[
<p>It's cool to finally get some more details on this language. They showed some slides of it being used in Fortnite last year:<p><a href="https://mobile.twitter.com/saji8k/status/1339709691564179464?s=20" rel="nofollow">https://mobile.twitter.com/saji8k/status/1339709691564179464...</a><p>I believe it has roots in (but quite different from) Skookumscript<p><a href="https://skookumscript.com/about/look/" rel="nofollow">https://skookumscript.com/about/look/</a></p>
]]></description><pubDate>Sun, 11 Dec 2022 22:32:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=33948299</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=33948299</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33948299</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Delimiter-first code"]]></title><description><![CDATA[
<p>This delimiter first pattern is used a lot in Ocaml code as well:<p>Records:
<a href="https://github.com/janestreet/base/blob/master/src/avltree.ml#L21" rel="nofollow">https://github.com/janestreet/base/blob/master/src/avltree.m...</a><p>If statements:
<a href="https://github.com/janestreet/base/blob/master/src/string.ml#L84" rel="nofollow">https://github.com/janestreet/base/blob/master/src/string.ml...</a><p>Lists:
<a href="https://github.com/janestreet/base/blob/master/src/string.ml#L175" rel="nofollow">https://github.com/janestreet/base/blob/master/src/string.ml...</a><p>Function calls:
<a href="https://github.com/janestreet/base/blob/master/src/string.ml#L219" rel="nofollow">https://github.com/janestreet/base/blob/master/src/string.ml...</a><p>Type definitions:
<a href="https://github.com/janestreet/base/blob/master/src/array.ml#L61" rel="nofollow">https://github.com/janestreet/base/blob/master/src/array.ml#...</a><p>It's not always used, shorter snippets tend to be all on one line.</p>
]]></description><pubDate>Fri, 09 Dec 2022 16:29:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=33923153</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=33923153</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33923153</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Obsidian 1.0 – Personal knowledge base app"]]></title><description><![CDATA[
<p>Is there a note taking app/knowledge database that auto-magically tags + adds metadata to everything and is searchable?<p>I've tried many different tools in the past and I find I can't stay organized. I don't want to sit there linking stuff together, I just want to jot down a quick note or thought and have it link up with enough stuff that I can find it easily later.<p>I was thinking of making a personal tool based on some kind of database like datalog. Where I can dump a bunch of facts and have the computer automatically tag and link items.<p>I'd love something that knows I'm currently in a meeting with X,Y,Z persons while I took a note and automatically links it with them and any keywords etc from my note to other notes and topics.<p>I saw a demo for outreach? I think that did some cool stuff for sales, listening to phone calls and making notes linking people etc. I want that but for _everything_ haha. Have it link in with JIRA, slack, GitHub, Gmail etc. One stop shop.</p>
]]></description><pubDate>Fri, 14 Oct 2022 01:45:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=33198718</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=33198718</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33198718</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Jonathan Blow on Societal Collapse (2019)"]]></title><description><![CDATA[
<p>I think you're correct in this assessment. I've recently switched from many years of low-level programming, doing real time animation/graphics into the large scale SaaS world.<p>The things these two camps of software engineers care about are completely different. In the SaaS world it's all about interfacing between systems and managing complex business processes. There's often a lot of organization/political problems, along with auditing and legal requirements. There seems to be a lot more emphasis on developer productivity than end user performance.<p>Not that these engineers don't care about performance, but their tolerances are much higher. For example 100-200ms turn around is entirely acceptable, or even fast, in the SaaS world. While in my previous job that was absurdly slow, and unacceptable.<p>I think another under appreciated thing is that the scale and complexity is truly larger today than yesteryear. Even in real time graphics, Unreal Engine incorporates literally decades of cutting edge research into a framework that a new game programmer can start running with in hours. There's the various platforms like mobile, PC/Mac/Linux, graphics APIs like DX12, Metal, Vulcan, multiplayer syncing, animation, model importing, etc etc. There's just so many more things to support these days that there's going to be some slippage.<p>And each of these new tools and platforms were made with the intention of doing something better than a previous one, but then the real world creeps in and here we are.<p>It would be great to see more effort and research into rethinking from the base level, maybe even hardware, of how we can simplify this entire software stack and have our cake and eat it too.</p>
]]></description><pubDate>Sat, 27 Aug 2022 01:25:55 +0000</pubDate><link>https://news.ycombinator.com/item?id=32614646</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=32614646</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32614646</guid></item><item><title><![CDATA[New comment by sweetsocks21 in "Split Brain Psychology"]]></title><description><![CDATA[
<p>I think that's could be focusing too much on the "inner voice" and assigning that the "you" label. At least for me I have a normally chatty inner voice, and usually think of that as "me", but if I step back I realize there is a lot more to "me". There's other thoughts/knowledge/processes happening that can bubble up. At least my interpretation is the voice is just the aggregator, but there's really multiple systems coming together.<p>If I switch tasks and do something very creative, say playing music or drawing, the inner voice goes away and I can enter a "flow" or meditative state where things just happen. It's a very different mode where it's just feelings/emotions/imagery and no language based thoughts.<p>Also when I get really really tired, but power through it, I have a "recursive observer" where I kind of view myself on a delay and analyse everything I do, it's kind of annoying.</p>
]]></description><pubDate>Sun, 14 Aug 2022 02:42:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=32455862</link><dc:creator>sweetsocks21</dc:creator><comments>https://news.ycombinator.com/item?id=32455862</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32455862</guid></item></channel></rss>