444 karma · joined Mar 31, 2022 (4y ago) · 193 submissions
comment 4d ago · link · parent
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
[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...
comment 6d ago · link · parent
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
https://natethegreat2525.github.io/projects/software_rendere...
comment 6d ago · link · parent
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
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
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
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
>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
https://stackoverflow.com/questions/48946680/how-to-avoid-th...
comment 8mo ago · link · parent
- 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
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
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
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
> [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.
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
comment 8mo ago · link · parent
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
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