<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: aloisklink</title><link>https://news.ycombinator.com/user?id=aloisklink</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Wed, 01 Jul 2026 02:06:51 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=aloisklink" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by aloisklink in ".self: A new top-level domain designed to support self-hosting"]]></title><description><![CDATA[
<p>The owners of `queer.af` thought that AF only meant “as f*ck”, without realizing that AF also happens to the be the ISO 3166 code for a country controlled by the Taliban, who didn’t like their domain name [1].<p>Brits that had `.eu` domains lost their domains due to Brexit [2] (unless they had some other EEA ties).<p>And if the Chagos deal goes ahead [3] and the British Indian Ocean Territory ceases to exist, then all `.io` domains might disappear too (although considering that `.su`/Soviet Union domains are still a thing, they probably would have stayed around).<p>[1]: <a href="https://www.404media.co/taliban-shuts-down-queer-af-domain-breaking-mastodon-instance/" rel="nofollow">https://www.404media.co/taliban-shuts-down-queer-af-domain-b...</a><p>[2]: <a href="https://www.gov.uk/guidance/registering-and-renewing-eu-domain-names-in-the-uk" rel="nofollow">https://www.gov.uk/guidance/registering-and-renewing-eu-doma...</a><p>[3]: <a href="https://www.bbc.com/news/articles/ce9m47y1ez2o" rel="nofollow">https://www.bbc.com/news/articles/ce9m47y1ez2o</a></p>
]]></description><pubDate>Tue, 30 Jun 2026 05:39:03 +0000</pubDate><link>https://news.ycombinator.com/item?id=48728862</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=48728862</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48728862</guid></item><item><title><![CDATA[New comment by aloisklink in "Getting arrested in Japan"]]></title><description><![CDATA[
<p>You can try looking at this manga posted by a Japanese person that was detained for marijuana possession <a href="https://xcancel.com/kime_neko/status/1634511023167381504" rel="nofollow">https://xcancel.com/kime_neko/status/1634511023167381504</a>. It's in Japanese, but you can use a machine translator and/or look at the drawings.<p>The facilities and food look slightly better (maybe because it's a detention centre in Tokyo), but it mostly matches. Although the mangaka seemed to have a much more positive outlook on it, probably because they could read all the Japanese books they wanted and speak to their cellmates in Japanese.</p>
]]></description><pubDate>Sun, 10 May 2026 03:46:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=48080817</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=48080817</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48080817</guid></item><item><title><![CDATA[New comment by aloisklink in "Getting arrested in Japan"]]></title><description><![CDATA[
<p>Not for the ones you buy in Japan, since those are legal.<p>But, it's not unheard of to get randomly stopped by the police and searched, especially in touristy areas like train stations. Unless you're a Japanese citizen, you have to show ID, and although the searches are optional, most people agree to them.<p>For customs, usually a few people from each plane are searched.<p>Anecdotally, if you're a tourist, they're usually looking for medicine that was legal outside of Japan, but illegal within Japan, with small amounts leading to being detained for 23 days (like in this blog post). And if they decide to prosecute you, you'd probably get a suspended sentence (so no prison time), but you'd get deported and a temporary ban from coming back to Japan.</p>
]]></description><pubDate>Sun, 10 May 2026 03:11:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=48080644</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=48080644</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48080644</guid></item><item><title><![CDATA[New comment by aloisklink in "Getting arrested in Japan"]]></title><description><![CDATA[
<p>You can still easily buy it here, but the over-the-counter pills are always mixed with other ingredients to make it more difficult to convert them into amphetamines.<p>E.g. Contac 600 Plus can be found in basically all drug stores and it has 120mg of Pseudoephedrine, 100mg Caffeine, 8mg Chlorpheniramine, and 0.4mg of Belladonna Extract. It sounds like it'll actually be illegal to import into Japan, since 120/(120 + 100 + 8 + 0.4) is over 10%, but I've previously just walked into a drug store and bought a packet.</p>
]]></description><pubDate>Sat, 09 May 2026 23:58:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=48079553</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=48079553</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48079553</guid></item><item><title><![CDATA[New comment by aloisklink in "Getting arrested in Japan"]]></title><description><![CDATA[
<p>The author mentions it in a YouTube video: <a href="https://www.youtube.com/watch?v=Q2epTf2IW1g" rel="nofollow">https://www.youtube.com/watch?v=Q2epTf2IW1g</a> (at the 2:20 mark).<p>But essentially, somebody else sent her a package with something illegal in it that she didn't ask for. The police took her passport for a few months and searched her house. After a few months, she got her passport returned to her, she left Japan temporarily, but when she came back, they arrested her "to ensure [she] wouldn't flee while they finished the investigation".<p>She also mentioned it was "the most normal type of thing you can think of"; it might have been something like pseudoephedrine/Sudafed. That's a common over-the-counter drug in other countries but it's very illegal here in Japan (unless it's under 10%, or you buy it from Japan)!<p><i>Edit</i>: Importing pseudoephedrine above 10% concentrations is illegal, but you can legally buy some higher concentrations over-the-counter while in Japan.</p>
]]></description><pubDate>Sat, 09 May 2026 23:39:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=48079419</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=48079419</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48079419</guid></item><item><title><![CDATA[New comment by aloisklink in "The buns in McDonald's Japan's burger photos are all slightly askew"]]></title><description><![CDATA[
<p>At least in Japan on iOS, they have their own app, and it’s great.<p>You can find a seat first, then order directly from your seat, for delivery to your seat (helpful since some McDonald’s in Japan are really busy, and are very vertical, so you might need to climb up some two/three floors to find a seat!).<p>You can even order McDelivery and they’ll deliver McDonald’s to your house on McDonald’s branded mopeds.<p>It’s also been pretty fast, even on a slow internet connection.<p>The only two problems I’ve had with it are:<p>- Although the menu and the rest of the app is translated to English, sometimes coupons are only in Japanese, and not translated to English (I’m guessing these might be store-specific) (although it’s easy enough to translate that using your phone’s translator)
 - I’ve had Apple Pay occasionally be down and fail to work, which forced me to redo my whole order, then realize that Apple Pay is still down, then do my entire order again with a different payment method. Although it’s only happened twice a few months ago, so it could be something that they’ve already fixed (or I’m quite unlucky).<p>Edit: Forgot to add, but no issues like what basch seems to experience with their country’s McDonald’s app. The Japanese one always gives me a sorted list/map view of my closest McDonald’s to pick from, with any favourites marked at the too.</p>
]]></description><pubDate>Thu, 16 Apr 2026 03:34:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=47788384</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=47788384</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47788384</guid></item><item><title><![CDATA[New comment by aloisklink in "Show HN: GUI for editing Mermaid class diagrams"]]></title><description><![CDATA[
<p>I think there are two slightly different issues here!<p>1. SVGs generated by Mermaid use the SVG 2 features, but other than browsers, most libraries only support SVG 1.1 features, i.e. <<a href="https://github.com/mermaid-js/mermaid/issues/2102">https://github.com/mermaid-js/mermaid/issues/2102</a>>, which is what the other comment mentioned.<p>2. Mermaid requires a browser layout engine to render the diagrams (your issue), i.e. <<a href="https://github.com/mermaid-js/mermaid/issues/3650">https://github.com/mermaid-js/mermaid/issues/3650</a>>. This is something I also really want to fix (I maintain the [`mermaid-js/mermaid-cli`][1] project and we need to use Puppeteer/Headless Chrome to render mermaid diagrams, which isn't ideal.) However, I don't think this would be easy, since we'd need a browserless tool that supports a browser-like layout engine (although I'm hoping that [Servo][2] might eventually be able to support it).<p>And if you do want to do headless renders of Mermaid diagrams, I'd recommend using (or adapting, since the code is all MIT licensed and I'm not aware of one that uses Selenium):<p>- <<a href="https://github.com/mermaid-js/mermaid-cli">https://github.com/mermaid-js/mermaid-cli</a>>, which uses Puppeteer as the headless browser API.<p>- <<a href="https://github.com/remcohaszing/mermaid-isomorphic">https://github.com/remcohaszing/mermaid-isomorphic</a>>, which uses Playwright as the headless browser API.<p>And make sure that whatever server is doing the headless renders of Mermaid diagrams has all the correct fonts installed!<p>[1]: <a href="https://github.com/mermaid-js/mermaid-cli">https://github.com/mermaid-js/mermaid-cli</a><p>[2]: <a href="https://servo.org/" rel="nofollow">https://servo.org/</a></p>
]]></description><pubDate>Sat, 18 Jan 2025 08:01:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=42746684</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=42746684</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42746684</guid></item><item><title><![CDATA[New comment by aloisklink in "What's New in POSIX 2024"]]></title><description><![CDATA[
<p>POSIX does actually define what a "text file" is, but the definition is a bit unusual:<p>See <a href="https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap03.html" rel="nofollow">https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1...</a><p>> 3.387 Text File<p>> A file that contains characters organized into zero or more lines. The lines do not contain NUL characters and none can exceed {LINE_MAX} bytes in length, including the <newline> character.<p>So, if you have some non-printable characters like BEL/␇/ASCII 0x07, that's still a text file.<p>(and I believe what bytes count as a valid character depend on your `LC_CTYPE`).<p>But the moment you have a line longer than {LINE_MAX} bytes (which can depend on which POSIX environment you have), suddenly your text file is now a binary file.</p>
]]></description><pubDate>Tue, 29 Oct 2024 10:59:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=41982499</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=41982499</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41982499</guid></item><item><title><![CDATA[New comment by aloisklink in "A robot will soon try to remove melted nuclear fuel from Fukushima reactor"]]></title><description><![CDATA[
<p>I was at Fukushima Daiichi on Monday, and they explained that they only want to take a few grams of the melted material to test the composition of the melted fuel/debris, e.g. what elements are in it.<p>Even just planning to remove all of the melted fuel is a long way away.<p>I can't remember if they were talking about Unit 1 or Unit 2, but from what I understood is that due the collapsed rubble above/around the reactor, they only have a very narrow opening, which means they've struggled to use larger robots.<p>And I believe the robot operating centre is a bit of a distance away from the reactors too (probably so that the robot operators don't need to wear protective equipment).<p>> What they need is a sort of "anteater-tongue machine" that just will try each crevice until finding the correct path.<p>I think the problem is that once you get through all the debris, there's a big cavern. Hence why they're using some sort of crane robot on a rope (it reminds me a bit of a [claw machine game][1]).<p>[1]: <a href="https://en.wikipedia.org/wiki/Claw_machine" rel="nofollow">https://en.wikipedia.org/wiki/Claw_machine</a></p>
]]></description><pubDate>Wed, 29 May 2024 08:56:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=40509881</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=40509881</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40509881</guid></item><item><title><![CDATA[New comment by aloisklink in "Tips on how to structure your home directory (2023)"]]></title><description><![CDATA[
<p>Weirdly, enough, golang is one of the only programming languages that actually has built-in support for a cross-OS config dir location: [os.UserConfigDir()][1].<p>I don't really ever program in golang, but whenever I write a Node.JS/Python tool that does need a user-global config file, I just write my own implementation of it:<p><pre><code>  function userConfigDir() {
    switch (process.platform) {
      case 'darwin':
        return `${os.homedir()}/Library/Application Support`;
      case 'win32':
        if (process.env['APPDATA']) {
          return process.env['APPDATA'];
        } else {
          throw new Error('%APPDATA% is not set correctly');
        }
      case 'aix':
      case 'freebsd':
      case 'openbsd':
      case 'sunos':
      case 'linux':
        return process.env['XDG_CONFIG_HOME'] || `${os.homedir()}/.config`;
      default:
        throw new Error(`The platform ${process.platform} is currently unsupported.`);
    }
  }
</code></pre>
[1]: <a href="https://pkg.go.dev/os#UserConfigDir" rel="nofollow">https://pkg.go.dev/os#UserConfigDir</a></p>
]]></description><pubDate>Fri, 19 Apr 2024 15:19:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=40087934</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=40087934</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=40087934</guid></item><item><title><![CDATA[New comment by aloisklink in "Fairbuds: In-ear with replaceable batteries"]]></title><description><![CDATA[
<p>You should try the Moondrop Space Travel, you can buy them for USD 24.99 on Amazon.<p>- Moondrop is a pretty well known brand in the ChiFi (Chinese Hi-Fi) space.<p>- They support AAC so they even have good audio quality on Apple/iPhone devices (most cheap earbuds only use cheap Android codecs).<p>- Normally, their latency is pretty high, but they do have a low-latency mode in case you ever want to play games + take a call.<p>- It's Bluetooth 5.3 and communicates directly to each earbud (e.g. if you want, you can only use one at a time).<p>- And, they have active noise cancellation that's surprisingly good (in fact, it's amazing for $25!).<p>IMO, the main downsides are:<p>- Their app is meant to be horrible (I didn't even bother to install it). Not a big deal, unless you want to play around with EQ, customizing what the touch controls do, or upgrade the firmware.<p>- There's no way to control the volume via touch controls (although maybe the app allows you to change this)<p>- Even though it supports Bluetooth 5.3, I don't think it supports Bluetooth LE Audio and the LC3 codec.<p>These earbuds are probably completely uneconomical to recycle, but at least at $25, they probably didn't have too much of an environmental impact when they were created (assuming that the cost of the item is roughly correlated with the environmental impact of the item).</p>
]]></description><pubDate>Wed, 10 Apr 2024 04:32:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=39986983</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=39986983</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=39986983</guid></item><item><title><![CDATA[New comment by aloisklink in "RFC 9512: YAML Media Type"]]></title><description><![CDATA[
<p>One reason might be that `text/*` files follow the POSIX standard for text files [1], where no lines can exceed `{LINE_MAX}` bytes in length (and `LINE_MAX` depends on your OS).<p>I don't believe the YAML spec has any rules on how long lines can be, so this means that some files won't technically be text files. (and some UNIX tools line-based tools might not work correctly on them).<p>[1]: <a href="https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html" rel="nofollow">https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1...</a></p>
]]></description><pubDate>Wed, 21 Feb 2024 19:23:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=39458269</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=39458269</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=39458269</guid></item><item><title><![CDATA[New comment by aloisklink in "Fixing the volume on my Bluetooth earbuds"]]></title><description><![CDATA[
<p>Unfortunately, they're not great to use with a phone in your pocket, since then the motion of walking around will adjust the knob and change the volume.<p>Although, come to think of it, I could probably just glue the knob into a fixed −10 dB of attenuation and then use software volume control to change the volume.<p>I have also noticed that those passive inline volume knobs tend to adjust the right and left channels by different levels, especially with low-impedance outputs like IEMs, but that might because the ones I've bought cost ~US$2 from AliExpress.<p>I could probably also fix the issue by buying a worse/less-powerful USB-C to 3.5mm DAC. The official Apple one is pretty well liked by the audiophile community, since it's powerful for the price, which is great if you have high-end headphones, but horrible if you have earbuds/IEMs.<p>Weirdly enough, the same Apple USB-C to 3.5mm DAC is much quieter on Android, since it defaults to a low hardware volume on the DAC, and Android then only uses software volume control to lower the volume, see <a href="https://issuetracker.google.com/issues/242221770" rel="nofollow noreferrer">https://issuetracker.google.com/issues/242221770</a>.</p>
]]></description><pubDate>Sun, 29 Oct 2023 17:08:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=38060557</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=38060557</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38060557</guid></item><item><title><![CDATA[New comment by aloisklink in "Fixing the volume on my Bluetooth earbuds"]]></title><description><![CDATA[
<p>I've had the same issue with some wired IEMs on iOS, using Apple's official USB-C to 3.5mm adaptor. I even have the EU model A2155 of the USB-C to 3.5mm adaptor that's supposed to have half the power of the US model.<p>What I found that helped was to create a custom Shortcut that "Set Media volume to 1%". iOS reports that this is 48 dB when playing pink noise. I managed to hit 47 dB when dragging to volume slider on iOS below 1%, but the Shortcuts app only seems to support integer percentages.<p>In my case, even the 1% volume level was too high in a quiet room, but some apps have a custom EQ setting that you can use to lower the volume further. E.g. if you're using Apple Music, you can go to Settings -> Music -> EQ and pick "Loudness" to lower the volume further.</p>
]]></description><pubDate>Sun, 29 Oct 2023 01:56:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=38055238</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=38055238</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38055238</guid></item><item><title><![CDATA[New comment by aloisklink in "Tokyo by Train (2016) [video]"]]></title><description><![CDATA[
<p>The Pixel 6 and Pixel 7 apparently does have the hardware/software needed for Suica, even on non-Japanese editions of the phone.<p>However, it's blocked by Google in software depending on the device SKU (maybe because Google doesn't want to pay licensing costs?). If you have a rooted Android phone, you could bypass this check, see <a href="https://github.com/kormax/osaifu-keitai-google-pixel">https://github.com/kormax/osaifu-keitai-google-pixel</a>.<p>Hopefully it means that a future version of the Pixel will officially support it world-wide, but who knows. Japan has one of the highest rates of iPhone usage in the world, so there's not much incentive to support Android users.</p>
]]></description><pubDate>Mon, 28 Aug 2023 15:50:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=37296013</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=37296013</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37296013</guid></item><item><title><![CDATA[New comment by aloisklink in "The Unreasonable Effectiveness of Sequence Diagrams in MermaidJS"]]></title><description><![CDATA[
<p>That's pretty much it. All modern browsers come with CSS layout functions [1], even Internet Explorer did! Pretty much every other Web API can be implemented in Node.JS using something like JSDom [2], but the CSS layout engine is the main missing feature. And the creator of JSDom estimated it would take 3-6 months of full-time work from a talented engineer to implement something like this [3], so this might take a while.<p>---<p>Just to give you an idea of how hard this would be, Mermaid let's people use custom fonts, with fallbacks, so diagrams can look quite different depending on what font people have installed.<p>The current default font is Tahoma [4], which is owned by Microsoft, so Linux desktops usually render the diagrams slightly differently than on Windows/MacOS desktops.<p>People can also have different default font size in their browser/OS settings, and that will affect things too.<p>Finally, you also have things like ClearType [5], where the text is rendered differently depending on the sub-pixel arrangement of your monitor!!<p>I think we could get a basic version that partially works by implementing only a subset of the layout functions and hard-coding one specific font in, but even that would still be a fair bit of work.<p>[1]: <a href="https://drafts.csswg.org/cssom-view/#dom-element-getboundingclientrect" rel="nofollow noreferrer">https://drafts.csswg.org/cssom-view/#dom-element-getbounding...</a><p>[2]: <a href="https://github.com/jsdom/jsdom">https://github.com/jsdom/jsdom</a><p>[3]: <a href="https://github.com/jsdom/jsdom/issues/1322">https://github.com/jsdom/jsdom/issues/1322</a><p>[4]: <a href="https://en.wikipedia.org/wiki/Tahoma_(typeface)" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Tahoma_(typeface)</a><p>[5]: <a href="https://en.wikipedia.org/wiki/ClearType" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/ClearType</a></p>
]]></description><pubDate>Mon, 24 Jul 2023 21:44:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=36854647</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=36854647</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36854647</guid></item><item><title><![CDATA[New comment by aloisklink in "The Unreasonable Effectiveness of Sequence Diagrams in MermaidJS"]]></title><description><![CDATA[
<p>I'm one of the maintainers of the mermaid-cli project, and unfortunately, no.<p>Mermaid needs a browser's layout engine to run properly [1], but I haven't yet seen a library that will help us without puppeteer.<p>And yep, NPM (or another Node.JS package manager) is still needed for installation. I was working on trying to bundle all of mermaid-cli's dependencies (aka Node.JS, puppeteer) into one massive single-file exe last weekend, but it's seems we're blocked by missing features in other packages [2].<p>If anyone has any ideas on how to implement these things easily, feel free to help-out :) I'm also not a big fan of puppeteer, so I'd love to see a way to go without it.<p>[1]: <a href="https://github.com/mermaid-js/mermaid/issues/3650">https://github.com/mermaid-js/mermaid/issues/3650</a><p>[2]: <a href="https://github.com/mermaid-js/mermaid-cli/issues/467#issuecomment-1646720045">https://github.com/mermaid-js/mermaid-cli/issues/467#issueco...</a></p>
]]></description><pubDate>Mon, 24 Jul 2023 17:52:57 +0000</pubDate><link>https://news.ycombinator.com/item?id=36851767</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=36851767</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36851767</guid></item><item><title><![CDATA[New comment by aloisklink in "Why glibc 2.34 removed libpthread"]]></title><description><![CDATA[
<p>Btw, CMake has the [FindThreads][1] module to automatically link with `-lpthread`/`-pthread` in a platform-agnostic way.<p>Even after this change in glibc, you may still need to use FindThreads to handle [HP-UX][2] (some of which still run [Itanium][3]!!!).<p>[1]: <a href="https://cmake.org/cmake/help/latest/module/FindThreads.html" rel="nofollow noreferrer">https://cmake.org/cmake/help/latest/module/FindThreads.html</a><p>[2]: <a href="https://en.wikipedia.org/wiki/HP-UX" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/HP-UX</a><p>[3]: <a href="https://en.wikipedia.org/wiki/Itanium" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Itanium</a></p>
]]></description><pubDate>Sun, 02 Jul 2023 18:24:24 +0000</pubDate><link>https://news.ycombinator.com/item?id=36564172</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=36564172</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36564172</guid></item><item><title><![CDATA[New comment by aloisklink in "A simple hash table in C"]]></title><description><![CDATA[
<p>Even better, you can use [C99 Flexible array members][1], e.g. something like:<p><pre><code>    struct KeyedEntry {
      struct Entry entry;
      char key[]; // flexible array member
    };
</code></pre>
It's not too much more useful when just using `char`, but for other data types, it's a bit cleaner, since it handles alignment/padding better.<p>[1]: <a href="https://en.wikipedia.org/wiki/Flexible_array_member" rel="nofollow noreferrer">https://en.wikipedia.org/wiki/Flexible_array_member</a>, or <a href="https://beej.us/guide/bgc/html/split/structs-ii-more-fun-with-structs.html#flexible-array-members" rel="nofollow noreferrer">https://beej.us/guide/bgc/html/split/structs-ii-more-fun-wit...</a><p>_Edit_: Something like this might not be suitable for the author, since they did mention how they wanted each `struct` to have a fixed size.</p>
]]></description><pubDate>Tue, 13 Jun 2023 22:35:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=36318569</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=36318569</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=36318569</guid></item><item><title><![CDATA[New comment by aloisklink in "is there a global DNS issue happening?"]]></title><description><![CDATA[
<p>It's potentially related to the outage at Virgin Media (AS5089) in the United Kingdom, see <a href="https://twitter.com/CloudflareRadar/status/1643070260130504704" rel="nofollow">https://twitter.com/CloudflareRadar/status/16430702601305047...</a>.<p>I'm guessing a lot of sites that had name-servers hosted in AS5089 might also have gone down too.<p>But as of 30 minutes ago, apparently it's back online.</p>
]]></description><pubDate>Tue, 04 Apr 2023 03:32:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=35434689</link><dc:creator>aloisklink</dc:creator><comments>https://news.ycombinator.com/item?id=35434689</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=35434689</guid></item></channel></rss>