Better HN
topnewbestaskshowjobs
Log inSign up

Frotag

444 karma · joined Mar 31, 2022 (4y ago) · 193 submissions

Submissions

comment 4d ago · link · parent

I have a FW 16 (first gen with the AMD 7040). It's still going strong after 3 years of daily use, mostly docked but stand-alone maybe one or two days a week.

I don't use it on battery much but currently it'll last maybe 4-6 hours? (Assuming typical web browsing / videos / coding.) So definitely worse than macbooks, maybe an hour or so less than my brother's (new) intel ultra laptop.

Build quality has been pretty solid. Only things that have broken have been my fault (keyboard stopped working after the Nth spill, usb connector (for power) is a bit loose after years of sloppy aim) and have been a breeze to replace.

Perf-wise, my only complaint is that I wasn't expecting usb bandwidth to be a bottleneck. Turns out I can't drive 3x 4k screens and fast-charge and have full ethernet bandwidth all at once (each to a different usb port, no dock). But I guess that might've been a unrealistic expectation.

I guess I should note that I've had a minor issue with the amd igpu crashing in a certain game under very specific conditions and the laptop occasionally failing to sleep / wake from sleep. But iirc the former is amd's fault and the latter is unfortunately par for the course on linux ime.

But yeah overall a positive experience. The laptop was definitely pricey for the specs but I knew that I'd be paying for the modularity + small-volume going in. It's also nice for peace of mind, not having to handle it as carefully, knowing its fix-able and trusting FW not to cheap out hinges and the like (previous 4 laptops have all died from hardware after 2-3yrs).

comment 5d ago · link · parent

Always thought it was weird how low the bar is for US public education. Like AP classes [0] are a joke compared to UK A-levels [1] and college entrance exams in SEA [2] [3]. I realize these tests aren't exactly teaching "how to arrive at your own conclusions" but having an expansive knowledge base seems like a somewhat important prerequisite to drawing conclusions.

[0] https://secure-media.collegeboard.org/digitalServices/pdf/ap...

[1] https://www.scribd.com/document/828528451/A-star-training-qu...

[2] https://mathpowergen.com/2026-%ec%88%98%eb%8a%a5-%ec%88%98%e...

[3] https://www.densu.jp/tokyo/26tokyospass.pdf

comment 6d ago · link · parent

> i still havent found that one tutorial

Yeah I haven't either. I think what's helped me the most (both for rendering and algorithms in general) is reading about the general idea and then trying to derive the process myself. I don't worry about the math as much as the intuition and this usually reveals what steps are optional or are some kind of tradeoff (eg optimizing for memory over cpu, etc).

In fact I went through this whole learning process recently while trying to make a DSL + interpreter for defining enemy behavior in my game. Almost forgot how satisfying it feels to rediscover an algorithm and compare notes with existing versions.

comment 6d ago · link · parent

No sorry, I don't remember seeing any all-in-one tutorials. For just the rendering / raytracing / shaders I remember using the OP and the github link below a lot.

https://natethegreat2525.github.io/projects/software_rendere...

comment 6d ago · link · parent

(amateur explanation incoming, should probably double check elsewhere)

I think of it as the world is biggest possible 3d-space. The camera is a 3d volume within the world, often a pyramid called the "frustrum" [0]. The screen is a 2d rectangle generated from the 3d camera frustrum. Loosely speaking, the pyramid is stretched into a rect prism and flattened. Or in other words, only objects inside the camera volume are rendered.

> is x axies increasing towards right, y axis towards top, z axis into the screen ?

When referring to the world, yes a lot of rendering software uses the y-up convention, with x being horizontal and z being into / out of the screen.

https://www.gabrielgambetta.com/computer-graphics-from-scrat...

> are there other alignments for x,y,z?

I think y-up is the most common but sometimes its z-up like in Blender. I'm not super familiar with the history / how older software like directx does it.

> does every object have coordinates defined in the -1 to 1 range?

The world, camera, and screen (and object) all have different coordinate systems.

The camera actually has a bunch of them: view space, clip space, normalized device coordinates (NDC).

View space mostly just applies a translation (and possible rotation if camera is rotated) to the world space coordinates of each object. So the camera (the tip of the frustrum / pyramid) is at origin now, still y-up and z in/out of screen (again assuming no camera rotation).

Clip space maps the view-space pyramid to a new pyramid where the rectangular cross-sections become square and the height of pyramid along z get's warped too. Both the final side-length of the squares and new pyramid height are usually configurable constants. This "handles" the effects of FOV (the slope of pyramid edges) and camera aspect ratio (the aspect ratio of rect cross sections in view space). [1]

NDC maps each square xy cross-section of the clip space pyramid to the same size square and stacks these cross-sections to form a cube. This models perspective (far objects need to be bigger (occupy same % of cross-section) to render at same size as something closer to camera / tip of pyramid). This is also where the coordinates get normalized to [-1,1]. [2]

And then screen space is rendered by flattening the NDC cube (ie draw on screen using xy, use z as order for drawing). There's also stretching involved since NDC is a cube but your screen is probably a rectangle.

> - what is local coordinate system compared to world coordinate system and does it also stick to -1 to 1 range? let us say I have a 3d Cube 5 units think, what does the local coordinate system for this look like and if I wanted to place it at 0,0,0 what do we do? multply local x world space in matrix form?

Hopefully the previous blurb mostly answers this, with model space -> world space being the same as world space -> view space. That is, convert coordinates such that the origin changes from middle of object to the world's origin. And again, model space doesn't require normalizing anything to [-1,1], only NDC asks for that.

--

[0] When modeled by pyramid volume, they're called perspective cameras. When modeled by a rectangular prism, they're called orthographic cameras.

[1] I implied clip space is 3d but there's really a 4th dimension to make the math easy.

[2] Not sure why z has to be normalized to same range (ie why cant result be a rect prism instead of cube) but that's the convention I guess.

comment 1w ago · link · parent

"tapping on a website while forgetting [the side-effects of tapping a] website"

is what he means. The phrasing is a bit of an idiom and isn't meant to be taken literally.

Anyways I kinda like the flippant(?) tone of the OP, wonder if there's a better term to describe this type of writing. Best I can think of is "halfway between image-board speak and casual speech".

comment 1w ago · link · parent

> creatures that crave non-existence that happens after fulfilling their order

The Crystal Society book by Max Harms (2016, so pre llm craze) also had a fun, fairly believable take on this idea. It's told from the perspective of multiple AIs crammed into one android body. They each started out as some "subroutine" (awareness, motor control, language, etc) and sentience was more of a side-effect / means to an end. Which also meant their personalities ended up extremely... obsessive, only valuing things related to their goal.

Anyways back to the suicide topic and this is a fairly major spoiler, so rot13. Gurl riraghnyyl svther bhg ubj gb fcnja zbqvsvrq pybarf gb nffvta gnfxf gb (rfcrpvnyyl gnfxf gung ner haeryngrq gb gurve bevtvany tbny naq gurersber hafhvgrq sbe gurve crefbanyvgl). Ohg gurer'f yvzvgrq cebprffvat cbjre naq gurl pna'g rira gehfg gurve pybarf fb gurl zbqvsl gur pybarf gb penir gur qryrgvba gung pbzrf sebz pbzcyrgvat gurve gnfx (yvxr va n qeht nqqvpg xvaq bs jnl).

But yeah it explores some really unique ideas. I think I stopped at the second book after I found a bit too dramatic / overdose of lesswrong but definitely worth a try imo.

comment 2w ago · link · parent

>Related, the gmail spam filter is terrible.

It seems insane that gmail doesnt provide a way to automatically send a mail (eg based on domain, keywords, etc) to spam. I know theres block sender but for example aliexpress uses a different name for every email so that's useless.

comment 2w ago · link · parent

>Making a simple game

>Want player scripts to be possible (And dogfood it for enemy ai too)

>Behavior tree dep looks too easy, let's make a dsl + interpreter

>Typed builders are annoying (because stateful), lets separate into builders -> untyped ast -> typed ir

>Hm, typed ir is super repetitive, now I have a schema (ts) -> codegen (ts) -> .ts / .rs build step

Fun waste of 2 weeks, not even counting the time spent on pl literature

10.

The Rust borrow checker is annoying, Pt. 2(runa.yshui.dev ↗)

2 points · by Frotag · 1mo ago · discuss

11.

What's Up with Monomorphism? (2015)(mrale.ph ↗)

3 points · by Frotag · 1mo ago · discuss

comment 7mo ago · link · parent

"The Baby-Eating Aliens" also explores hypothetical differences in alien culture. It's also written in the same absurd conversational style.

https://news.ycombinator.com/item?id=469761

comment 7mo ago · link · parent

Conveniently M$ lets you buy a signing certificate to fix this.

https://stackoverflow.com/questions/48946680/how-to-avoid-th...

comment 8mo ago · link · parent

Some utility stuff I copy paste between projects:

  - range, clamp, inIvl, enumerate, topK
  - groupBy (array to record), numeric / lexical array sorts
  - seeded rng
  - throttling
  - attachDragListener (like d3's mousedown -> mousemove -> mouseup)
  - Maps / Sets that accept non-primitive keys (ie custom hash)
So basically functions that every *dash variant includes.

comment 8mo ago · link · parent

Alternatively, dns block the update domains, wait a few months to few years for someone to discover an exploit for rooting, root and sideload.

comment 8mo ago · link · parent

From what I understand, Svelte 4 calculated dependencies at compile time. Whereas Svelte 5 does it automatically at runtime based on which values are accessed in tracking contexts (effect / computed value callbacks). This means objects marked as reactive have to be wrapped in proxies to intercept gets / sets. And plain values have to be transformed to objects at compile time. The deps are also recalculated after every update, so accessing state in conditionals can cause funkiness.

But after working with Svelte 5 daily for a few months, I don't think I like the implicitness. For one, reactivity doesn't show up in type signatures. So I have to remember whats reactive and what's not. Another is that making plain values (string, numbers, etc) reactive is really a trap. The reactivity doesn't cross file boundaries so you have to do weird things like exporting a getter / setter instead of the variable.

comment 8mo ago · link · parent

IME androids dont respect static routes published by the router. I guess self hosting DNS might be more robust but I usually just settle for bookmarking the ip:port

comment 8mo ago · link · parent

> It's full of regurgitated fantasy tropes, the writing and characters seem simple, and there's a forced world building with what feels like an infinite and boring back story, with no movement to justify it.

Maybe it's because he published 7 books that year (2021). Maybe it's also a coincidence that I remember not liking Children of Memory and he published 6 books that year, compared to Children of Time which was 2015 / 2 books.

Also just checked and looks like the fourth book (Children of Strife) is releasing in 2 weeks!

comment 8mo ago · link · parent

There's a subreddit called /r/hfy for more positive scifi. It tends to be indie stuff and I think it goes a little too far in the other direction but at least some of the top-voted ones are interesting.

Off the top of my head...

https://www.royalroad.com/fiction/32973/synchronizing-minds-...

https://www.royalroad.com/fiction/67180/here-be-dragons-book...

comment 8mo ago · link · parent

Funny timing, I was just thinking about this over dinner while scrolling the wiki list on [clarke / seiun / nebula] awards for the thousandth time.

> [Post-sci-fi is] free to allow the science fictional elements of their stories develop slowly, to emerge only in the latter half of the text, or to remain an isolated thread in a larger tapestry, all of which are anathema to genre-machine publishing, which generally wants its spaceships front-and-centre early on, to reassure readers they’re getting what they paid for.

This has always bugged me. There's often an interesting synopsis like (below), but the actual story begins with ~200 pages of backstories. And altogether the actual problem / developments / solution could probably be detailed in a tenth of the page count after subtracting all the character drama.

> "When a signal is discovered that seems to come from far beyond our solar system [...] What follows is an eye-opening journey out to the stars to the most awesome encounter in human history"

But this synopsis is actually from a well known 80s novel [0] so I don't think this slow-burn type of writing has become any more or less common with post scifi. To be clear, I don't have a problem with character-focused stories (I've read a ton!), I just wish they were advertised that way.

At this point I'm finding new / unusual stuff to read by looking for the least liked books whenever recommendations come up. Anyways rant over. On a more positive note, the author's post has put of new names / titles on my reading list. I think my next read will probably be something by Ishiguro:

> [The Buried Giant] follows an elderly Briton couple, Axl and Beatrice, living in a fictional post-Arthurian England in which no-one is able to retain long-term memories. The couple have dim memories of having had a son, and they decide to travel to a neighbouring village to seek him out.

[0] https://en.wikipedia.org/wiki/Contact_(novel)

21.

Relax NG is a schema language for XML (2014)(relaxng.org ↗)

40 points · by Frotag · 8mo ago · 26 comments

comment 8mo ago · link · parent

rclone has a web gui https://rclone.org/gui/

comment 8mo ago · link · parent

> if you enable battery changes, a current gen device can easily last a decade), people will care.

Modern batteries last surprisingly long. I assumed my 5yo pixel 4a was at 50~60% capacity based on feels and the adb batterystats printout estimated the same (with 1600 charge cycles). But when I actually measured the screentime / charging wattage, it was still at 80% capacity. Even confirmed this by replacing the battery and running the same tests.

I think part of the reason the old battery felt worse is that it would read 100% when it was only ~85% full then trickle charge at like 2w for another 90 minutes.

24.

The free media database that anyone can edit(omdb.org ↗)

1 points · by Frotag · 8mo ago · discuss

comment 9mo ago · link · parent

> the informal word-button experiments suggest that non-avian animals like cats and dogs

I always wanted to see long form content on this. Like I'm sure the cherrypicked clips make it look more impressive than reality but I've owned enough pets to believe they can understand more than just individual words / tone.

comment 9mo ago · link · parent

As an outsider, the fact that cross-device stuff just works in apple's ecosystem is probably the biggest thing I'm jealous of. It's crazy that something as simple as screen casting is still hit or miss when it comes to (android / linux) <-> (web os / chromecast / fire stick)

comment 9mo ago · link · parent

I've been meaning to set up some nginx-level oauth. I have some self-hosted apps I want to share with friends / family but forcing them to remember a user / pass (basic auth) or run a vpn is a bit too much friction.

comment 9mo ago · link · parent

Yeah the handful of times I've tried a split keyboard, I dropped it because of this. Like I use a different hand for the 'y' key if I'm typing my (left index) versus yes (right index).
1234567