Better HN
topnewbestaskshowjobs
Log inSign up

whilenot-dev

1,309 karma · joined May 2, 2016 (10y ago) · 675 submissions

https://blog.whilenot.dev/ https://github.com/whilenot-dev https://gitlab.com/whilenot-dev https://codeberg.org/whilenot-dev
Submissions

comment 1d ago · link · parent

400k tokens at 14t/s runs to 8 hours of compute. If it took you a weekend then this seems quite reasonable, isn't it?

comment 3d ago · link · parent

Since no dynamic memory is allocated for unauthorized clients I wouldn't call it "security through obscurity" in WireGuard, no. From the paper:

> Several classes of attacks are avoided by not allowing unauthenticated packets to influence any state. And more generally, it is possible to implement WireGuard in a way that requires no dynamic memory allocation at all, [...]

An attacker could still shoot blindly and try to saturate your network bandwidth, but at least they shouldn't be able to overload the VPN server and force OOM errors, like they could with SSH AFAICS.

comment 3d ago · link · parent

No need to be snarky... having access to HPC clusters has little to do with "on-prem VS cloud" and is certainly an outlier in the prevalent SaaS world.

comment 4d ago · link · parent

I don't quite get this take... I can't know what's actually running on any production system out there (except my own), because giving anyone access would be a fatal choice.

What can Signal do to annihilate your concerns without giving you access to their system?

comment 4d ago · link · parent

Signal is closed-source? I can see APGL3-licensed source code for the Android App[0], the iOS App[1], and the server[2].

[0]: https://github.com/signalapp/Signal-Android

[1]: https://github.com/signalapp/Signal-iOS

[2]: https://github.com/signalapp/Signal-Server

comment 4d ago · link · parent

WireGuard does not even respond at all[0][1] to unauthorized clients, so the forwarded port stays invisible to illegitimate peers.

AFAIK the SSH server MUST give a response[2], so network scanners can still find their targets. DoS mitigation is generally performed by a hosting provider or an upstream service.

[0]: https://www.wireguard.com/protocol/#dos-mitigation

[1]: https://www.wireguard.com/papers/wireguard.pdf (5.1 Silence is a Virtue)

[2]: https://www.rfc-editor.org/info/rfc4252/#section-5.1

comment 6d ago · link · parent

formal verification?

comment 1w ago · link · parent

I'd call them a Software Conductor.

comment 1w ago · link · parent

Keep in mind that the act of falling in love is usually not the thing that makes people stay in love with each other.

There are wrong kinds of love that should either be discussed openly, or, if unsure, privately in therapy. Why not?

comment 1w ago · link · parent

> and that was the end of it.

Is it...? I feel like there's a lot more to unpack here. What if the thing a person fell in love with was that somebody just had more power (over them)?

I'd argue that people should fall in love on equal grounds, so the personality of a partner matters more than the perceived status of power.

comment 1w ago · link · parent

That "someone else" is just shifting from a single open source maintainer to an LLM.

comment 2w ago · link · parent

The suggested JSX approach depends on the example you just made up, and EMCAScripts statements are enough, there's no need to redefine them in JSX.

  <div class="container">
    My list
    {
      list.map((item) => {
        let text = null;
        if (item.loading) {
          text = "Loading...";
        } else if (item.error) {
          text = "Error loading item";
        } else {
          text = item.description;
        }

        return (
          <>
            <h2>{item.name}</h2>
            <p>{text}</p>
          </>
        );
      })
    }
  </div>
or (btw, I have never seen somebody creating a component for a list)

  function Item({item}) {
    let text = null;
    if (item.loading) {
      text = "Loading...";
    } else if (item.error) {
      text = "Error loading item";
    } else {
      text = item.description;
    }

    return (
      <>
        <h2>{item.name}</h2>
        <p>{text}</p>
      </>
    );
  };

  <div class="container">
    My list
    {list.map(item => <Item item={item} />)}
  </div>
I still don't see any limitation. The @statement-things don't read better either.

Anyway, thanks for the quick human exchange of opinions!

comment 2w ago · link · parent

At this point I honestly don't know what you're on about...

> every interpolation needs to be a statement

Interpolation??? JSX extends the PrimaryExpression in the ECMAScript grammar. So yeah, every JSX element/fragment is an expression, not a statement. You can't seriously consider an ECMAScript expression a limitation?

> you can split control flow into separate component[s]

You do realize that none of the variables in the example above are components, do you? They are the result of JSX elements, and if we're talking React they'd be React elements.

> combine them together [...] makes the actual render result hard to understand

So, for you, a long ECMAScript expression is a limiting factor, but composing shorter, simpler expressions into a longer, more complex one is hard to understand. Even though in your comment above you wrote:

> simple workflow controls would read much better

What's your alternative?

comment 2w ago · link · parent

If I understand you correctly, #1 is just plain wrong. JSX is transformed into standard ECMAScript[0]. You can store JSX-nodes in variables and pass them around however you like.

  // this
  <Box>
    {
      shouldShowAnswer(user)
        ? <Answer value={false}>no</Answer>
        : <Box.Comment>
            Text Content
          </Box.Comment>
    }
  </Box>

  // ...can be written like this
  const answer = (
    <Answer value={false}>
      no
    </Answer>
  );
  const comment = (
    <Box.Comment>
      Text Content
    </Box.Comment>
  );
  const result = shouldShowAnswer(user) ? answer : comment;

  <Box>
    {result}
  </Box>
In React at least, null won't render anything.

#2 is a known trade-off, and so marginal and well known that it's almost not worth mentioning it.

[0]: https://react.github.io/jsx/

comment 2w ago · link · parent

The performance got way better on my machine, 120ms (Vanilla) VS 504ms (Three.js) INP[0].

[0]: https://web.dev/articles/inp

comment 2w ago · link · parent

> if my code is sync, what am I to do?

You'd use asyncio.to_thread[0].

I also don't quite get your complaint... asyncio provides a high-level concurrency primitive with coroutines, and that's a good enough primitive for workflow engines. Even with asyncio you could fork/spawn processes easily with aiomultiprocess[1], if you'd ever want or need to.

What's your use case for having more low-level concurrency primitives (threads/processes) available, having to deal with their synchronization, and running workflows sync?

[0]: https://docs.python.org/3/library/asyncio-task.html#asyncio....

[1]: https://aiomultiprocess.omnilib.dev/en/stable/

comment 2w ago · link · parent

Support would be great, but there seems no way to download it atm: https://aurorasilicon.org/docs/download/

comment 2w ago · link · parent

> it's not saved on the machine I'm logged out on

May I recommend a password manager, e.g. KeePassXC[0], with a YubiKey[1] and some folder synchronization across machines?

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

[1]: https://keepassxc.org/docs/#faq-yubikey-howto

comment 3w ago · link · parent

There might be some interesting factors that affect quality and convenience. GP already mentioned corrective glasses, then there are probably many more things to consider, like low-light environments, having a full beard, etc.

The choice of technology being used (camera VS radar) might have various trade-offs, and it's worthwhile to discuss them.

EDIT: Granted, GP could've asked in a less dismissive way.

comment 3w ago · link · parent

HackerUsers: List of HN accounts and their skill set. Since I already got emails from my HN comments I'm sure some big consultancy companies already have this in place.

What a sad dystopian future...

comment 3w ago · link · parent

What makes you think it's fixed? They just state that they "blocked the exploit", and that could mean anything:

- did they just take the affected API offline?

- or did they just disable the account of the attacker?

- or is the exploit actually being fixed?

Environment variables are sensible data, and marking a security incident as resolved with that little detail is quite a take. Even changelog entries for harmless bug fixes are more detailed.

comment 3w ago · link · parent

Genuinely curious, is this sarcasm? I don't use any YouTube mobile app, but doesn't "new and unseen [...] videos predominantly from people I follow but occasionally interspersed with others' you think I might like in a similar vein" just sound analogous to "recommend me videos I'd like to see".

comment 3w ago · link · parent

Large means 428 MB

comment 1mo ago · link · parent

It's good to have that option for every phone out there.

comment 1mo ago · link · parent

That's a nice explanation, thanks.

Are there any common resources for this kind of access methods and patterns that specifically aim to bridge the soft-/hardware gap? The best one I can come up with is Performance Analysis and Tuning on Modern CPUs[0] by Denis Bakhvalov.

[0]: https://github.com/dendibakh/perf-book

comment 1mo ago · link · parent

I don't get it... you seem to be quoting some definitions from DeepMind's Levels of AGI for Operationalizing Progress on the Path to AGI[0] for competent and emerging AGI from July 2024, and yet you're saying that anybody that doesn't follow those new definitions did move the goalpost in 2016?

[0]: https://deepmind.google/research/publications/66938/

comment 1mo ago · link · parent

Unambiguously?

comment 1mo ago · link · parent

There's nothing between 1975-2026?

EDIT: Ok, there is, but it needs a query...

comment 1mo ago · link · parent

And the key is a LEGO brick.

comment 1mo ago · link · parent

Title needs a (2020).
12345
23