Hacker Newsnew | past | comments | ask | show | jobs | submit | ablob's commentslogin

I'm not certain it is. How often do you push per day?

You technically only need a fingerprint right before you push, so you can sign all the commits just then.


True, I just checked, and I did an average of 58 pushes per day last month. I guess that would not be too cumbersome - would be interesting actually to check how many times per day I use the fingerprint reader on my Macbook already.

Absolutely wild to learn that some development shops are like this. 58 pushes per day?

I can see that - I just checked, and I'm averaging 85 commits per day this past week. Obviously not every commit is pushed right away; many are batched. These are pushes to our development/integration branches not production, and this isn't double-counting commits on local feature branches.

The rate of change these tools enable is incredible.


Some people just slop shit together, even before AI they were committing multiple minor (and completely uncompileable changes).

If your workflow is painful when you implement the most basic security, reconsider your workflow, not security.


There's an argument that we as an industry move away from continuous delivery and towards the Fine Art of Release Management.

Can't you just initialize and then do a NoGCRegion? It would give you everything except the monitoring I think.

It does not work the way I described. It is only for short periods and is not a guarantee, and has overheads for repeated calls.

.NET has supported custom garbage collectors for many years, so if you're willing to accept that all heap-allocated objects will live as long as your process, implementing a no-op garbage collector should be a straightforward exercise.

It's far from straightforward. And I need a special mode, eg during application start it may generate a lot of garbage, I want that collected, but then continue with idle GC. With an option to collect overnight, or when too much is allocated, but in controlled way.

This pattern isn't far from what a videogame sometimes needs to run a level: load a lot of data, generate a lot of garbage, try to collect all the garbage after load but before gameplay, then keep the GC from running again.

In C# you get most of that by calling `GC.Collect()` when you know you've finished loading and should be in a steady state. (I've seen non-games do it after application start as well, though in an enterprise application with full Server GC and plenty of RAM it feels more like a superstitious call than a necessary one.) Then in your "idle state" you can just try to avoid creating garbage. Games often use object pools aggressively, making sure most objects it needs are LOH/Gen2 and a few other "no allocation"/stack allocation-only approaches in the middle of a level.

You can try to ask the GC nicely with `GC.TryStartNoGCRegion()` during a section of your code but it's not necessarily a good idea and a lot of caveats apply.

But also, a lot of what you are asking for is sort of already what the default GC is optimized for by being a generational mark-and-sweep GC. It's tuned for bursts like application startup generating a lot of quick garbage that never leaves Gen0 and fast "arena sweeps". It's tuned for eventually reaching an Idle state where most of your objects are long-lived and hanging out in Gen2 and very rarely even checked to be collected.


The former issue arises from post-hoc thinking. Of course it's hard to retrofit into the language, but I see no reason why there shouldn't be facilities for the ? operator to turn a None into an appropriate error type.

The latter is a subjective matter. There are reasons to never want a panic (hello there, Linux kernel) and reasons to do more sophisticated stuff (core dump, cleanup or notifications) before crashing. And maybe one thread shouldn't lead to process death. I think most of these decisions should be kept to the user's discretion.


> no reason why there shouldn't be facilities for the ? operator to turn a None into an appropriate error type

There are facilities for this.

   option.ok_or(MyError::new())?

> do more sophisticated stuff (core dump, cleanup or notifications)

That's what panic::set_hook is for. [1]

> And maybe one thread shouldn't lead to process death.

That's what panic::catch_unwind is for. [2]

[1] https://doc.rust-lang.org/std/panic/fn.set_hook.html

[2] https://doc.rust-lang.org/std/panic/fn.catch_unwind.html


so printf("%i", 42) is fine and dandy golfing, but glTriangle(x, y, z) is too much? The next thing you're gonna tell me is that a true golfer manually invokes syscalls.

So deleting the files when not prompted to is correct behavior?

Files not recovered -> human in the wrong

Files recovered due to independent backup -> no problem

Is there any scenario in which you'd accept Claude's behavior as faulty here?


This is obviously bad model behavior (though I'd personally like to see the full transcript to see if there are any clues in there as to why it made the mistake.)

It's hardly new, though. We've been talking about models making stupid mistakes like this for years.


> We've been talking about models making stupid mistakes like this for years.

It seems like it should be a bigger issue that despite years of updates and improvements, AI agents still shit the bed in spectacular fashion like this. Simply shrugging our shoulders and accepting "agents be crazy" is precisely the opposite reaction we should take, especially as tech professionals.

Perhaps the joke about how meteorologists are the only professionals who can screw up badly on the regular and keep their jobs needs to be updated to include LLMs.


I believe every reader understands that Claude’s behavior is faulty here, what the disagreement is whether or not it is a tragedy. As the result of the error is a minor inconvenience, there is no tragedy.

An LLM does not have any guarantees about its behavior. If you allow it to delete your files, it may or may not delete them.

giving AI access to delete all your files -> human in the wrong for sure

I'm not saying the AI did make a mistake, but it should have been limited to the file it was working on, not everything in the dropbox. and yes, that's an error from the human


Given how hard it is to properly manage file permissions without a command line and prior training I'm inclined to disagree.

We're talking about a law professor. The only (practical) fidelity I know of is "check every single touched file manually", or "every file in town". I don't know if the setting is kept in-between tasks, so that may change my judgement. The second there is a visual interface from which to easily configure "these files are fine to read, these to modify" before the task is run, I will agree fully. But I don't think that exists yet.


I wonder what this means for custom async implementations in the long run. I was considering using my own AsyncBuilder to bring over a rudimentary "computation expression" capability. But that might be out of question now.


The post you replied to literally doesn't care about upgrades. More enforcement also doesn't matter if its what you need to get specifically _what was asked for_, which is a thinner device in this case. I also wouldn't like an X60 if it meant I have to leave things out of my bag.


It's closed to the public at the moment, so I don't think you will be able to find much.


AFAIK, the language is and was used in JB's projects. JB is just very picky about when he wants people to see things. He doesn't want outside voices influencing him and he still has some things he wants to think through. Doing that mostly solo takes time - it's not like the PL is the only thing he has been doing

If you are fine with getting there 80% his claim is correct. That he's using the language for his games proves it to me. Of course, if you require it to be both open and popular to be a success you kind of reach a stalemate. In a world where everyone can quickly whip up a language I would expect most to be closed to the public anyway.

I would like you to elaborate on how still being in closed beta is an argument against the thesis. To me it just looks like avoiding feature-requests, nitpicks and community interactions for a product he doesn't even want to sell.


I'd agree more except that as far as I know (I'll admit I've not been following the development that closely) he's been significantly building it in public on Twitch. So he's happy to spend time sharing it with the public, and has been from the start; it's just taken a long time to get it to a usable state.

> If you are fine with getting there 80% his claim is correct. That he's using the language for his games proves it to me. Of course, if you require it to be both open and popular to be a success you kind of reach a stalemate. In a world where everyone can quickly whip up a language I would expect most to be closed to the public anyway.

I think we're firmly in agreement here, except that IMO the default for software that's not for public consumption is to throw it over the wall, put the source up on GitHub or something, and not bother with documentation, explanation, or interaction. A carefully curated closed beta is kind of the opposite of that. If anything he's spending more time promoting it than I would expect.


I don't really see the semantic difference between your code snippet and

  if (double.TryParse("5.x5", out double val)) { ...

which would be the C# equivalent


Do people miss the word "ergonomically" in my original comment? Because yeah, the semantics is essentially the same, just as it would be the same for e.g.

    double.TryParse("5.x5", out double val, out bool ok);
    if (ok) { ... }
in case of a hypothetical variant of C# that doesn't have functions, only procedures, so you'd have to return the data from subroutine calls by ref/out/globals exclusively. It's still would be the same semantics — but quite different ergonomics.

So out of those three choices: return all results by assigning to ref/out parameters; return one result directly, all other by assigning to ref/out parameters; return all results directly — I personally prefer the last one. Almost nobody prefers the first one, yet people seem to be strangely attached to the second variant for some reason.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: