<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: seg_fault</title><link>https://news.ycombinator.com/user?id=seg_fault</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Wed, 15 Apr 2026 00:10:11 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=seg_fault" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by seg_fault in "The README for this Java library is something else"]]></title><description><![CDATA[
<p>If you understand German, I also recommend the readme of his other project:
<a href="https://github.com/bsommerfeld/wsbg-terminal" rel="nofollow">https://github.com/bsommerfeld/wsbg-terminal</a></p>
]]></description><pubDate>Tue, 14 Apr 2026 09:10:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=47763131</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=47763131</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47763131</guid></item><item><title><![CDATA[New comment by seg_fault in "High-performance header-only container library for C++23 on x86-64"]]></title><description><![CDATA[
<p>I had the same experience. C++ doesn't even compile or I have to tell it all the time "use C++23 features". I tried to learn OpenGL with it. This worked out a bit, since I had to spot the errors :D</p>
]]></description><pubDate>Tue, 06 Jan 2026 16:48:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=46514729</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=46514729</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46514729</guid></item><item><title><![CDATA[New comment by seg_fault in "Ask HN: Should I take an internship or learn skills and build?"]]></title><description><![CDATA[
<p>What kept me as an intern during education is the feedback and the nerdy chitchat.  Developing as an intern in a team, where you have your own project and the possibility to chat with experienced people from various fields can be a huge impact. I had no deadlines, so if someone proposed a better way to do something I tried it and I learnt a lot from that.<p>Besides, talking to other people face to face about your project always gave me a huge motivation boost.</p>
]]></description><pubDate>Sun, 25 May 2025 20:27:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=44090797</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=44090797</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44090797</guid></item><item><title><![CDATA[New comment by seg_fault in "Show HN: I built a(nother) house optimized for LAN parties"]]></title><description><![CDATA[
<p>Awesome! The fold up mechanism is a great idea to make it look clean, when there is no party and it also saves the hardware from dust :D</p>
]]></description><pubDate>Sat, 16 Nov 2024 19:57:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=42158785</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=42158785</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42158785</guid></item><item><title><![CDATA[New comment by seg_fault in "Show HN: Floating point arithmetic types in C++ for any size and any base"]]></title><description><![CDATA[
<p>My type is a bit simpler. But I think the approach is the same. After all, boost's type has much more math functions implemented. I don't have exp, sqrt...</p>
]]></description><pubDate>Tue, 22 Oct 2024 18:02:53 +0000</pubDate><link>https://news.ycombinator.com/item?id=41916931</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41916931</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41916931</guid></item><item><title><![CDATA[New comment by seg_fault in "Show HN: Floating point arithmetic types in C++ for any size and any base"]]></title><description><![CDATA[
<p>If I understand this correctly GMP has a flexible mantissa with no limitations during runtime.<p>In fas you have to specify the sizes (of mantissa and exponent) during compile time. So the size of this type is fixed. Thus, there is no heap involved.</p>
]]></description><pubDate>Tue, 22 Oct 2024 17:57:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=41916884</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41916884</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41916884</guid></item><item><title><![CDATA[New comment by seg_fault in "Show HN: Floating point arithmetic types in C++ for any size and any base"]]></title><description><![CDATA[
<p>Removed it.</p>
]]></description><pubDate>Tue, 22 Oct 2024 06:14:50 +0000</pubDate><link>https://news.ycombinator.com/item?id=41911659</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41911659</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41911659</guid></item><item><title><![CDATA[New comment by seg_fault in "Show HN: Floating point arithmetic types in C++ for any size and any base"]]></title><description><![CDATA[
<p>Somebody wants to use it? :D
I thought about something like where people can use it but have to make changed public. I am just curious, what should be changed. But I dont think there is actually a real world use case.</p>
]]></description><pubDate>Tue, 22 Oct 2024 06:13:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=41911653</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41911653</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41911653</guid></item><item><title><![CDATA[New comment by seg_fault in "Show HN: Floating point arithmetic types in C++ for any size and any base"]]></title><description><![CDATA[
<p>I remember that I tried that some time ago. Especially the multiplication was tough, but I can not recall where I gave up. When I find some time, I will pick it up again :)</p>
]]></description><pubDate>Mon, 21 Oct 2024 21:38:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=41908790</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41908790</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41908790</guid></item><item><title><![CDATA[New comment by seg_fault in "Show HN: Floating point arithmetic types in C++ for any size and any base"]]></title><description><![CDATA[
<p>Sure.<p><pre><code>    Float<int64_t, int64_t>
</code></pre>
Gives you a signed Mantissa with 64 bit and a signed Exponent with 64bit. Since there are numeric limits for int64_t available, Float knows the max and the min value.<p>You could get even bigger ranges for Float by implementing your own big integer type.</p>
]]></description><pubDate>Mon, 21 Oct 2024 21:35:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=41908761</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41908761</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41908761</guid></item><item><title><![CDATA[New comment by seg_fault in "Show HN: Floating point arithmetic types in C++ for any size and any base"]]></title><description><![CDATA[
<p>I don't get what you mean. I thought they specify how the type can be used?</p>
]]></description><pubDate>Mon, 21 Oct 2024 20:48:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=41908384</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41908384</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41908384</guid></item><item><title><![CDATA[New comment by seg_fault in "Show HN: Floating point arithmetic types in C++ for any size and any base"]]></title><description><![CDATA[
<p>Thank you :)</p>
]]></description><pubDate>Mon, 21 Oct 2024 20:46:00 +0000</pubDate><link>https://news.ycombinator.com/item?id=41908365</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41908365</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41908365</guid></item><item><title><![CDATA[New comment by seg_fault in "Show HN: Floating point arithmetic types in C++ for any size and any base"]]></title><description><![CDATA[
<p>Actually you can specify the numeric limits of the mantissa and the exponent. 
They can be specified as template arguments[0]. 
So you could do:<p><pre><code>      Float<uint8_t, // type of the mantissa
            uint8_t, // type of the exponent
            0,       // lowest possible value of the mantissa
            4095,    // highest possible value of the mantissa
            0,       // lowest possible value of the exponent
            7>       // highest possible value of the exponent
</code></pre>
The Float then simulates an unsigned 12bit mantissa and a 3bit exponent. Sure it still takes 16 bytes. But you could create a union with bitfields where you shrink that even further.<p>[0] <a href="https://github.com/clemensmanert/fas/blob/58f9effbe6c13ab334b05a956ec885edeac89fac/fas/float.hpp#L27">https://github.com/clemensmanert/fas/blob/58f9effbe6c13ab334...</a></p>
]]></description><pubDate>Mon, 21 Oct 2024 20:40:17 +0000</pubDate><link>https://news.ycombinator.com/item?id=41908315</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41908315</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41908315</guid></item><item><title><![CDATA[New comment by seg_fault in "Show HN: Floating point arithmetic types in C++ for any size and any base"]]></title><description><![CDATA[
<p>Rounding: actually it just cuts off. I have not spent much time to think about how to specify and implement the different rounding modes. Maybe some day...<p>Thanks for the hint to the paper.  I also faced these issues. Thus, I provided a constructor which accepts mantissa and exponent as values. Very handy for the unittests.</p>
]]></description><pubDate>Mon, 21 Oct 2024 20:32:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=41908252</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41908252</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41908252</guid></item><item><title><![CDATA[Show HN: Floating point arithmetic types in C++ for any size and any base]]></title><description><![CDATA[
<p>Since there is so much interest on HN in floats lately and their software implementations, I wanted to show mine. It has no use and is just for teaching me floats and C++. Give me your thoughts.</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=41881722">https://news.ycombinator.com/item?id=41881722</a></p>
<p>Points: 79</p>
<p># Comments: 41</p>
]]></description><pubDate>Fri, 18 Oct 2024 17:42:01 +0000</pubDate><link>https://github.com/clemensmanert/fas</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41881722</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41881722</guid></item><item><title><![CDATA[New comment by seg_fault in "UK Chicken Register deadline: Backyard keepers urged take 'vital' step"]]></title><description><![CDATA[
<p>I do. And a lot of my neighbors. In Germany it is pretty common to to have a few chicken in the backyard in countryside areas. My parents life in the Munich suburban belt and even have a rooster in their flock. Their neighbors have not complained so far.<p>They eat snails and all the kitchen scaprs and I seldom have to buy eggs. Besides, it is so lovely to watch them in the garden. Their social live and their communication within the flock is very interesting to watch.<p>There are also a lot of nice hacker projects out: self closing chicken coop, monitoring, live cams.<p>And they really look nice, there are so many beautiful breeds, just type chicken breed in duckduckgo image search.</p>
]]></description><pubDate>Fri, 04 Oct 2024 08:21:28 +0000</pubDate><link>https://news.ycombinator.com/item?id=41739084</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41739084</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41739084</guid></item><item><title><![CDATA[Show HN: Switch colors in dotfiles between light and dark quickly]]></title><description><![CDATA[
<p>I developed a solution to manage color themes for my dotfiles efficiently. By using a Makefile alongside the Mustache templating engine, I can switch between a dark theme for nighttime and a light theme for daytime with a single command.<p>Each color theme is defined in its own file, allowing for easy creation of new themes without the need to modify every individual dotfile. This approach streamlines the process of theme management across my configurations.</p>
<hr>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=41543368">https://news.ycombinator.com/item?id=41543368</a></p>
<p>Points: 1</p>
<p># Comments: 0</p>
]]></description><pubDate>Sat, 14 Sep 2024 21:59:28 +0000</pubDate><link>https://github.com/clemensmanert/dotfiles</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=41543368</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41543368</guid></item><item><title><![CDATA[New comment by seg_fault in "Ask HN: Who wants to be hired? (July 2020)"]]></title><description><![CDATA[
<p>I'm a software developer with 3 years experience. I'm looking for a remote job in the C/C++ field. I'm interested in low-level/embedded.<p><pre><code>  Location: Germany
  Remote: Yes preferred
  Willing to relocate: No
  Technologies: C/C++, Ada, Linux
  Résumé/CV: http://manert.de/cv.pdf
  Email: seg_fault@manert.de
  Github: https://github.com/clemensmanert</code></pre></p>
]]></description><pubDate>Sat, 04 Jul 2020 09:27:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=23731193</link><dc:creator>seg_fault</dc:creator><comments>https://news.ycombinator.com/item?id=23731193</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=23731193</guid></item></channel></rss>