Readit News logoReadit News
xixixao commented on Materialized views are obviously useful   sophiebits.com/2025/08/22... · Posted by u/gz09
xixixao · a day ago
Convex's queries[0] are another example, with perhaps a somewhat simpler approach to the tracking and invalidation.

[0] https://stack.convex.dev/how-convex-works

xixixao commented on Geotoy – Shadertoy for 3D Geometry   3d.ameo.design/geotoy... · Posted by u/Ameo
xixixao · 6 days ago
This is awesome. My current hobby project is getting 3D SDF meshing good enough so that I can use them instead of building out of meshes. I’m starting from marching triangles but it’s very much an open problem. Everything in JS, with the goal of building models in JS.
xixixao commented on Claudia – Desktop companion for Claude code   claudiacode.com/... · Posted by u/zerealshadowban
alphazard · 8 days ago
Does this sandbox the agents? All I want is a way to keep the agents from writing to and reading from arbitrary places on the filesystem. I want that enforced using operating system primitives rather than a pinky promise with an LLM.

It already worries me that the Cursor agents occasionally try to perform operations with full absolute paths, which they wouldn't be able to know if they were properly sandboxed to the current directory.

xixixao · 8 days ago
Too bad OSs have such lock-in. Having a macOS with great sandboxing per folder + os capability to avoid the docker hellscape would be awesome. Probably not gonna happen until we can oneshot an OS rewrite :)
xixixao commented on PHP 8.5 adds pipe operator   thephp.foundation/blog/20... · Posted by u/lemper
avaq · 21 days ago
Not only have we been waiting for 10 years, the most likely candidate to go forward is not at all what we wanted when the proposal was created:

We wanted a pipe operator that would pair well with unary functions (like those created by partial function application, which could get its own syntax), but that got rejected on the premise that it would lead to a programming style that utilizes too many closures[0], and which could divide the ecosystem[1].

Yet somehow PHP was not limited by these hypotheticals, and simply gave people the feature they wanted, in exactly the form it makes most sense in.

[0]: https://github.com/tc39/proposal-pipeline-operator/issues/22... [1]: https://github.com/tc39/proposal-pipeline-operator/issues/23...

xixixao · 21 days ago
I guess partially my fault, but even in the article, you can see how the Hack syntax is much nicer to work with than the functional one.

Another angle is “how much rewriting does a change require”, in this case, what if I want to add another argument to the rhs function call. (I obv. don’t consider currying and point-free style a good solution)

xixixao commented on Learning basic electronics by building fireflies   a64.in/posts/learning-bas... · Posted by u/signa11
xixixao · a month ago
How small could you make this? Could you (maybe not with diy tools) make it the size of a firefly?
xixixao commented on Don’t use “click here” as link text (2001)   w3.org/QA/Tips/noClickHer... · Posted by u/theandrewbailey
retsibsi · 2 months ago
Personally, I prefer the second example that they advise against. ("To download Amaya, go to the _Amaya_Website_ and get the necessary software.")

A link that just says "Amaya" could be an internal or external link, and even if it's clear from context that the purpose of following the link is to download Amaya (rather than, for example, read more about it), it's not clear whether it's a direct link to the file or a link to the download page.

xixixao · 2 months ago
I like to include icons to indicate whether the destination is external or a file (file extension could work for files too)
xixixao commented on Error handling in Rust   felix-knorr.net/posts/202... · Posted by u/emschwartz
xixixao · 2 months ago
I find TS philosophy of requiring input types and inferring return types (something I was initially quite sceptical about when Flow was adopting it) quite nice to work with in practice - the same could be applied to strict typing of errors ala Effect.js?

This does add the “complexity” of there being places (crate boundaries in Rust) where you want types explicitly defined (so to infer types in one crate doesn’t require typechecking all its dependencies). TS can generate these types, and really ought to be able to check invariants on them like “no implicit any”.

Rust of course has difference constraints and hails more from Haskell’s heritage where the declared return types can impact runtime behavior instead. I find this makes Rust code harder to read unfortunately, and would avoid it if I could in Rust (it’s hard given the ecosystem and stdlib).

xixixao · 2 months ago
This already does work in TS, and there are some patterns besides Effect that simplify working with the return values.

Which brings me to my other big gripe with Rust (and Go): the need to declare structs makes it really unwieldy to return many values (resorting to tuples, which make code more error prone and again harder to read).

xixixao commented on Error handling in Rust   felix-knorr.net/posts/202... · Posted by u/emschwartz
xixixao · 2 months ago
I find TS philosophy of requiring input types and inferring return types (something I was initially quite sceptical about when Flow was adopting it) quite nice to work with in practice - the same could be applied to strict typing of errors ala Effect.js?

This does add the “complexity” of there being places (crate boundaries in Rust) where you want types explicitly defined (so to infer types in one crate doesn’t require typechecking all its dependencies). TS can generate these types, and really ought to be able to check invariants on them like “no implicit any”.

Rust of course has difference constraints and hails more from Haskell’s heritage where the declared return types can impact runtime behavior instead. I find this makes Rust code harder to read unfortunately, and would avoid it if I could in Rust (it’s hard given the ecosystem and stdlib).

xixixao commented on JavaScript Trademark Update   deno.com/blog/deno-v-orac... · Posted by u/thebeardisred
Hendrikto · 2 months ago
Postgres, for example, or MySQL.
xixixao · 2 months ago
Our use cases are primarily analytical. We already use Postgres for other workloads.
xixixao commented on JavaScript Trademark Update   deno.com/blog/deno-v-orac... · Posted by u/thebeardisred
heybales · 2 months ago
This is so true. And in my experience Oracle's main business seems to be getting companies to sign complicated contracts, waiting a year or two, and then suing them for some infraction so that they can extort another contract from them. I haven't met an Oracle product yet that can't be done better by either free software or a less litigious company.
xixixao · 2 months ago
We moved from mssql on Azure to Oracle. What should do instead, if Azure is a hard constraint?

u/xixixao

KarmaCake day1640March 1, 2013View Original