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

I just watched video[0] that argues if you can consteval something, then it must be free of UB, which seems compelling, at least for these lower level helpers.

Unfortunately, it seems memcpy is not constexpr, so cannot be used like this, but std::bit_cast actually works[1] as constexpr, so I think in C++ that would now be the most preferred use. It won't allow the union either.

[0] https://www.youtube.com/watch?v=-LAXqqqX274 [1] https://godbolt.org/z/xGzjTMGvv


Careful, only language UB is guaranteed to be detected in constant evaluation, UB in standard library functions isn't. It is a good sanity check though.

Also it seems that bit_cast in particular is going to be strengthened in this regard:

https://cplusplus.github.io/LWG/issue4539


__builtin_memcpy is constexpr under clang with constraints

This irks me as well. There have been perfectly good words to describe these.

The models are freeware, and some have additional restrictions in the license that make them shareware, imho!


I believe there are several crates (and other languages too) inspired by the original cassowary paper, don't know how mature they are though.


Maybe it’s for the llm tool use PATH?

That was the most plausible reason to even mention it, that I could think of.


So, is it like colinux[0], but for pre-NT windows? Neat!

Back when I was still using windows (probably XP era), I used to run colinux, it was kind of amazing, setting up something like LAMP stack on the linux side was a lot easier and then using windows editors for editing made for quite nice local dev env, I think! Could even try some of the X11 servers on windows and use a linux desktop on top of windows.

When I noticed I kept inching towards more and more unixy enviornment on the windows, I eventually switched to macOS.

Apart from the obvious hack-value, I can't quite imagine even pretend use-case, with some 486 era machine, you would be limited by memory quite quickly!

[0] http://colinux.org/


Colinux was a tech feat, just not that many people noticed.


Yes (coLinux author).

What I especially like about this Windows 9x Subsystem project, is that it proves that coLinux could have been written way earlier. Now imagine how less dual booting we would have needed in 1996 if that happened, and how it would have affected VMware which only existed since 1998.


A bit late thanks, and a respectful hat tip.


Well, at least they brought back edit[0]

[0] https://github.com/microsoft/edit


If this was actually (pre)installed with Windows, I wouldn't mind the changes to notepad nearly as much.


While I'd love it installed by default, I still very much mind that they're ruining Notepad.

Plus this Markdown preview functionality just caused Notepad to have a Remote Code Execution Vulnerability in it.


Oh it's still pretty stupid, and I think they should have simply resurrected the Wordpad name for this, and maybe a conversion utility for opening doc/rtf files to markdown in the editor for older file support.


Agreed. Resurrecting Wordpad and making it really cool/useful would make everyone happy.

They can add as much AI and Markdown as they want to Wordpad as far as I'm concerned. Just leave my dumb featureless utility alone.


It is preinstalled. Server 2025 (even Core Edition) and Windows 11 24H2 (or 25H2, not sure)...


Edit is unironically one of my favorite text editors these days. It opens incredibly fast compared to everything else I use, it's easy to use, works fine on Linux. It's not going to replace emacs or VS Code, but it's incredibly handy for basic editing chores.


Have you tried Micro? https://micro-editor.github.io/


If you don’t need to render rich text and want a plain text editor then TUIs are the least likely to get a bunch of dumb features


But the rest of QBASIC is missing.


There is a bbc podcast[0] about evilcorp

[0] https://www.bbc.co.uk/programmes/w3ct89y8


The podcast includes the author of that blog post and is also linked in the article.

> Both Baldwin and I were interviewed at length for a new weekly six-part podcast by the BBC that delves deep into the history of Evil Corp.


> Every once in a while I pull up some Wikipedia article with idle curiosity of "If I were transported back in time, could I usefully help this get invented?"

This reminds me of the book “How to invent everything” by Ryan North, to kind of see the fast-path for many inventions :)


Then there is the proposal to add standard `defer` to C2y[0]

[0] https://thephd.dev/c2y-the-defer-technical-specification-its...


It's been implemented in GCC(in review)[1], onramp[2] and my own slimcc[3]!

[1] https://patchwork.ozlabs.org/project/gcc/list/?series=470822

[2] https://github.com/ludocode/onramp

[3] https://github.com/fuhsnn/slimcc


A good example of adding stuff to the standard with community feedback from a preview implementation.


Jen's macro that this was based on was an implementation of his own proposal (N3434) for `defer`, which was one of a few preceding what finally became TS25755! So, yes, C2y is lined up to have "defer: the feature", but until then, we can explore "defer: the macro" (at least on GCC builds, as formulated).


Heh, little prince tries gig work ;)


100% had the same little prince connection the moment it loaded. Quite pretty indeed.


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

Search: