<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: meghprkh</title><link>https://news.ycombinator.com/user?id=meghprkh</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Mon, 25 May 2026 19:55:23 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=meghprkh" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by meghprkh in "C extensions, portability, and alternative compilers"]]></title><description><![CDATA[
<p>Why would they not do something like?<p><pre><code>  + #if !(defined __GLIBC_COMPILER_SUPPORTS_ATTRIBUTES__)
  - #if !(defined __GNUC__ || defined __clang__ || defined __TINYC__)
  # define __attribute__(xyz)     /* Ignore */
  #endif
</code></pre>
(or probably a more fine grained for each attribute they try to use)<p>Considering such checks are fairly conventional in downstream C++ libraries based on compilers (for example checking OS platform or compiler, e.g. [Boost.Config](<a href="https://www.boost.org/doc/libs/latest/libs/config/" rel="nofollow">https://www.boost.org/doc/libs/latest/libs/config/</a>). Modern C++ even went ahead and standardized this somewhat <a href="https://en.cppreference.com/cpp/utility/feature_test" rel="nofollow">https://en.cppreference.com/cpp/utility/feature_test</a> )</p>
]]></description><pubDate>Mon, 25 May 2026 16:46:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=48268899</link><dc:creator>meghprkh</dc:creator><comments>https://news.ycombinator.com/item?id=48268899</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48268899</guid></item><item><title><![CDATA[Creating Rust macros with crabtime for including icons in Leptos]]></title><description><![CDATA[
<p>Article URL: <a href="https://meghprkh.github.io/blog/posts/crabtime-leptos-icons/">https://meghprkh.github.io/blog/posts/crabtime-leptos-icons/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=43849815">https://news.ycombinator.com/item?id=43849815</a></p>
<p>Points: 5</p>
<p># Comments: 0</p>
]]></description><pubDate>Wed, 30 Apr 2025 19:46:30 +0000</pubDate><link>https://meghprkh.github.io/blog/posts/crabtime-leptos-icons/</link><dc:creator>meghprkh</dc:creator><comments>https://news.ycombinator.com/item?id=43849815</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43849815</guid></item><item><title><![CDATA[New comment by meghprkh in "Show HN: Formalizing Principia Mathematica using Lean"]]></title><description><![CDATA[
<p>No specific motivation tbh. I did the number theory game on the recommendation of a friend and found it fun. Made me think.<p>What does the real programming language part help in? Developing tactics? Or is it because even when you are typing the "math parts" it corresponds to a real programming language giving you a nicer mental model?<p>Because from what I understand Rocq too has Gallina or something right?<p>I guess my other point is Rocq seems to have a lot of textbooks too so I was wondering which one to read about when I get some more time - Rocq or Lean.</p>
]]></description><pubDate>Sat, 26 Apr 2025 21:46:24 +0000</pubDate><link>https://news.ycombinator.com/item?id=43807483</link><dc:creator>meghprkh</dc:creator><comments>https://news.ycombinator.com/item?id=43807483</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43807483</guid></item><item><title><![CDATA[New comment by meghprkh in "Show HN: Formalizing Principia Mathematica using Lean"]]></title><description><![CDATA[
<p>What is the real difference between rocq vs lean? Alternatively, what is your motivation to do this in lean as compared to playing around with the rocq one if it exists?<p>I recently completed the natural number lean game and found it pretty fun, and would like to learn more about the differences between the two. Thanks!</p>
]]></description><pubDate>Sat, 26 Apr 2025 02:45:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=43800460</link><dc:creator>meghprkh</dc:creator><comments>https://news.ycombinator.com/item?id=43800460</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43800460</guid></item><item><title><![CDATA[Rust Traits – Associated Types and Generic Traits]]></title><description><![CDATA[
<p>Article URL: <a href="https://meghprkh.github.io/blog/posts/rust-traits-associated-types-generic-traits/">https://meghprkh.github.io/blog/posts/rust-traits-associated-types-generic-traits/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=43628448">https://news.ycombinator.com/item?id=43628448</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Wed, 09 Apr 2025 02:48:33 +0000</pubDate><link>https://meghprkh.github.io/blog/posts/rust-traits-associated-types-generic-traits/</link><dc:creator>meghprkh</dc:creator><comments>https://news.ycombinator.com/item?id=43628448</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43628448</guid></item><item><title><![CDATA[New comment by meghprkh in "C++20 Concepts in C++03"]]></title><description><![CDATA[
<p>C++20 Concepts are a new language feature that ease generic programming, but are primarily syntactic sugar.<p>We will try to implement them in C++03, with one caveat - we must explicitly specify that a class implements an concept.<p>NOTE: We will use template specialization and do not need to be able to modify the class or our concept for this.</p>
]]></description><pubDate>Fri, 05 Aug 2022 14:25:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=32356523</link><dc:creator>meghprkh</dc:creator><comments>https://news.ycombinator.com/item?id=32356523</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32356523</guid></item><item><title><![CDATA[C++20 Concepts in C++03]]></title><description><![CDATA[
<p>Article URL: <a href="https://meghprkh.github.io/blog/posts/c++03-concepts/">https://meghprkh.github.io/blog/posts/c++03-concepts/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=32356522">https://news.ycombinator.com/item?id=32356522</a></p>
<p>Points: 1</p>
<p># Comments: 1</p>
]]></description><pubDate>Fri, 05 Aug 2022 14:25:44 +0000</pubDate><link>https://meghprkh.github.io/blog/posts/c++03-concepts/</link><dc:creator>meghprkh</dc:creator><comments>https://news.ycombinator.com/item?id=32356522</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32356522</guid></item></channel></rss>