Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

21,278 karma · joined Nov 23, 2012 (14y ago) · 6,746 submissions

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 2y ago · link · parent

I am confused as to why it's more undiscoverable than, say, some LLM.

> The problem is the space of possible commands is waaaaay bigger than the space of commands you can manually handle, which means if you just randomly try stuff 95% of the time it won't work. Users learn that very quickly and end up sticking to the few commands they know work.

This is not strictly true. Context free grammars can be written to handle (finite) sentences of arbitrary length! if you have a rule like "play me <song>" and then <song> can be "a song that lasts longer than X" or "a song by <artist>" (then you have <artist> be "<some name>" or "some German singer" or whatever....). You can just keep on going.

comment 2y ago · link · parent

One thing that I think diagrams are better at than common text-base PLs is that with diagrams (when the blocks are placed nicely) you can _very quickly_ tell what is going into something (both directly and indirectly).

Of course you can abstract away a bit with functions or intermediate values in programming, but at one point if you do that too much you now have a bunch of indirection that harms overall readability.

All a balance of course, but "what takes part in this calculation" often feels more valuable than "what is the calculation itself".

comment 2y ago · link · parent

It's silly but having the Apple robot or Google robot put stuff into your Apple shopping list or Google shopping list is a pretty good ecosystem play, right? Like how people get kinda locked in with photo sharing and airplay and friends.

Like if both environments feel equivalent but one has a better speaker setup (or inversely if one environment feels better and both have equivalent-feeling speakers) now you're locked in? It's good marketing I guess? Very hand-wave-y

comment 2y ago · link · parent

Is this not actually kind of powerful? Having linguists write up a bunch of rules seems a lot more predictable than "rolling a bunch of dice and hoping that some LLM spits out a coherent set of steps".

It feels very fractal but on the other hand if Alexa has only a specific gamut of responses it's not exactly a limitless state space right?

Very curious about how those rules look like though

comment 2y ago · link · parent

What works for a person works of course, but pulling out my phone and just holding down a button and saying "add onions to shopping list" is very helpful halfway through cooking some stuff in a kitchen.

Of course I could put that on my fridge and have a marker. But it's "I need my list right now and have almost no free hands to do this" in other parts of the house too (toilet paper etc). Meanwhile my phone is always in my pocket.

Maybe time to just keep a pocket pad + pencil in my pocket though...

comment 2y ago · link · parent

I mean they say in the post that you should donate to clients right?

comment 2y ago · link · parent

I mean I'm just saying labeling text files with their encoding at the front would have been nice for decade or two where text readme files would be routinely garbled if you were in Europe or Asia and using machines that weren't configured properly

comment 2y ago · link · parent

> A file should be a single stream of bytes with a name. If you need another stream of bytes, create another file. If you need to group them together, that's what directories are for.

While I understand the appeal of this, the world would have been a lot simpler for a lot of stuff if (for example) every text file had tagged its encoding.

I wonder about if we could have moved forward as society a touch faster if Unix wasn't "all byte streams", and had a touch of metadata.

I feel like HTTP and friends shows we can just organically end up with a certain kind of structure that "works" (and at one point you have a spec, and then you can yell at programs that don't follow the spec)

comment 2y ago · link · parent

There's a bit of a higher abstraction ceiling in Rust so in theory if you are successful rewriting a thing in Rust then you now have a codebase that's easier to change confidently.

This sort of property is nice to have in huge codebases where you really start losing confidence in shipping changes that don't subtly break things. But of course a huge codebase is hard to rewrite in general...

comment 2y ago · link · parent

rr is really cool, but almost every time I have decided to pull it out as one of the "big guns" it turns out that I have a concurrency bug and so rr is unable to reproduce it.

Despite that, it would be very, very, very cool if some languages built rr directly into their tooling. Obviously you can always "just" use rr/gdb, but imagine if rr invocations were as easy to set up and do as pdb is in Python!

comment 2y ago · link · parent

You could probably get far with Wordpress. Why? Because if you're technical you can navigate the tricky setup well, and it's made in a way to support a lot of things for non-technical people.

Of course you gotta get it running (or pay people like WP Engine), but you're going to end up with a thing that will work.

That or dev.to is a good spot I think.

comment 2y ago · link · parent

If your UI needs A and A.B and A.B.C, then you end up with three rest queries. Or you end up with some expansion logic. Meanwhile your REST query will likely also be throwing along for the write A.D, A.E, A.F, and maybe A.G.H because of some auto-expansion.

> Unless you use and optimise for persisted queries which just makes it REST with extra steps.

GraphQL offering a syntax and a way to state exactly what will be used makes it possible to chip away what is sent over the wire in persisted queries. This is not a negligable thing in environments with very wide and deep data models. These are places where their "REST" queries end up with "GraphQL with extra steps" through path inclusion/exclusion logic and expansion logic.

Obviously at the end of the day context matters most, but there's been loads of places and APIs I've used where you could feel REST causing performance issues in an end-to-end way, either by generating N+1 HTTP queries, or just shipping way too much data to show a list of names of resources.

comment 2y ago · link · parent

If anything REST APIs encourage overfetching, because you are almost never getting exactly the set of data you need.

Unbounded queries and extreme overfetching in general are problems that are ... easy-ish to solve when it's totally internal. Just be measuring perf, tag queries you are making to the frontend page you're making them from, and coordinate with frontend people if there's a problem.

Performance doesn't magically improve if you're using REST. And joins don't magically make things slower than "join via HTTP request" either. There might be patterns that are dangerous in GraphQL but honestly I feel like most internal APIs would benefit from easier scoping of fields and the like (rather than everyone re-inventing ad-hoc expansion and filtering)

comment 2y ago · link · parent

I think the public/private distinction here is more in "officially allowed for public use" vs "API your frontend uses but is not documented for public use". Obviously security is still a thing, but having good ergonomics for your frontend devs means your frontend devs can just work forward and backend people can focus on other things instead of going back and forth on perf issues downstream of REST APIs

comment 2y ago · link · parent

Well that's what the reactions are for, right? Because then we have this sort of division between acks (and other reactions really) vs "actual messages". Combine that with specific emojis in certain social/professional circles and you've got yourself an extra layer of nuance in an otherwise tricky-to-navigate space!

comment 2y ago · link · parent

The fact this exists is quite beautiful, and this makes me want to try out Hg on my next project. Thanks for the pointer!

comment 2y ago · link · parent

It's unfortunate because I found that the Surface Pro "expensive" models are gerat, but the lower end really can't handle much of any workflow (dreaded latency spikes) and it leads to loads of people just having a middling impression of a product that theoretically could capture a lot of the high end Windows market IMO

comment 2y ago · link · parent

I appreciate mercurial existing and I think there are lots of good ideas, but I _really really really really_ like the working tree/staging area/index model of git. It works so well for allowing commits to be done cleanly, even when the initial work is likely not done that cleanly.

I don't fully believe this, but I kind of believe that having the staging model is what allows git to be very good at modelling almost anything nicely. New workflows can be easily rolled out because we have this phase separation between committing and simply staging.

And just as a general thing, `git add -p` totally made me a better developer overnight, at least in terms of actually rereading my changes seriously (and fixing them up etc). The model isn't necessary to this kind of workflow but it helps!

comment 2y ago · link · parent

obviously not the point of the article but I really appreciate Unreal's visual programming flow.

I think an underrated idea from visual programming is that futzing around with linear files to try and connect a bunch of stuff together is not that fun in an event-based system. Stuff like Scratch unlock the right idea, that code structure is important at a micro level, but at a macro level it's... kind of busy-work, and it's hard to offer good structure in a way that's discoverable.

My main complaint with Unreal blueprints, though, is that sometimes you really do just want to write a bunch of code in a linear sequence. Give me a little textbox to just pop into within my diagram!

comment 2y ago · link · parent

Reading this post... I think that probably the mini's failures are due to it being so much more than the SE, but people wanting smaller screens are also people "OK" with less tech in the phone as well. SE likely canabalized the mini sales way too much.

The main hope for the future would be the SE getting the 12 mini form factor... but then Apple probably would be worried about it canabalizing bigger phone!

comment 2y ago · link · parent

For people worried about the keyboard typing, I've been very curious about the Titan Pocket as an alternative option. Square screen (fun!), "real" keybaord... the biggest problem seeming to be that the keyboard is intentionally a bit weird in the layout to avoid dealing with Blackberry ...design patents I think https://www.unihertz.com/products/titan-pocket

As a former iPhone 12 mini user (whose spouse is on their second one because the other phones are getting too big)... I don't need the screen to be tiny but I legit wonder what people with smaller hands/pockets/whatever are going to do.

comment 2y ago · link · parent

I would like for more venv sharing, but rye is leaning heavily into correctness, which (in the current Python universe) is much easier to do by recreating the world.

comment 2y ago · link · parent

I've also compiled python from source a good amount, and it usually works... until some thing where I realize some standard lib wasn't compiled because I was missing an optional dependency. But some lib assumes that it was always included cuz the standard distro is.

I think it's easy to compile Python, but it's easy to end up just having to go re-compile it for some random component that was not compiled in the "standard" fashion.

If you have a good test suite this stuff shows up quite loudly though. At one point the core issue is more collaborators wanting to not have to compile things themselves.

(And to "automating away" as a comment... indygreg's releases _are_ this! Someone has done the work for us all)

comment 2y ago · link · parent

Rye has been wonderful for me. Works so nicely and isn't adding too many opinions. Things like poetry tend to really be not amenable to certain workflows, which has likely made many people stick around to `pip -r requirements.txt`.

comment 2y ago · link · parent

Because it's not just this but a bunch of random groups? My local library has events in meeting rooms for ESL speakers to practice English, baby book reading clubs, board game meetups, study sessions, sessions to help people with tech problems, immunisation, and of course .... book clubs.

The rule is simple: you running a non-commercial event? You can use the space for free. Commercial component? Pay an hourly rate that comes out to ~$5 per person or so. There are some restrictions on events based on space but it's an obviously good thing in the same way a public park or water fountains are.

comment 2y ago · link · parent

Not in Tokyo. The meme is that you basically need to pay somebody if you want to sit down and get some peace and quiet for a bit in the afternoon.

comment 2y ago · link · parent

Correctness? I feel like in the world of Javascript and Ruby (and hell, even Julia with some of its really gnarly bugs!), Python is pretty serious about having code do what it's supposed to do. There are surprises downstream, but a hell of a lot than other languages IMO
1
383940
225