Better HN
topnewbestaskshowjobs
Log inSign up

gucci-on-fleek

1,460 karma · joined May 18, 2025 (1y ago) · 482 submissions

https://www.maxchernoff.ca/
Submissions

comment 4d ago · link · parent

> lattice pqc is toast

I don't think that that's quite the right takeaway here. The AES attack discussed in Schneier's article has been known for 17 years now, but AES still remains (practically) unbroken. We should definitely be a little worried since attacks always get better, but we have no way of knowing whether a practical break for ML-KEM is just around the corner or if this will be the best available attack for the next few decades.

comment 4d ago · link · parent

Bruce Schneier's old article on an AES break in 2009 [0] is mostly applicable here, despite the completely different context:

> While this attack is better than brute force—and some cryptographers will describe the algorithm as “broken” because of it—it is still far, far beyond our capabilities of computation. The attack is, and probably forever will be, theoretical. But remember: attacks always get better, they never get worse. Others will continue to improve on these numbers.

[0]: https://www.schneier.com/blog/archives/2009/07/new_attack_on...

comment 1w ago · link · parent

> What you have is a license and maybe a piece of physical medium.

But that's what's important here, since it means that you can continue to use the file indefinitely yourself, without needing additional permission from the copyright holder. And in the case of physical media, it also means that you can sell it to anybody you want, without needing anyone else's approval.

> you can’t do anything a true owner could do: […]

You can't do any of those legally, but all of those are at least possible with an unencumbered downloaded file.

comment 1w ago · link · parent

They exist, but in my province they're exceedingly rare. Alberta has 5 million people, and there are 107 hospitals, but only 6 urgent care centres [0].

[0]: https://www.albertahealthservices.ca/findhealth/service.aspx...

comment 1w ago · link · parent

> and don't defend it aggressively

You need to aggressively defend against unlicensed usage, but you can always just give them a license. This doesn't need to be anything complicated, just a 1-page agreement saying "you and only you can use our trademarks for X, Y, and Z as long as you put a footer acknowledging us at the bottom of each page". This is how Linux does things; see the footers of [0] [1] [2] for various examples.

[0]: https://archlinux.org/

[1]: https://www.cncf.io/projects/

[2]: https://lwn.net/

comment 2w ago · link · parent

  $ dig @v0n0.pir-ns.org. codeberg.org. NS
  [...]
  ;; Got answer:
  ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 29631
  [...]
  ;; QUESTION SECTION:
  ;codeberg.org.   IN NS
  
  ;; AUTHORITY SECTION:
  org.   3600 IN SOA v0n0.pir-ns.org. hostmaster.donuts.email. 1794998113 7200 900 1209600 3600

  $ whois codeberg.org
  Domain Name: codeberg.org
  Registry Domain ID: REDACTED
  Registrar WHOIS Server: http://whois.namesilo.com
  Registrar URL: http://www.namesilo.com
  Updated Date: 2026-11-18T05:52:56Z
  [...]
  Domain Status: clientHold https://icann.org/epp#clientHold
  Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
> clientHold: This status code tells your domain's registry to not activate your domain in the DNS and as a consequence, it will not resolve. It is an uncommon status that is usually enacted during legal disputes, non-payment, or when your domain is subject to deletion.

comment 2w ago · link · parent

> This is a mutation-XSS kind of bug, and it's inherent to reparsing libxslt's output; not solved by sandboxing. I'm trying to close the mutation-XSS hole in general, and XSLT keeping it open would be unfortunate.

Fair enough, but this is no worse than JavaScript, since you have always been able to use "document.write", "element.innerHTML", "eval", and similar there. This is definitely a bit of a security concern, but of a completely different class than an RCE exploit caused by a buffer overflow.

> Further, the polyfill has limitations, some unfixable or not worth the complexity. For example, it can't trigger quirks mode in XML, or perfectly emulate all quirks.

I'd argue that you shouldn't let perfect be the enemy of good here, and that imperfect support is better than removing XSLT entirely. But even though I disagree here, I understand that you have resource constraints, so I totally get where you're coming from.

I wish that this was the main argument presented rather than the minimal usage or security vulnerability arguments, since impossibility and resource constraints seem like better justifications to me.

(And also, thanks for all your work on Firefox, and sorry for the hostility that you're getting for this decision from others)

comment 3w ago · link · parent

> A consequence of this condition proposed by Maxwell is that the velocity of light in vacuum becomes an exact constant, whose value depends only on the choice of the fundamental units of measurement, and not on any measurement. In a "natural" system of fundamental units, the numeric value of the speed of light in vacuum is "1".

But then it becomes impossible to exactly measure distance or time, which seems kinda problematic. We can then exactly measure speed, but that's not very useful because rapidity is arguably the more fundamental quantity.

> While the speed of light is a conventional constant that expresses the relationship between the units of time and distance, when they are chosen arbitrarily by a human, the elementary electric charge and Planck's constant are not fundamental constants, but they are 2 fundamental units of measurement, the units of electric charge and angular momentum.

Ok, I see your argument here, and I think that I mostly agree.

> Like the electric charge, action is a primitive quantity, which is not defined using other quantities. Energy is action per time, momentum is action per distance and angular momentum is action per angle.

Ah, I see, so you're using Noether's theorem to claim that action really is the fundamental property. I've never really thought of it this way before, but now that you point it out, it seems kinda obvious (and I now agree with you here too).

comment 3w ago · link · parent

> in the physics that is encountered by the majority of people there are only 2 fundamental constants, which determine the strength of the electromagnetic interaction and the strength of the gravitational interaction, i.e. the constant of Coulomb's law of electric attraction and the Newtonian constant of gravitation

The speed of light in a vacuum is pretty important too, but I don't think that you can derive that exclusively from the Coulomb constant (without also allowing the permittivity/permeability of free space). Planck's constant is also important, depending on what you consider "physics that is encountered by the majority of people".

> The poor handling of metrology in modern physics textbooks

It's not really covered in textbooks, but all my physics labs had extensive coverage of error propagation, dimensional analysis, and running statistics on measured data.

> In the SI system of units, besides the 2 constants of Newton and Coulomb there are a few other "fundamental constants", which are fake fundamental constants

I agree that Boltzmann's and Avogadro's constants are "fake", the elementary charge is borderline, and the candela is a joke, but I wouldn't put c or ℏ in this category—time is special in physics (the arrow of time and such), so the relation between time and space (c) seems fundamental and non-trivial; similarly, conservation of energy is probably the most important conservation law, so the relation between frequency and energy (ℏ) seems fundamental too.

I'm aware of natural units, but I don't think that the fact that you can give c and ℏ values of one makes them any less fundamental.

comment 4w ago · link · parent

I didn't see it mentioned in the article, but does this mean that you will no longer be able to use Discord exclusively via the browser, without installing a native app? Because that's my preferred way to use Discord, since the browser nicely sandboxes it, whereas a native application generally runs unrestricted.

comment 1mo ago · link · parent

I've used Slax [0] a few times before and it's pretty nice, but it has the same problems at every other small language—little documentation and no community.

[0]: https://news.ycombinator.com/item?id=48333823

comment 1mo ago · link · parent

> I would honestly ask your help to enlighten me on the necessity of XSLT. I'm totally willing to be wrong here. Can someone explain me how it is used?

It's pretty hard to beat when you need to transform some specific XML format into something else. Which isn't needed as often these days since XML is less popular than it used to be, but if you're stuck with XML, then XSLT is still a good choice.

For example, I personally use it for parsing video game save files and for displaying my Atom feed in a prettier format [0]. It's certainly possible to replace both of these with pure JavaScript, but XSLT is a really elegant solution here.

[0]: https://news.ycombinator.com/item?id=45873669

comment 1mo ago · link · parent

> and never got off the ground […] failed experiment

I wouldn't quite call it it a failed experiment; I've personally used it in a couple of my websites [0] and I've had pretty good experiences with it.

> it's also important to prevent security vulnerabilities

The security concerns seem disingenuous to me, since sandboxing libxslt has already been implemented and would immediately solve any security concerns [1].

> Seems rather absolutist.

I agree. As far as I can tell, this is just some developers at Google making a poor technical decision, and not some greater conspiracy against the open web.

[0]: https://news.ycombinator.com/item?id=45873669

[1]: https://news.ycombinator.com/item?id=45874461

comment 1mo ago · link · parent

> Voting officials should be selected by sortition at all levels

It's actually a pretty hard job, so I don't think that that's very realistic. I've worked as voting officer a few times in Canada, and it's a ~15 hour shift with maybe an hour of breaks total (or if you're unlucky, zero breaks), you need to be quite organized since there's so much paper, and it's quite stressful due to the volume of voters (some of whom tend to be quite angry).

The actual procedures are fairly simple, but you need to do them ~300 times in a day, without making any mistakes, while being rushed by the long lines. Anybody on HN could probably handle this (it's only a single 3-hour training course), but it's probably beyond what a substantial portion of the population is capable of, so sortition probably wouldn't lead to great results.

> Allowing self-selection can allow for collusion or a biased pool of election workers and judges, especially in cities/towns with an established single-party patronage bureaucracy.

In Canada, any candidate can send up to 2 people to each ballot booth to observe the procedures and ensure that all the rules are correctly followed, and most serious contenders tend to send at least 1 person to each polling place. So this should help to prevent collusion in most cases.

comment 1mo ago · link · parent

Even if C++ is irrelevant for new code, there's so much software already written in it that we'll be maintaining it for decades to come. I'd argue that Cobol and Fortran have been mostly obsolete for new code for almost 30 years now, yet both are still widely used today, and they've even had major updates in the past decade [0] [1]. And there's even more software written in C++ than there is in Cobol or Fortran, so I don't think that C++ is going away any time soon.

[0]: https://en.wikipedia.org/wiki/COBOL#COBOL_2023

[1]: https://en.wikipedia.org/wiki/Fortran#Fortran_2023

comment 1mo ago · link · parent

Braille Pattern Blank "⠀" (U+2800) is another one of my favourites, since it's also not considered whitespace, but it looks like it. It can actually be fairly helpful for forms that won't let you leave any field blank, since it bypasses most whitespace checks.

comment 1mo ago · link · parent

Plus, the Medium site from the 2015 post even links to https://aresluna.org in the author section of the sidebar.

comment 1mo ago · link · parent

> What if those people with unstable currencies just used a stable currency?

Most countries with unstable currencies either have strict currency controls, fixed exchange rates, or rampant corruption, so using USD through an established local bank is either not an option or obscenely overpriced.

> Like certain countries just use physical USD.

Yeah, that's nearly always going to be a better option than using a stablecoin, unless US currency is unavailable/illegal, or if you need to transfer money long distances (like with remittances).

But remittances are a huge industry [0] and the traditional providers charge significant markups, so stablecoins are pretty valuable for that alone.

[0]: https://en.wikipedia.org/wiki/List_of_countries_by_remittanc...

comment 1mo ago · link · parent

If traditional banking is available to you, then I don't think that there are any significant advantages. But lots of people—notably those in countries with unstable currencies [0]—don't have access to high-quality banking, so for them, stablecoins can be an acceptable substitute in some cases. It's probably not a great idea to hold stablecoins long-term (there's always a risk of the sponsoring company going under, and unlike bonds they don't pay interest), but it should be fairly safe to use them for transfers, since the transfers are quick enough that there are very low odds of the company becoming insolvent while the transfer is underway.

[0]: https://news.ycombinator.com/item?id=50012907

comment 1mo ago · link · parent

> To me, it seems odd not to care.

If you don't mind me asking, why do you think that? I'm not trying to start a debate, and I'm sympathetic to many of the reasons why some people are against LLMs (the environment, copyright issues, loss of jobs, not liking chatbots, not trusting the current companies, etc.), but I'm curious why you are against them.

(I don't really understand one being so against LLMs that one tries to avoid software that contains even small amounts of LLM-written code, but I know that a lot of well-informed people feel this way, and it seems far more likely that I'm the one missing something rather than everyone else being wrong.)

comment 1mo ago · link · parent

I'm not the OP, but I would personally say that not wanting to work with LLM-generated output (including that submitted via PRs and issues) is reasonable, but not wanting to use LLM-generated code from well-regarded established projects (not vibe-coded slop) is veering closer to tribalism.

Because to me, it's entirely fair to care about the process when you're the one working with it, but if you've never looked at the code and it works well, it seems odd to care how 10% of it was produced.

I still wouldn't quite use the loaded "tribalism" term here myself though, because there are still a few valid reasons to be skeptical of LLM-generated code, but for many people, their hard anti-LLM stance appears to be more of a shibboleth than a principled stance from my perspective.

comment 1mo ago · link · parent

Isn't there already a natural "tax" of the cost of office space?

comment 1mo ago · link · parent

> Back in the PlayStation/N64 through to PS3/Xbox 360, consoles were so different to each other and PCs

With the notable exception of the original Xbox, which used mostly standard PC hardware [0] and ran mostly standard Windows [1].

[0]: https://en.wikipedia.org/wiki/Xbox_technical_specifications

[1]: https://en.wikipedia.org/wiki/Xbox_system_software#Original_...

comment 1mo ago · link · parent

> Quick question though - are their fake launches to see if crew would actually send the nukes? I’m picturing like a firing squad where nobody knows who has the real bullet

That's exactly what we were told when I toured a Titan II launch facility [0], but I have no idea if that still applies to the modern Minuteman III facilities that this article is about.

[0]: https://en.wikipedia.org/wiki/Titan_Missile_Museum

comment 1mo ago · link · parent

> you may have to compile each binary module

Correct, but I'd argue that you need to do this anyways (well, I do this anyways), because I don't like the alternative of redistributing binaries compiled by random third parties from the internet.

> link everything against the Lua VM, and write glue/loading code to make everything work together (see the comment below regarding LuaSocket)

> Of course, it's possible. But it's a lot of manual work, especially for newcomers.

To be clear, I think that your project is great, but this really isn't that much work:

  # FILE: .gitignore
  program
  *.luac
  *.o
  
  # FILE: Makefile
  CFLAGS := -std=c23 -Wall -Wextra -Werror
  
  ifeq "${mode}" "debug"
      CFLAGS += -ggdb3 -fanalyzer -fsanitize=address,undefined,leak
  else
      CFLAGS += -O2 -flto -s
  endif
  
  %.luac: %.lua
      luac -o $@ $^
  
  %.o: %.c
      ${CC} -c -o $@ $< ${CFLAGS}
  
  c_libraries := library.o
  lua_libraries := main.luac
  
  program: main.c ${c_libraries} ${lua_libraries}
      ${CC} -o $@ $< ${c_libraries} ${CFLAGS} -llua
  
  // FILE: library.c
  #include <lauxlib.h>
  #include <lua.h>
  #include <lualib.h>
  #include <stdcountof.h>
  
  static int test(lua_State *L) {
      lua_pushstring(L, "Hello from C!");
      return 1;
  }
  
  int luaopen_library(lua_State *L) {
      luaL_Reg library[] = {
          {"test", test},
          {nullptr, nullptr},
      };
      luaL_newlib(L, library);
      return 1;
  }
  
  // FILE: main.c
  #include <lauxlib.h>
  #include <lua.h>
  #include <lualib.h>
  #include <stdcountof.h>
  
  #define preload_c_lib(name)                       \
      do {                                          \
          extern int luaopen_##name(lua_State * L); \
          lua_pushcfunction(L, luaopen_##name);     \
          lua_setfield(L, -2, #name);               \
      } while (0)
  
  #define preload_lua_lib(name)                                         \
      do {                                                              \
          luaL_loadbufferx(L, &name[0], countof(name) - 1, #name, "b"); \
          lua_setfield(L, -2, #name);                                   \
      } while (0)
  
  static void initialize_modules(lua_State *L) {
      // Load standard modules.
      luaL_openlibs(L);
  
      // Load external modules.
      lua_getglobal(L, "package");
      lua_getfield(L, -1, "preload");
  
      // "main.lua"
      static char const main[] = {
          #embed "main.luac" suffix(, '\0')
      };
      preload_lua_lib(main);
  
      // "library.o"
      preload_c_lib(library);
  
      lua_settop(L, 0);
  }
  
  int main() {
      lua_State *L = luaL_newstate();
  
      // Initialize the modules.
      initialize_modules(L);
  
      // Run main script
      if (luaL_dostring(L, "require('main')()") != LUA_OK) {
          printf("Error: %s", lua_tostring(L, -1));
      }
  
      lua_close(L);
      return 0;
  }
  
  -- FILE: main.lua
  return function()
      local library = require("library")
      print(library.test())
      print("Hello from Lua!")
  end
To run:

  $ make && ./program
  cc -o program main.c library.o -std=c23 -Wall -Wextra -Werror -O2 -flto -s -llua
  Hello from C!
  Hello from Lua!

comment 1mo ago · link · parent

> Some platforms (Windows I see you !) don't permit to link binary modules to a static executable

If you have the source code for these modules, you can statically link to them too. I've done this myself for Windows a few times, and it works pretty well in my experience.

comment 1mo ago · link · parent

I wouldn't consider static linking + #embed to be hacky though, and that's all that it takes to deploy a standalone Lua program.

comment 1mo ago · link · parent

> I'd be curious how far eXTeX gets with modern LaTeX documents in practice.

The LaTeX kernel requires some primitives [0] that are unlikely to be supported in a 15-year-old engine, so you probably won't be able to use any version of TeX Live newer than TL20.

[0]: https://texdoc.org/serve/ltnews31/0#section*.29

[1]: https://repo.autonoma.ca/repo/keentype

comment 1mo ago · link · parent

The OP copied that verbatim from the BBC article. "Remain" is an accurate summary of option 1, but option 2 is worded weirdly enough that it's kinda tricky to summarize. The official wording [0] was:

> 10. Should Alberta remain a province of Canada, or should the Government of Alberta commence the legal process required under the Canadian Constitution to hold a binding provincial referendum on whether or not Alberta should separate from Canada?

> Option 1: Alberta should remain a province of Canada.

> Option 2: The Government of Alberta should commence the legal process required under the Canadian Constitution to hold a binding provincial referendum on whether or not Alberta should separate from Canada.

I suppose that "leave" would be a mostly accurate one-word summary, but that wouldn't really be quite correct since the question was if we should have another referendum where we could decide to leave or not, not whether Alberta should succeed immediately.

[0]: https://www.elections.ab.ca/elections/referendum/

comment 1mo ago · link · parent

> - Do you support introducing voter ID for Alberta elections?

I realized that you copied that from BBC, but that's not a correct summary of the question. The official wording [0] of that question is

> 5. Do you support the Government of Alberta introducing a law requiring individuals to provide proof of citizenship, such as a passport, birth certificate or citizenship card, to vote in an Alberta provincial election?

Voter ID is already required for elections [1], but proof of citizenship is not. The vast majority of people (>90% in the previous elections that I worked at) used their drivers' licences as ID, but these don't list your citizenship. And the problem with passports and birth certificates is that they don't show your address (which is required to ensure that you're voting in the correct riding), so they also wouldn't be sufficient.

> - Do you support the Alberta government working with other provinces to allow provinces to opt out of federal programs?

That's also not a correct summary. Provinces are already allowed to opt out of most federally-funded but provincially-administered programs, but nobody wants to do so since that means losing out on the federal funding. The official wording of that question [0] was actually

> 8. Do you support the Government of Alberta working with the governments of other willing provinces to amend the Canadian Constitution to allow provinces to opt out of federal programs that intrude on provincial jurisdiction such as health care, education, and social services, without a province losing any of the associated federal funding for use in its social programs?

So this question is actually asking if Alberta should be allowed to opt out of the federal governments conditions without also opting out of the funding.

[0]: https://www.elections.ab.ca/elections/referendum/

[1]: https://www.elections.ab.ca/voters/id-required-to-vote/

12345
17