HNHacker News
TopNewBestAskShowJobs

Bigpet

274 karma · joined September 18, 2018

submissionscomments
Bigpet··on Riding high in Germany on the world's oldest suspended railway
The solid axle turning without slippage from that video works for regular inter-city rail. I think it doesn't work for rails with the tighter turning radii often required of inner city trams and similar rail transport.
Bigpet··on Side projects I've built since 2009
well looking at the list of projects and seeing the site `ZeroAcquire` there it looks like he asked himself the same question and sold the solution
Bigpet··on Docs – Open source alternative to Notion or Outline
looks neat. Like Acreom, but with better collaboration capabilities.
Bigpet··on TikTok preparing for U.S. shut-off on Sunday
Saudi Arabia is not on the list. It's Russia, Iran, North Korea, China.

> (4) FOREIGN ADVERSARY COUNTRY.—The term "foreign adversary country" means a country specified in section 4872(d)(2) of title 10, United States Code.

Bigpet··on Show HN: I made a git rebase TUI editor
I was confused at first too because I tabbed out and came back to it.

You need to scroll down to the `Newbase` Section. It's apparently both the repo for some kind of cli framework and for the rebase tool.

Bigpet··on Trip report: Autumn ISO C++ standards meeting (Kona, HI, USA)
Yep, for types that's a new operator. It is also a binary operator for xor, for values. But no unary use from what I remember.They call it "reflection operator" in the paper.

It was previously used by Microsoft for their C++/CLR (or C++/CLI) to mark garbage collected values. But that was after the type, not in front iirc.

Bigpet··on Zig: Upcoming release postponed two more weeks and lacks async functions
Having some form of coroutines or green threads seems like a good idea to me for something low-level. Otherwise countless projects that need something like it will re-implent their own incompable version with longjmp or similar means.
Bigpet··on Intel One Mono Typeface
Why is it combining back-tick with the previous letter in a ligature with almost all letters? Into a single character wide element it seems. So looking at a Markdown file with "a`" will print it as "à" always even with letters like "t" or "Y".

Edit: issue seems to be disussed here: https://github.com/intel/intel-one-mono/issues/3

Bigpet··on Intel One Mono Typeface
> Where even is the backtick?

Not just that, why is the backtick unconditionally combining with the previous letter? If you type "a`" it will always print "à" for me, even combining with letters like "t", seems like a ligature table bug or something. Just randomly saw that when looking at a markdown file

Bigpet··on Soursop and Ponies in Kona: A C++ Committee Trip Report
Fully agree with #embed. I don't really need the feature often enough to justify it. But it feels fine to use the preprocessor for it. It's annoying enough for the people who need it to have some build-system work-around, so just some simple straight forward implementation seems better than some over-specified solution for every possible use-case (imagine the horror of some template construct with locales/encoding specification added to it). Also, even if C keeps diverging from C++ having these basic constructs stay compatible is worth quite a lot imho.
Bigpet··on Closing a 30 pixel gap between native and web
you need to "install" the PWA first. So how's this different from regular desktop applications in regards to phishing specifically? Do you mean an app presenting pre-"install" as something and then post-"install" as something else?

I'm having a hard time seeing a lot of difference. Most windows you want to "spoof" will look different in regards to the title bar either way. In a regular browser window you'll have the browser title bar. In the PWA case you'll have the extra hamburger menu.

Bigpet··on Show HN: Mini Metroidvania in 13KB of JavaScript
Hm. I don't know if I'd consider atmosphere part of the genre. But it's missing boss fights which are a pretty core part of the genre I think.

Which other NES or SNES games take place on one continuous map that you backtrack with new abilities to find a way to progress?

Edit: that you wouldn't consider a metroidvania, I mean.

Bigpet··on Show HN: Mini Metroidvania in 13KB of JavaScript
The metroidvania inspirations are pretty clear, it's a large map that you unlock gradually by finding abilities on the map. Including some back-tracking.

What do you think is missing for it to be called a metroidvania?

Bigpet··on Cloudflare's abuse policies and approach
Then charge them with racketeering.

If that doesn't work make the part you don't like illegal. Enshrine something like the "right to be forgotten" stuff into law and make them take down threads if the people they refer to don't want them up.

I know it's hard to word something like a "right to be forgotten" without making it to broad and a tool for abuse of chilling speech but it seems worth the effort if the consequences are this dire.

Bigpet··on Cloudflare's abuse policies and approach
Swatting people is illegal, if you have evidence of a crime you should bring it to the police, not to cloudflare.
Bigpet··on Qt signal is ten times slower than a virtual function
> With Qt being used on microcontrollers these days

Is it really though? It's used in embedded systems. I wouldn't call those that can run Qt UIs microcontrollers.

Bigpet··on C23 is finished: Here is what is on the menu
oh, I didn't see that byteswap wasn't in there. I googled the "stdc_" part and saw a paper that included byteswap. I guess that was an older draft.

Damn, so close. Well I hope it's included next time.

Bigpet··on C23 is finished: Here is what is on the menu
I'm just happy that both C and C++ now have bit stuff like byteswap, popcount, rolr, etc.

It was a bit silly that stuff like that wasn't in either standard until this recently.

Bigpet··on ImHex – A Hex Editor
Oh, looks neat. I've been looking for a cross-platform hex editor for simple editing (wxmedit kind of sucks on macos and had issues for a while now).

This seems to have some very powerful features, but sadly doesn't support trivial editing stuff. Like when you have a simple text file and need to do some light unicode or other encoding fixups.

Like "delete/remove selection" or "type in ascii replacements for these bytes one after the other".

But I mean it's open source, so if I somehow find the time I might add those.

Bigpet··on The GPU shortage is over
The DIY desktop gaming tower market has got to be pretty small by now.

Margins on pre-builds have been shrinking to almost nothing, I build my own PCs because I see it as a hobby, but I could hardly recommend it nowadays to someone who's looking for a machine, not a new hobby.

Bigpet··on Twitter Notes
The desktop web version also doesn't seem to support it for me. Just shows me "Hmm...this page doesn’t exist. Try searching for something else."
Bigpet··on The Fight to Hold Pornhub Accountable
No reason to have alcohol in a "civilized society" either.

People aren't logic automata and trying to make rules that treat a population as such will always end up in the way that prohibition did. You should punish/sanction very harmful expression of base-instincts of humans, but criminalizing all of those that appear even somewhat undesirable will just make the prison problem even worse.

Bigpet··on 9-Euro-Ticket
Numbers are still significantly higher than Winter 2020/21. So with lessening restrictions this winter is poised to set another record (for infections at least, deaths might not be as high as last year). People don't care, true. But that's about feeling, not about numbers or facts.
Bigpet··on Preview, the Mac app people forget about
It has some even more fundamental bugs with PDF. Concatenating transformation matrices with negative scaling (i.e to flip the coordinate system you're drawing in) is completely broken in Preview and Safari. It's completely conformant according to the PDF standard.

Obviously prints fine and chrome/firefox or Windows don't have any issues with it. Obviously Adobe has no issue with it.

But here it is staying broken for years, because you can't explain to mac users that Apple is the one that made the mistake if they preview things your tool generates and they look broken. So devs just "fix" their PDFs to be bug compatible with Apples version.

Bigpet··on What Artists Notice
I'm a little confused about the comment about the mirror rectifications. The author seems to claim that the other versions in the paper are "mathematically correct versions". But the label says that those are rectifications applied to the image with different assumptions about the mirror shape.

None of the rectifications are "remarkably correct" in my opinion. As in, they don't result in an image that looks completely undistributed. Most easily seen at the table end in the mirror. The horizontally drawn line of the table end is clearly wrong. It would only be correct if it were at the center-line of the mirror, but it's well below.

But being 100% mathematically isn't really important for the painting I would argue. It captures the effect of the mirror as it "appears to the observer" perfectly in my opinion.

Bigpet··on Heaps: A free, open-source and cross-platform game engine
About the pixel perfect aspect: were the people that made the flash games/experiences that I played just bad, or did flash also struggle with pixel perfect placement. I remember both a lot of nearest neighbour flickering and a bunch of seems appearing/disappearing.
Bigpet··on NotepadNext: A cross-platform reimplementation of Notepad++
wxMEdit (formerly MadEdit) filled that niche for me for years. It does seem that recent versions do have some bugs that occasionally rear their head, but it's still very usable.

At least it was for me, Using Notepad++ for editing config files, batch files, large sql stuff from time to time and the occasional binary. Including search and replace in a bunch of directories.

Bigpet··on My macOS keyboard shortcuts
I've tried Karabiner Elements for quite some time. Because I came from Windows and wanted to swap some keys around (command/control and some shortcuts).

It seems to me that it made input lag sometimes worse and also just ate input more often that when I uninstalled it. I mean this piece of shit i9 2019 MBP does that sometimes anyway when under high load, but happens more often with Karabiner installed.

Bigpet··on Capcom CPS-1 Graphic system study
Couldn't immediately find a good explanation of what STAR1 and STAR2 were. Looks like it's 256x256 bitmap that's scrollable and cycles automatically through a color palette. So you can make the stars "twinkle" by it just shifting through the palette

https://github.com/mamedev/mame/blob/master/src/mame/video/c...

edit: didn't see that "col" also contained an x-offset. So like (256*16)x256 but presumably "sparse", so I get more where the "star" idea comes from

Bigpet··on Is C++ Doomed?
To the point of complexity, the allocation makes the container unfit for over-aligned types. But honestly I don't even know if STL containers are over-alignment aware.

So instead of

  (T*)malloc(sizeof(T) * capacity_);
it should be something like this if you want to deal with over-aligned types.

  (T*) operator new(sizeof(T)*capacity_, std::align_val_t{alignof(T)});
Also, in the reallocation function the elements are move-assigned to uninitialized memory. They should be move-constructed with a placement-new. And of course calling the destructors of the moved-from objects is still required.

It's of course a little telling that the compiler will not complain about these errors and you have to use and know to use tools like address sanitizer, memory sanatizer and valgrind to let a machine help you find them.

← PreviousPage 2 of 4Next →