<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: aleksanb</title><link>https://news.ycombinator.com/user?id=aleksanb</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sun, 12 Apr 2026 11:44:38 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=aleksanb" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by aleksanb in "We've raised $17M to build what comes after Git"]]></title><description><![CDATA[
<p>Linus Torvalds was able to build this in a cave!<p>With a box of scraps!</p>
]]></description><pubDate>Fri, 10 Apr 2026 06:41:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=47714398</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=47714398</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47714398</guid></item><item><title><![CDATA[New comment by aleksanb in "Pyrefly: A new type checker and IDE experience for Python"]]></title><description><![CDATA[
<p>To repeat an earlier comment of mine from the launch of uv on hn (tl; dr: these new type checkers never support django):<p>The way these type checkers get fast is usually by not supporting the crazy rich reality of realworld python code.<p>The reason we're stuck on mypy at work is because it's the only type checker that has a plugin for Django that properly manages to type check its crazy runtime generated methods.<p>I wish more python tooling took the TS approach of "what's in the wild IS the language", as opposed to a "we only typecheck the constructs we think you SHOULD be using".</p>
]]></description><pubDate>Sat, 17 May 2025 14:42:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=44014674</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=44014674</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44014674</guid></item><item><title><![CDATA[New comment by aleksanb in "Ty: A fast Python type checker and language server"]]></title><description><![CDATA[
<p>The way these type checkers get fast is usually by not supporting the crazy rich reality of realworld python code.<p>The reason we're stuck on mypy at work is because it's the only type checker that has a plugin for Django that properly manages to type check its crazy runtime generated methods.<p>I wish more python tooling took the TS approach of "what's in the wild IS the language", as opposed to a "we only typecheck the constructs we think you SHOULD be using".</p>
]]></description><pubDate>Wed, 07 May 2025 18:42:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=43919223</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=43919223</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43919223</guid></item><item><title><![CDATA[New comment by aleksanb in "EU to take action to protect children from harmful practices in video games"]]></title><description><![CDATA[
<p>Looking forward to other games finally getting rid of all the digital currency indirection.<p>Most newer blizzard games will get a lot better due to this!</p>
]]></description><pubDate>Fri, 21 Mar 2025 19:04:24 +0000</pubDate><link>https://news.ycombinator.com/item?id=43439731</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=43439731</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43439731</guid></item><item><title><![CDATA[New comment by aleksanb in ""We're building a new static type checker for Python""]]></title><description><![CDATA[
<p>Agree with this.<p>All type checkers other than mypy (e.g. pyright, intellij) have ignored the level of plugin support necessary to make django work well, and so they are DOA for any large existing django codebase. Unless ruff decides to support such a dynamic interface as mypy's, it'll fare no better.<p>We use mypy with [django-stubs](<a href="https://github.com/typeddjango/django-stubs">https://github.com/typeddjango/django-stubs</a>) which works ok nowadays.<p>There was an effort to create a typechecking plugin interface for dataclass-style transforms for python type checkers, but what was merged was so lacking that one couldn't even make something close to django-stubs with it.</p>
]]></description><pubDate>Thu, 30 Jan 2025 00:15:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=42873173</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=42873173</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42873173</guid></item><item><title><![CDATA[New comment by aleksanb in "Researchers discover potentially catastrophic exploit present in AMD chips"]]></title><description><![CDATA[
<p>I bought my 3900x just under 5 years ago. Norwegian consumer protection laws give me 5 years where the producer is required to fix any defects that came with the product.<p>As this bug now has become known to always have been there, i could probably force amd to replace my 3900x if they don't provide software patches.<p>Has anyone else attempted a similar RTM for software defects?</p>
]]></description><pubDate>Fri, 09 Aug 2024 19:52:16 +0000</pubDate><link>https://news.ycombinator.com/item?id=41204851</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=41204851</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=41204851</guid></item><item><title><![CDATA[New comment by aleksanb in "Stop Building Stingy Apps"]]></title><description><![CDATA[
<p>This is required by law in the eurozone and has been for some years now.<p>Users must be able to get their own data exported, in some useful format.</p>
]]></description><pubDate>Thu, 11 Jan 2024 19:24:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=38957443</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=38957443</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38957443</guid></item><item><title><![CDATA[Norwegian ban on Meta behavioral advertising extended to entire EU]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.datatilsynet.no/aktuelt/aktuelle-nyheter-2023/datatilsynets-vedtak-mot-meta-utvides-til-eueos-og-gjores-permanent/">https://www.datatilsynet.no/aktuelt/aktuelle-nyheter-2023/datatilsynets-vedtak-mot-meta-utvides-til-eueos-og-gjores-permanent/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=38092612">https://news.ycombinator.com/item?id=38092612</a></p>
<p>Points: 449</p>
<p># Comments: 240</p>
]]></description><pubDate>Tue, 31 Oct 2023 23:10:11 +0000</pubDate><link>https://www.datatilsynet.no/aktuelt/aktuelle-nyheter-2023/datatilsynets-vedtak-mot-meta-utvides-til-eueos-og-gjores-permanent/</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=38092612</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=38092612</guid></item><item><title><![CDATA[New comment by aleksanb in "Mypy 1.6"]]></title><description><![CDATA[
<p>It's quite useful on ci, and as a `make mypy` can run before pushing up your code, but for interactive errors we all use pyright, which is a bit of a letdown because you don't get autocomplete for fields and models accessed through reverse relation managers etc, pyright doesn't know about them. Many packages ship types nowadays, so the type coverage isn't too bad for us right now.<p>Here's our plugin setup in mypy.ini in case this helps (Django 4.2 + drf 3.14)<p><pre><code>  [mypy]
  plugins =
      mypy_django_plugin.main,
      mypy_drf_plugin.main
  ignore_missing_imports = True
  follow_imports = silent
  no_implicit_optional = True
  warn_unused_ignores = True
  check_untyped_defs = True
  disallow_untyped_defs = True
  disallow_untyped_calls = True
  warn_unreachable = True
  strict_equality = True
  allow_redefinition = True
  show_error_codes = True
  mypy_path = stubs
  
  [mypy.plugins.django-stubs]
  django_settings_module = 'mycompany.settings'
</code></pre>
with packages:<p><pre><code>  mypy==1.6.0
  django-stubs==4.2.4
  django-stubs-ext==4.2.2
  djangorestframework-stubs==3.14.3
</code></pre>
with this horror of a regex in make (because you'll get drowned in wrong type errors in all of the untype files, and errors get shown from imports even if you don't care about that imported file), add more file targets as necessary:<p><pre><code>  FILES_TO_MYPY = $(shell ls mycompany/\*/validators.py mycompany/\*/services.py mycompany/\*/selectors.py mycompany/\*/managers.py | sort | uniq)

  # 1)We have to grep out django-manager-missing like this until the following bug
  # is fixed: https://github.com/python/mypy/issues/12987.
  # 2) We grep out the line of `Found 95 errors in 16 files (checked 83 source
  # files)` that now appears as we use follow-imports: silent, because there's a
  # bug where errors from imported modules are counted against the total even
  # though they aren't emitted. If any real errors appear we get them as a
  # separate line anyways.
  .PHONY: mypy
  mypy:
   @{ MYPY_FORCE_COLOR=${NOT_CI} $(VENV)/bin/mypy --config-file mypy.ini $(FILES_TO_MYPY) 2>&3 | grep -v 'django-manager-missing\|errors in'; } 3>&1 | tee $(HYRE_TESTS_OUTPUT_PATH)/mypy.stdout.txt
</code></pre>
This allows you to get proper errors for things like<p><pre><code>  model = MyModel.objects.get()
  othermodel = model.othermodel_set.first()
  reveal_type(othermodel)  # correctly revealed to note: Revealed type is "Union[mycompany.importpath.models.OtherModel None]"
</code></pre>
and even errors on typos like<p><pre><code>  model = MyModel.objects.get()
  othermodel = model.ooooothermodel_set.first()  # revealed as MyModel has no attribute ooooothermodel_set, perhaps you ment othermodel_set
.</code></pre></p>
]]></description><pubDate>Wed, 18 Oct 2023 13:21:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=37928254</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=37928254</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37928254</guid></item><item><title><![CDATA[New comment by aleksanb in "Mypy 1.6"]]></title><description><![CDATA[
<p>Pyright doesn't work with Django, as Django's so dynamic that it requires a plugin to infer all types correctly. Sadly, even mypy with plugins is a mess to get set up in vscode, especially if you want it to use the same config as you use for ci checks from the command line.<p>We use mypy + [django-stubs](<a href="https://github.com/typeddjango/django-stubs">https://github.com/typeddjango/django-stubs</a>) (in a huge Django + drf project at day job) which includes a plugin for mypy allowing it to recognize all reverse relations and manager methods. Mypy is still really rough around the edges. The cli args are poorly documented, and how they correspond to declarations in a mypy.ini / pyproject.toml is mysterious. Match-statements still have bugs even a year after release. Exclusion of untyped / partially typed files and packages we've had to solve with grep filtering mypy's output for our whitelisted set of files, as it's been unable to separate properly between errors you care about (in your own codebase) and errors in others code (dependencies, untypable dynamic python packages etc).<p>The largest issue IMO is that mypy tried to adapt a java / OOP style way of type system onto python, instead of recognizing the language's real power within duck typing and passing structural types around. Typescript chose the right approach here, modelling javascript the way it is actually written, favoring structural over nominal typing, instead of the archaic and now left-behind way of Java-style OOP that has influenced mypy.<p>There was a recently accepted PEP which allowed for limited dataclass transforms, enough to cover the @attr.s usecase for both mypy and pyright, but nowhere near expressive enough to cover django's models and ORM sadly. It's probably impossible / undesirable to allow for such rich plugins, so i see the future for proper pluginless typing to be more akin to how pydantic / normal dataclasses solve typing, by starting with a specification of the types, deriving its runtime implementation, instead of plugins having to reverse the type representation of a custom DSL.</p>
]]></description><pubDate>Tue, 17 Oct 2023 20:15:09 +0000</pubDate><link>https://news.ycombinator.com/item?id=37920923</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=37920923</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=37920923</guid></item><item><title><![CDATA[New comment by aleksanb in "I spent a year designing a low profile, minimal mechanical keyboard"]]></title><description><![CDATA[
<p>I had the same reaction and am now also subscribed.<p>- low profile, fantastic<p>- not full size. Numpads only get in the way!<p>- mechanical keys<p>- rotary encoder. Useful for everything! Fl studio, moving pixels in vegas, audio knob etc.<p>- i don’t mind the font, but perhaps a version without any typography would be nice.<p>I hope they’ll ship to Norway.</p>
]]></description><pubDate>Thu, 18 Aug 2022 14:42:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=32510357</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=32510357</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=32510357</guid></item><item><title><![CDATA[New comment by aleksanb in "Salesforce Signs Definitive Agreement to Acquire Slack"]]></title><description><![CDATA[
<p>Come to zulip!
We switched our company to zulip wholesale after covid forced work from home onto everyone, and wow, talk about a force multiplier.</p>
]]></description><pubDate>Tue, 01 Dec 2020 21:27:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=25270152</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=25270152</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=25270152</guid></item><item><title><![CDATA[Status of rust-analyzer: Achievements and Open Collective]]></title><description><![CDATA[
<p>Article URL: <a href="https://ferrous-systems.com/blog/rust-analyzer-status-opencollective/">https://ferrous-systems.com/blog/rust-analyzer-status-opencollective/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=20355286">https://news.ycombinator.com/item?id=20355286</a></p>
<p>Points: 7</p>
<p># Comments: 0</p>
]]></description><pubDate>Thu, 04 Jul 2019 15:16:28 +0000</pubDate><link>https://ferrous-systems.com/blog/rust-analyzer-status-opencollective/</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=20355286</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=20355286</guid></item><item><title><![CDATA[No Invitation [webgl demo]]]></title><description><![CDATA[
<p>Article URL: <a href="http://arkt.is/no-invitation/">http://arkt.is/no-invitation/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=16047457">https://news.ycombinator.com/item?id=16047457</a></p>
<p>Points: 4</p>
<p># Comments: 2</p>
]]></description><pubDate>Mon, 01 Jan 2018 19:06:41 +0000</pubDate><link>http://arkt.is/no-invitation/</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=16047457</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=16047457</guid></item><item><title><![CDATA[New comment by aleksanb in "Giving you more characters"]]></title><description><![CDATA[
<p>Luckily the demoscene graphics showcase platform <a href="https://www.dwitter.net" rel="nofollow">https://www.dwitter.net</a> still enforces the 140 character limit! Keepon making those webgl canvas graphics!</p>
]]></description><pubDate>Tue, 26 Sep 2017 21:30:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=15342696</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=15342696</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=15342696</guid></item><item><title><![CDATA[New comment by aleksanb in "Nin is a tool for development of browser-based WebGL demos"]]></title><description><![CDATA[
<p>Project co-author here. Check out our demo submission to Revision made with nin, "What Are You Syncing About", here: <a href="http://arkt.is/what-are-you-syncing-about/" rel="nofollow">http://arkt.is/what-are-you-syncing-about/</a><p>View in chrome with webgl on for the best experience, or on your iPhone if you have a newer one!</p>
]]></description><pubDate>Mon, 17 Apr 2017 00:35:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=14128460</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=14128460</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=14128460</guid></item><item><title><![CDATA[Show HN: Music Video Dispenser]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.musicvideodispenser.com/??">https://www.musicvideodispenser.com/??</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=13834109">https://news.ycombinator.com/item?id=13834109</a></p>
<p>Points: 5</p>
<p># Comments: 1</p>
]]></description><pubDate>Thu, 09 Mar 2017 21:54:27 +0000</pubDate><link>https://www.musicvideodispenser.com/??</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=13834109</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=13834109</guid></item><item><title><![CDATA[New comment by aleksanb in "Ask HN: What is your favorite Google chrome extension?"]]></title><description><![CDATA[
<p>Shameless astroturfing: I love zombocam; the only limit is myself!</p>
]]></description><pubDate>Fri, 30 Sep 2016 20:21:24 +0000</pubDate><link>https://news.ycombinator.com/item?id=12615052</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=12615052</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=12615052</guid></item><item><title><![CDATA[New comment by aleksanb in "This JPEG is also a webpage"]]></title><description><![CDATA[
<p>My democrew (Ninjadev) has used this technique for multiple WebGL/Javascript productions over the last few years now.<p>You can see the final packed .PNG results here: Crankwork Steamfist <a href="https://stianj.com/crankwork-steamfist/" rel="nofollow">https://stianj.com/crankwork-steamfist/</a>, Everything is Fashion <a href="https://stianj.com/fashion/" rel="nofollow">https://stianj.com/fashion/</a>, and Inakuwa Oasis <a href="http://arkt.is/inakuwa-oasis/" rel="nofollow">http://arkt.is/inakuwa-oasis/</a>.<p>The tool used for creating both the demos and the packed .PNG is made by us and available on GitHub here <a href="https://github.com/ninjadev/nin/" rel="nofollow">https://github.com/ninjadev/nin/</a>.</p>
]]></description><pubDate>Wed, 10 Aug 2016 20:09:24 +0000</pubDate><link>https://news.ycombinator.com/item?id=12264461</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=12264461</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=12264461</guid></item><item><title><![CDATA[New comment by aleksanb in "Scalable Live Video Streaming Using NGINX and MPEG-DASH/HLS"]]></title><description><![CDATA[
<p>The setup seems rather similar to <a href="https://github.com/arut/nginx-rtmp-module" rel="nofollow">https://github.com/arut/nginx-rtmp-module</a> which I've used in the past.
Perhaps they've bundled it with Nginx Plus without crediting the original authors? The project has a bit too permissive license for my taste.</p>
]]></description><pubDate>Wed, 01 Jun 2016 16:41:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=11815880</link><dc:creator>aleksanb</dc:creator><comments>https://news.ycombinator.com/item?id=11815880</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=11815880</guid></item></channel></rss>