Better HN
topnewbestaskshowjobs
Log inSign up

utf_8x

454 karma · joined Dec 9, 2019 (6y ago) · 204 submissions

Submissions

comment 2w ago · link · parent

I recently got back into C++ and I've been really enjoying the new features in C++23. It's still a very imperfect language but it feels a lot more modern these days.

comment 5mo ago · link · parent

Wow, just wow. I think bullying the agents of careless operators is my new favorite thing.

comment 6mo ago · link · parent

Considering it let them do an unauthorized wire transfer from a system account, 12k seems pretty reasonable.

comment 7mo ago · link · parent

Hell yeah! After all these years it's finally here.

One thing I miss here (and admittedly I only skimmed through the post so if I missed this, please do correct me) is "ad hoc" unions.

It would be great to be able to do something like

  public Union<TypeA, TypeB> GetThing()...
Without having to declare the union first. Basically OneOf<...> but built-in and more integrated

5.

Show HN: A .NET Web Framework on the Base .NET Core SDK(github.com ↗)

2 points · by utf_8x · 8mo ago · discuss

comment 8mo ago · link · parent

GitLab seems to be having some issues too https://status.gitlab.com/

comment 8mo ago · link · parent

No wonder they don't publish an availability percentage. If I was a business customer paying for GitHub I would be very upset with the availability lately.

comment 8mo ago · link · parent

Actions are failing and starting new actions results in a 500 error... The status page is shockingly all green...

Edit: The status page is no longer green

comment 9mo ago · link · parent

The closure has been lifted: https://x.com/FAANews/status/2021583720465969421

comment 9mo ago · link · parent

I'm working on a "toy" .NET web framework that has no dependencies on the ASP.NET Core Web SDK, runs fully on the "base" .NET Core SDK and can easily be embedded in existing applications.

https://github.com/WispFramework/Wisp, https://wispframework.github.io/Wisp/

It tries to be reasonably lightweight but batteries-included, with extra features in separate "extensions" packages. It's also designed to be modular. All functionality has a default implementation but can easily be replaced if desired. It uses the Fluid template engine[1] (a .NET implementation of the Liquid language).

It's been a great way to dig into more advanced concepts like reflection and HTTP internals and while it's probably not safe to use in production, I have used it to build small private apps with great success.

The current major pain points are the lack of websocket support, which I'm planning to add soon, and the general fragility of the NetCoreServer[2] based HTTP backend, which I'm planning to replace with EmbedIO. (Ideally, I would love to use Kestrel here, but it's so deeply baked into ASP.NET Core that you can't use it without pulling in the whole Web SDK)

The documentation is also pretty incomplete but I hate writing docs so I find it hard to force myself to do it.

[1] https://github.com/sebastienros/fluid

[2] https://github.com/chronoxor/NetCoreServer

(LLM Disclaimer: This project is not vibe-coded. Most of the code is written by hand, with some input from ChatGPT being used as a fancy search engine. The docs are written by hand and then fed through ChatGPT to make them more readable)

comment 9mo ago · link · parent

If you're looking for an alternative to Discord, check out Stoat (formerly Revolt). [1] Especially if you're an iOS dev with some free time as the iOS client could really use some love... [2]

(not affiliated with the project, just really want to see it succeed)

[1] https://stoat.chat/ [2] https://github.com/stoatchat/for-ios

comment 9mo ago · link · parent

For prototypes, almost certainly with a CNC lathe. For a large scale production, I would expect them to drop forge these...

comment 10mo ago · link · parent

If this doesn't work for you on a reasonably recent version of Firefox, you can enable experimental (but in my experience quite stable) WebGPU support in `about:config` by setting `dom.webgpu.enabled` to true.

comment 10mo ago · link · parent

Bose continues to be an extremely consumer-friendly company (especially by today's standards). I remember back when the QC35s were THE noise cancelling headphones, the bridge* snapped on mine, I contacted Bose support asking if it could be fixed and they offered me a free replacement, no questions asked, a year after my warranty ended.

* Is that what it's called? The top part that goes over your head...

comment 10mo ago · link · parent

It would appear that they pay their employees fairly well, as seen in this old job posting [1] (not all levels will make this much of course but it gives you a general idea, almost 300k a year is a lot even for a staff engineer).

$275,000 is almost $23,000 a month. Take that times N amount of employees, and other business overhead, and suddenly $80k a month is literally peanuts.

[1] https://tailwindcss.com/blog/hiring-a-design-engineer-and-st...

comment 10mo ago · link · parent

Considering the relatively limited context window even on the latest models, the output would likely be incoherent mess. Sure, you could make the LLM go through the code in easily digestible chunks (file by file) but to get any groundbreaking optimization, it would need to have the context of the entire project to properly understand the architecture. (IMO that is, I'm not an expert)

comment 10mo ago · link · parent

If you want a more... ergonomic language, you can also use the new "run file directly" functionality in .NET 10. It supports shebangs directly and it will even install packages referenced in the script!

  #!/usr/bin/env dotnet run
  #:package Newtonsoft.Json@13.0.3
  
  using Newtonsoft.Json;
  
  Console.WriteLine(
    JsonConvert.SerializeObject(new { Hello = "world" })
  );
Even better, with the #:sdk directive, you can even serve a tiny web app directly from your "fancy shell script"...

  #!/usr/bin/env dotnet run
  #:sdk Microsoft.NET.Sdk.Web
  
  WebApplication
    .Create()
    .MapGet("/", () => "Hello from a shell script!")
    .Run();

comment 11mo ago · link · parent

Can we just give up on HDMI and start putting DisplayPort on TVs already?

comment 11mo ago · link · parent

Yarr

comment 11mo ago · link · parent

Surely the FTC will take issue with Netflix acquiring HBO Max?

comment 1y ago · link · parent

Thanks :) I'll definitely be sending out an update soon... And yeah, I haven't really mobile optimized the site yet.

comment 1y ago · link · parent

I duct-taped together a quick website[1], you can sign up for the mailing list or the discord if you're interested... Or just check up on the website in couple of weeks.

[1] https://keropunkgame.com/

comment 1y ago · link · parent

I've been working on a factory sim game for some time now and I'm finally getting to a stage where I might be comfortable enough showing it off soon and maybe even try my luck with some sort of crowdfunding.

comment 1y ago · link · parent

My country's national postal system still uses an IBM mainframe based system from the 80s. The clients these days are desktops with Linux Mint and a terminal emulator but it's still very much TUI based.

comment 1y ago · link · parent

Is there any non-tabloid source for any of this?

comment 1y ago · link · parent

Interesting, I thought the next in line was Craig Federighi

comment 1y ago · link · parent

The Linux "brand" is trademarked by Linus Torvalds, presumably to stop things like "Microsoft® Linux®" from happening...

comment 1y ago · link · parent

From the video description:

  I built a small language model in Minecraft using no command blocks or datapacks!

comment 1y ago · link · parent

Can anyone with one of these confirm if Android Auto works with it?
1234567