HNHacker News
TopNewBestAskShowJobs

greggman3

4,044 karma · joined February 6, 2020

submissionscomments
greggman3··on Pixi3D – 3D rendering library for the web
I'm very skeptical that big game engines will have any impact on the web. The issue is they're built for downloading XX gigs of data to a hard drive. Not for launching instantly like say google maps 3d mode.

Further, they re-implement everything themselves instead of using the features already built into the browser. Image decoding, video decoding, sound mixing, networking, text rendering, etc meaning you end up downloading 10-50meg of WASM. And every time they make a tiny change expect another large download.

Vs something like three, pixi, babylon, playcanvas, which are designed web first.

I think, it's likely a successful real-time 3d web based game will be designed for the web and I don't think the big game engines are engineered to make that easily possible.

greggman3··on The human cost of neurotechnology failure
> drug criminalisation makes recreational drug use a lot less safe than it could be were it legal and regulated

This is debatable. Here's a legal drug that kills 3 million people a year

https://www.alcoholrehabguide.org/resources/medical-conditio...

Here's another that kills 7 million people per year

https://www.cdc.gov/tobacco/data_statistics/fact_sheets/fast...

Note that I'm mostly for legalized drugs. I just have heard this data and I don't have an answer to it. My impression is I just take it on faith that less criminalization will be a net positive but I don't know that's for sure.

greggman3··on Ask HN: Developer abused “sign in with GitHub”?
Their API lets you do almost anything you can do on github. Its whole point is to allow people to write apps that do all the things you'd on github.

So, want to write a full front end for github? Do it. It's likely the github mobile app uses this API to provide every service it provides.

Open issues, create repos, add comments, create gists, create releases, star repos, etc...

https://docs.github.com/en/rest?apiVersion=2022-11-28

All that said, I have ranted about github's permissions

https://games.greggman.com/game/github-permission-problem/

greggman3··on Recommendations for Japan Travel
that's because both directions will get you to the train you're trying to get to. Example: From JR either west exit (then turn right) or the east exit (then turn left) will lead to the Marunouchi line. Pick one and follow the signs. That's no different than a subway with multiple exits on to the same street at both ends of the station

Similarly there's at least 3 perpendicular corridors connecting the JR tracks themselves so the exit to each corridor (of which there are 2 each so 6 exits) will all be labeled as leading to the other tracks because all of them actually do lead to the other tracks.

greggman3··on Recommendations for Japan Travel
Tokyo's trains have some of the best signage in the world. Nearly all the ones in Tokyo and other major cities have English directions. All the stations have color coded numbers like G12 or N13 if Japanese names are hard for you.

Signs on the tracks tell you what station you're at, what the previous station was and what the next station will be.

Every exit has a number and signs on the walls and ceilings tell you which way you need to walk to get to your destination or transfer.

At the gates there are always maps of the area on the walls to lookup where to go if you don't have a smartphone.

I've been all over the world and I can't think of another transit system that has all of those features. Others are always missing one or more.

As for the person below that mentioned they got help in Ikebukuro station, it's great they got help, but I suspect in their panic they didn't notice all the signs. There is no exit from the JR lines that does not have clear signage to every other line (tobu, seibu Ikebukuro, fukutoshinsen, Marunouchi, Yurakucho, ...)

greggman3··on Why your REPL experience sucks
A system I used you'd edit the source and press some key-combination that injected the current function only from the editor to the running app
greggman3··on Speeding up the JavaScript ecosystem, one library at a time
good stuff but something was mis-transcribed. This line can't possibly work

     for (const i = data.length; i-- > 0; ) {
greggman3··on Open Source and Saying “No”
this sounds like an engineer fighting against reality. If there is a way to file bugs people will use it to file feature requests. It will be up to you to filter them. It doesn't matter what system you use
greggman3··on Underrated reasons to be thankful
Every time I go out to eat I'm thankful that someone was willing to make that food for me. Food prep, especially at restaurants, is a ton of work. When I cook on my own and realize how much work it can be to make a single dish I'm super thankful that someone else was willing to make some for me for money.

Of course maybe if they don't actually want to do it and just have to do it for income I shouldn't be so thankful?

greggman3··on Why it’s hard to buy deodorant in Manhattan
Paid $20 for a burrito and a coke in a dive taqueria in the SF mission. Just a few years ago that would have been under $10. Curious if they give a discount to the local Latino population who's average income is fairly low.
greggman3··on Tree views in CSS
I am not, as I need to state of the details to be settable. That's the whole mo of react, that all UI state is under your control and has a single source of truth. For example you want a tree of files, give the user a search function, and want to expand/collapse any subtreee that contains/does not contain a result.

Details is a collapsable building block. that's it.

greggman3··on Just putting it out there
what is the definition of "perfect food"? For me that would probably be a banana. eady to eat, tastes great, relatively easy to ship all over the world.

even in Japan, half the country doesn't like natto.

greggman3··on How friendships change in adulthood
My close friends with kids include their kids when visiting friends. We all love their kids. And we get to spend them with our friends.
greggman3··on Tree views in CSS
I recently used details and summary for a tree view in react and ran into this bug

https://stackoverflow.com/questions/74313572/what-does-this-...

Just passing on info if you decide to use details in react

greggman3··on Resolving the great undo-redo quandary
there is much more to good undo than this.

many editors collapse edits into a groups and you can only undo by groups, not individual keypresses. This is usually desirable. For example type X then cursor right 60 times then type Y then undo 3 times. Are you at 2 characters before where the Y was or back at the X or before the X? In other words, were the 60 cursor right keypresses collapsed into 1, 2 steps or not collapsed at all

Good editors spend some time thinking about the most expected group definitions, bad editors (vscode in this specific case) seem to have picked a random number for their group size or a even a fixed number of keypresses but it feels random. There's no predicting how much it's going to undo in a single Ctrl/Cmd-z. Ii rarely does what I want compared to other editors

greggman3··on Multiple assertions are fine in a unit test
We recently switched our system to a heartbeat system instead of a timeout system. The testing framework expects to see messages (printf, console.log, etc...) often. So a test testing a bunch of combinations might take 45 seconds to run but for each combination it's printing "PASS: Combination 1, 2, 3" every few ms.

This way the framework can kill the test if it doesn't see one of these messages in a short amount of time.

This fixed our timeout issues. We had tests that took too long, specially in debug builds and we'd end up having to set too large a timeout. Now though, we can keep the timeout for the heartbeat really short and our timeout issues have mostly gone away.

greggman3··on Ask HN: Working in a VR Headset?
> There are upgrades that you really need: A better head strap, ideally one with an adjustment knob at the back to easily loosen and tighten the headset. Also one with an extra battery that both gives you longer unplugged time but more importantly balances the headset front to back.

IMO, until VR gets the size and weight of safety goggles you need the device to rest on your forehead. The PSVR is still the single most comformtable VR system that's shipped because there is no pressure on your face whatsoever.

Apparently you can get these for Quest 2. Here's one. Don't own a Quest 2 though so I haven't tried it

https://www.amazon.com/dp/B0B599S56K

I go have a Rift S. It tried to copy PSVR but failed to make it as good. You have really crank the back of the head strap below the ridge of the back of your head to get the HMD to rest on your forehead and not your face, and then it slowly slides and it's back to resting on your face.

Let me also add, if the thing requires a strap that goes over the top of your head then it's a fail!

greggman3··on Column Vectors vs. Row Vectors
Not in love with GL as someone that's written GL drivers and re-implemented GL on top of modern APIs, but....

for me, the GL style (whatever you decide to call it) seems to make sense from a performance POV. I often want one axis or the translation. It's a single SIMD load since vs if they were stored the other way I'd have to load every 4th float.

Also, while you do type them out in code different from math

    x x x x
    y y y y
    z z z z
    t t t t
If you squint you can view them as columns

    xaxis = [
      .
      .
      .
      .
    ]
    yaxis = [
      .
      .
      .
      .
    ]
    zaxis = [
      .
      .
      .
      .
    ]
    translation = [
      .
      .
      .
      .
    ]

    matrix = [xaxis, yaxis, zaxis, translation]  // 4 columns side by side
greggman3··on Passkeys.io – A Passkey Authentication Demo
Watch the video linked below by psanford

1) How can I share the fingerprint keys between chrome and safari?

You don't need to. That's not how it works. Chrome and Safari and every device will have a different key for the same service (see video)

2) How do I share keys between different types of devices? (mac, ios, android, windows)

You don't. You authenticate and a new key is created on each device, possibly on each piece of software (Firefox, Chrome, Safari, App). To be more clear, when and if you decide to use a service from a new device or new browser you'll be asked if you want to login via passkey. If you have a passkey on another device you can (see video) use that to login from the other device (similar to how google asks viat the gmail app of you were trying to log into some other device or Apple asks across your device). After you authenticate you can then create a new passkey for this device/software you're using. This new passkey is separate from the previous passkey. You effectively have 2 passkeys now, one to login with one device/software, one to with a different device/sofware. (See video)

3) What happens if my devices are gone?

You follow whatever recovery procedures the service has.

4) What happens if I want to change my login (email to a new email for example)?

Unrelated. Your email is not shared with passkey. So login and set a new email

5) Is account recovery handled simply by a reset-email?

That's up to the site/service just like it is without passkey

6) It seems a validation step of the email is missing?

That's up to the service as well. They could require an email but that's unrelated to passkey

greggman3··on Ask HN: Am I getting older or did typing on the iPhone become unbearable?
OMG!!!! I thought I was somehow actually pressing period for years! I didn't feel like I was but I never noticed I wasn't actually pressing it and it was instead auto inserting periods. WTF! Thanks!!!!
greggman3··on Ask HN: Am I getting older or did typing on the iPhone become unbearable?
I've never been able to type well on a smartphone well, ever. I feel like I have to correct 5 of 6 words multiple times each. For me I have noticed no change for years so iOS14->15 I noticed no difference.

Same with selection. It's infuriating, has been since iPhone shipped, still bad 15 years later.

Sometimes I feel like I should attach a camera to my wrist to film me trying to use it and hopefully get some popular site to show just how much poor UX I put up with every day. Unfortunately it would be hard to do, it would show private info, and it would lead nowhere.

greggman3··on Fine-grained personal access tokens for GitHub
> but the node actively using service should be able to re-generate its own one.

Which in order to do it would presumably need some meta-token you use to authenticate to get a token. how is that more secure? It sounds like I just need the meta-token instead of the token. So, same amount of security as just a non-expiring token

greggman3··on Does cashless society discriminate against the poor and elderly? (2019)
I don't know where you are carving out an exception. The entire page is about what happens with Apple Pay. It doesn't say anything about "card not present"

Further, the response is about a restaurant that has a website you have to use. The website offers Apple Pay as an option. If you pick it your email will be shared. It says so on the page itself.

greggman3··on Does cashless society discriminate against the poor and elderly? (2019)
This is true

https://www.apple.com/legal/privacy/data/en/apple-pay/

> Information Shared When You Make a Payment

> When you begin a payment within an app, on the web, or within Apple Messages for Business using Apple Pay, to enable tax and shipping cost calculation your zip code, postal code, or other equivalent information is provided to the app, website, or merchant. After you authorize the payment, other information requested by the merchant, such as a device- or merchant-specific account number, your shipping address, or email address, is also provided.

greggman3··on Apple unveils redesigned iPad
8yrs is better than 4yrs but worse than 12, 20, 30yrs.

I get that in some ways tech is different (my rice cookers still going, 60yrs) but in other ways it's not. My 2014 MBP really has zero reason to become obsolete (they stopped supporting it a year ago). It still functions just fine. It's still plenty fast. There are no features of the 2021 MBP missing from them 2014 MBP except at most USB-C ports.

greggman3··on I am endlessly fascinated with content tagging systems
MacOS has tags. Right click any file in finder, select "Tags..."

No idea if they are implemented at a filesystem level but there are various tools for finding things by tag

greggman3··on Does cashless society discriminate against the poor and elderly? (2019)
I agree with you. It's getting harder and harder. Went to a restaurant Friday night with friends. Inside there are no menus, only QR cords and the UX is some of the worst ever (toastlab). There is also no way to pay except through the website which wants you to register an account. I don't want to be a dick to my friends but I also don't want to eat at this restaurant. The waiters said "put in fake info" and they acknowledged everyone complains about the menus. In the end my friends paid and I didn't have to bring up the issue.
greggman3··on P5.js – A library to make coding accessible for artists, designers, educators
Victor Bret seemed to think p5 (and p5.js) succeeded despite being poorly designed for learning.

http://worrydream.com/#!/LearnableProgramming

I'm not saying he's right though I thought he had some good points

I do wonder if it succeeds more based on community than design though

greggman3··on California man fined for selling maps of property boundaries without a license
reminds me of this

https://youtu.be/BN8B12xmisY

greggman3··on Calif. Law to Protect Children's Privacy Could Lead to Invasive Age Verification
There is no way those properties won't include PII 99.999% of the time. Your option will be to identify yourself or not access the site
← PreviousPage 2 of 34Next →