Better HN
topnewbestaskshowjobs
Log inSign up

wild_pointer

467 karma · joined May 12, 2023 (3y ago) · 96 submissions

Submissions

comment 1y ago · link · parent

Can somebody eli5? Coffee good or coffee bad?

comment 1y ago · link · parent

This can if I remember correctly (can't check now), but it's a POC and not a finished product https://github.com/ShizukuIchi/pdf-editor

comment 1y ago · link · parent

That's the problem with all the pdf editors available out there. I guess adding stuff is much easier than editing existing stuff which you didn't add, and can be laid out in a gazillion ways, because PDF is a format for viewing and printing, not for editing.

I had a period when I worked with lots of documents. I could only find one fairly decent PDF editor which deserves to be called that way. I could use it to open any PDF and delete an existing element, or change text in an existing field. Sometimes things behaved funny, for example a text field can have each letter in a separate block, but I assume the tool did what it could within reasonable effort. It worked fine for me overall.

comment 1y ago · link · parent

They pushed hard for its adoption, for example with the "Not secure" indicator: https://aboutssl.org/how-to-fix-the-https-not-secure-message...

There are other, not less important players, such as Let's Encrypt.

So while they didn't develop or pioneer HTTPS per se, they played an important role.

65.

The Chromium Security Paradox(island.io ↗)

8 points · by wild_pointer · 1y ago · 3 comments

comment 1y ago · link · parent

chicken (+558998, -997)

comment 1y ago · link · parent

"In addition, there are some variables such as locks and scope_guards that are only used for their side effects"

...

"This solution is also similar to other languages’ features or conventions"

As far as I know, in Rust you can't use "_" for that, as the value will be dropped right away, so the mutex/resource/etc. won't live for the scope.

comment 1y ago · link · parent

I thought it was about https://en.wikipedia.org/wiki/Tiny_C_Compiler

comment 1y ago · link · parent

I starred my UUID of choice. Now I can't find it. Help, I've been scrolling for three days.

comment 1y ago · link · parent

Nice one.

Random key: balance is zero.

Real key: balance is (now) zero

comment 2y ago · link · parent

Yes, I get it, fighting isn't safe

comment 2y ago · link · parent

Can't the same trick be used for slightly more bits? 64-bit uses 48 bits nowadays AFAIK, which is 256 TB. It's usually 50/50 for user/kernel mode. If, say, WASM takes half of the user mode address space, it's still 46 bits which is 64 TB (ought to be enough for anybody?). Or maybe I'm way off, I don't really know the specifics of the trick you're referring to.

comment 2y ago · link · parent

xkcd 927 anyone?

comment 2y ago · link · parent

Expected a safety fight. The talk didn't deliver :(

comment 2y ago · link · parent

Yes, I was bitten by it in the past. Still, it'd better be a lint, or at least a very very long deprecation period... like, deprecated and removed in Python 4 or something.

comment 2y ago · link · parent

Well, it does support it now. It supported it before, too :P

comment 2y ago · link · parent

Why does Rust panic under the hood? Brb reading the post to find out!

comment 2y ago · link · parent

Sorry to roast your project, but the roast one is so much better. Got me in the sensitive spots and mentioned very specific stuff. This one feels like a generic "you have 260 followers, you're awesome". Also, it did some roast anyway - "As for the blank README and bio, don't worry about it! Sometimes, less is more." :)

comment 2y ago · link · parent

That's good progress. How do these features compare to Brave, which has Brave Shields and [copy clean link](https://github.com/brave/brave-browser/wiki/Copy-clean-link)?

80.

Writing GUI apps for Windows is painful(tulach.cc ↗)

468 points · by wild_pointer · 2y ago · 561 comments

81.

Project Naptime: Evaluating Offensive Security Capabilities of LLMs(googleprojectzero.blogspot.com ↗)

1 points · by wild_pointer · 2y ago · discuss

82.

Zig 0.13.0 Release Notes(ziglang.org ↗)

80 points · by wild_pointer · 2y ago · 23 comments

comment 2y ago · link · parent

> circle: rigorous memory safety

> rust: unsafe { println!("{}", *r1); }

Comeon people, if you allow unsafety, you cannot call your language safe. There are safe system languages, but don't lie and call unsafe languages safe. Partial safety is not full safety.

comment 2y ago · link · parent

From the readme:

> Internally, some absolutely hideous shenanegans are involved to make this possible!

Yeah, like literally embedding a dll in the header file.

Pretty cool, but seems kinda fragile.

85.

Dot Hide – Linux-style hiding of dot files in Windows(windhawk.net ↗)

4 points · by wild_pointer · 2y ago · discuss

comment 2y ago · link · parent

I prefer Windhawk, especially with the new Windows 11 Start Menu Styler. You get to choose a better layout while keeping the native start menu. Like CSS for the start menu basically.

https://www.gamingdeputy.com/windows-11-start-menu-styler-de...

comment 2y ago · link · parent

> Sounds like yet another case of "this should be a warning instead".

The discussion about it is indeed interesting: https://github.com/ziglang/zig/issues/224

e.g.:

> > When debugging/prototyping, it's useful to comment out a line without having to refactor, e.g. > > I think this use case is a strong argument. However, it's up against another strong use case, which is the ability to rely on a set of assumptions when reading the source of a compiling codebase. > [...] > a variable declared with var does have a modification to it

Which is an interesting property.

We'll see how it goes for them.

comment 3y ago · link · parent

"The knowledge that the atoms that comprise life on earth - the atoms that make up the human body, are traceable to the crucibles that cooked light elements into heavy elements in their core under extreme temperatures and pressures. These stars- the high mass ones among them- went unstable in their later years- they collapsed and then exploded- scattering their enriched guts across the galaxy- guts made of carbon, nitrogen, oxygen, and all the fundamental ingredients of life itself. These ingredients become part of gas clouds that condense, collapse, form the next generation of solar systems- stars with orbiting planets. And those planets now have the ingredients for life itself. So that when I look up at the night sky, and I know that yes we are part of this universe, we are in this universe, but perhaps more important than both of those facts is that the universe is in us. When I reflect on that fact, I look up- many people feel small, cause their small and the universe is big. But I feel big because my atoms came from those stars."

comment 3y ago · link · parent

curl 8.2.1 in insider since 2023-10-05 (not advocating, just FYI): https://winbindex.m417z.com/?arch=insider&file=curl.exe
1234