Better HN
topnewbestaskshowjobs
Log inSign up

rtpg

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

real name: Raphael

blog: https://rtpg.co

email: raphael at above domain

Submissions

comment 1y ago · link · parent

> 20 years ago engineers scoffed at the idea of deploying code into a dozen regions (If you didn’t have a massive datacenter footprint) but now startups do it casually like it’s no big deal.

Are there many startups actually taking real advantage of edge computing? Smaller B2B places don't really need it, larger ones can just spin up per-region clusters.... and then for 2C stuff you're mainly looking at static asset stuff which is just CDNs?

Who's out there using edge computing to good effect?

comment 1y ago · link · parent

I dunno, I spent a lot of years (in high school at least) using Linux but being pretty overwhelmed by using something like vim (and having nobody around to point me to nano).

EDIT.COM, on the other hand... nice and straightforward in my book

comment 1y ago · link · parent

Yeah I didn't really challenge my friend on this that much so it could have been that they couldn't find the thing they wanted.

his thing was mostly "pharmacies don't have _anything_" which just feels like a pretty spurious claim.

comment 1y ago · link · parent

Ok but my friend lives in Seattle and like every walgreens reported having it in stock on their website. Maybe some of them are wrong but I don’t believe it.

comment 1y ago · link · parent

I was having a conversation earlier today with an acquaitance who bought rubbing alcohol off of Amazon because according to him none of the pharmacies in his city have it.

He lives in Seattle.

It really feels like people's behaviors have been permanently changed for the worst, even if a "proper" competitor comes in.

I no longer have prime shipping, and seeing "shipping: $5" next to anything on Amazon definitely helps me to do at least cursory searches in local stores... would probably be a net benefit to society to outlaw Prime

comment 1y ago · link · parent

A user send a request, and gets a response you don't grasp. In Darklang-like envs that request data is held onto for a bit, you can replay it and tweak things. And you don't have to think about environment differences because you're working _in production_.

You could be taking webhook values from some external service that starts passing in unknown values. That service's documentation might just be outright wrong about its behavior. But you don't have to play post-mortem forensics, as you can hold onto information.

This can be valuable for one-offs where you don't mind breakage, with relatively low request coutns and "time to fix" is what you're optimizing rather than general uptime/downtime. So some silly discord bot could work off of this, but you probably don't want your B2B SaaS being in cowboy mode.

Sometimes you want a thing that just does something and you don't care about how busted it is, but you want it to be _very easy_ to fix up issues you do care about.

comment 1y ago · link · parent

The theory is that because Dark offers a nice interactive environment when you have a request come in you can inspect the data, "fix up" your code, rerun it quite smoothly. Completely removing the deploy question. Really good for glue projects IMO. Think stuff like google scripts (though google scripts are much more miserable to ues)

Many moons ago I had tried to play with Dark and unfortunately the surrounding language stuff really didn't work out for me though. I really liked the concept but ultimately I think I would have preferred if they had just built out the environment on some other language.

Even just lua would work decently well for their use cases, if paired with a good "standard" library.

The UI was fun to use, in any case.

EDIT: to be clear I'm a bit of a type weenie but for the stuff Dark could be good with you really sometimes just want to look at the JSON and poke at it, and your type systems aren't going to be helping you _that much_

comment 1y ago · link · parent

Appreciate the extra context there!

The workflow link is v interesting. I will repeat my big ask: I want to see people recording themselves using the system! For visual systems often it's in movement that I realize how people actually take advantage of all the tiny components

comment 1y ago · link · parent

The "modifiable image" model to me poses a huge problem of just not knowing what has changed and what is going on. I believe that things like Pharoh integrate into version control, but just on a fundamental level being able to throw away everything and go back to some notion of a clean state is very helpful when working on a mutable system.

Distributed version control and CI makes it way more tractable to work on even a small team IMO.

I would be very curious to see someone stream a "real" workflow using something like Pharoh or other smalltalk-like envs though. There's a bunch of short clips showing "beginner" demos but for such a visual system I would expect there to be more detailed presentations of the actual workflow.

comment 1y ago · link · parent

I don't get this. You speculative spend 1 million dollars on a new thing. It fails. In one universe you get to deduct 1M from your profit in year 1. In another you get to deduct 1M from your profit, but over 5 years.

I understand the pain for small companies and it's a strain on cash flow, but for larger companies with "real" revenue streams and profitability is this that much worse?

The cynical thing might be that this helps out big corps by preventing smaller corps from spending their way to success.

comment 1y ago · link · parent

This is going to sound silly but you paid 800k in profits, but now have 4 years of banked costs you can use to _reduce_ your profit margin.

So you pay taxes on 800k profits, but then each subsequent year you reduce you profit by 200k, even though you don't have 200k leaving the door.

If 1M eng salaries was your stable state, then after several years you're... going to have 1M in costs to subtract from your profit! The stable state is the same!

I'm not going to argue about the capex change being "good", I do think it's worth highlighting that for large enough companies you're now looking at a different flavor of tax flow. Amortizing your costs over 5-10 years is something people like doing for other costs after all.

comment 1y ago · link · parent

I don't have a huge dog in this fight apart from AI advocates being annoying... but I would say that for greenfield projects the interesting thing is that I can get a skeleton of a working iOS app for something simple in like an hour of some copy/pasting stuff from ChatGPT. Instead of spending a good amount of time trying to get through learning material to do it.

It's nice to build throwaway things _so fast_, especially in the sort of fuzzy stuff like frontend where it's fine for it to be completely wrong. And then I can just use my own sense of how computers work to fix up what I care about, delete a bunch of what I don't care about... It's pretty amazing.

For existing projects I have only witnessed garbage output. I know people have success. I haven't seen it.

I have witnessed PMs taking a bullet pointed list of requirements and then use ChatGPT to generate paragraphs of text for some reason. You had the list!

comment 1y ago · link · parent

In most domains you're always going to have the possibility of a gap.

The real thing though, is that if you have a verified formal model and a buggy implementation, then _you know_ your problem is at that model <-> implementation level.

Could be the implementation is wrong. Could be that the "bug" is in fact not a bug according to your model. But your model isn't "wrong". If your model says that A happens in condition B, then that is what should happen!

You can avoid second guessing a lot of design patterns with models, and focus on this transitional layer.

If someone came up to you and said "I built a calculator and with this calculator 1/0 becomes 0" you don't say "oh... maybe my model of division is wrong". You think the calculator is wrong in one way or another.

Maybe the calculator's universe is consistent in some way but in that case its model is likely not the same model of division you're thinking of. This eliminates entire classes of doubt.

comment 1y ago · link · parent

A stack of symbol tables is more machinery. It might also be hard to prove that the stack of symbol tables strategy is actually correct!

A big part of the value in the lambda calculus is in its aggressive simplicity meaning that you can do a bunch of theoretical work with relatively few concepts.

The less concepts and moving parts, the less proving necessary. And then you can layer on things and prove that they can also fit into your calculus.

I think most LC work _isn't_ about implementing something based on LC so much as providing theoretical foundations for your work being sound. And in that model you are likely going to focus on theoretical ease.

comment 1y ago · link · parent

there's already an address alias system that things like Mercari (think Japanese eBay) has.

You buy something from somebody, they get a QR code and use that to get a delivery label. Delivery label doesn't have your address on it, only the delivery company knows where it's going.

Obviously it doesn't prevent something like "there's an airtag in the box" but it does prevent you having to tell the person selling you a used copy of Resident Evil 5 where you live.

comment 1y ago · link · parent

It's possible to write a Django typecheck shim using descriptors. There's some annoying stuff on the edges though, and for example if you are changing up fields in `__init__` then those aren't going to show up in your types.

Ultimately you can get typing for the usual cases, but it won't be complete because you can outright change the shape of your models in Django at runtime (actions that aren't type safe of course)

comment 1y ago · link · parent

In code where you really want to have these guarantees you turn on errors lke "no implicit any" in mypy and tighten the restrictions on the files you care about.

You still have the "garbage in/garbage out" problem on the boundaries but at the very least you can improve confidence. And if you're hardcore... turn that on all over, turn off explicit Any, write wrappers around all of your untyped dependencies etc etc. You can get what you want, just might be a lot of work

comment 1y ago · link · parent

I don't understand this point at all. I've worked on Django codebases which have a huge set of typing problems... and while it's not 100% I get a lot of value out of type checking.

You annotate enough functions and you get a really good linter out of it!

comment 1y ago · link · parent

You could have a `list[int | str]` but then you need to check the type of the elements in the list on usage to see if they are `int` or `str` (if you are actually trying to put the elements into a place that requires an `int` or requires a `str` but wouldn't accept an `int | str`...).

If your code doesn't do that then your program isn't well typed according to Python's typing semantics... I think.

So you can have lists of multiple types, but then you get consequences from that in needing type guards.

Of course you still have stuff like `tuple[int, int, int, str]` to get more of the way there. Maybe one day we'll get `FixedList[int, int, int, str]`....

740.

Cheerleading(notes.eatonphil.com ↗)

3 points · by rtpg · 1y ago · discuss

comment 1y ago · link · parent

My understanding is that with desalination you now have the problem of all the brine (on top of needing a good amount of consumable material to do the desalination when looking at existing products).

Seems to me that if you have a device that requires no extra material consumable input that's pretty interesting? Plenty of places with access to electricity that could benefit from the lack of other material input in theory.

comment 1y ago · link · parent

Is there some sort of conservation of energy question in this form of water collection that establishes some minimum amount of energy that would be required to collect 1L of water from the air?

I'd assume if the amount of energy required to collect the water is low then we're looking at something interesting.

comment 1y ago · link · parent

Recently read "Lights Out", which was a fun book covering the past couple decades in good amount of details. Basically a hit piece on one of the CEOs, but hey if you're flying around with a "backup" private jet you probably deserve a couple hit pieces.

comment 1y ago · link · parent

yeah I got that you get the AST.... I suppose you get the macro capabilities "for free" as well so in a lot of cases the actual code you're looking to transform might be quite simple?

I was mostly worried if the underlying CL is so dynamic that it would be hard to compile things down cleanly but I'm probably overthinking it.

This reminds me a bit of Emscripten's problem though. Emscripten does "machine code" (I believe LLVM IR) to Javascript translation and in order to get good performance it has to try really hard to rediscover things like switch statements and for loops in the IR, since using those in the JS will lead to good perf.

Anyways, I suppose that the core Lisp semantics are going to be so small that it all works out quite well.

comment 1y ago · link · parent

> Tooth's processors didn't have nearly enough RAM to run Lisp directly [1] so instead we used a custom-designed compiler written in Lisp to generate 6811 code.

Was thinking about this point in the 2002 article.

As a Python user, I could imagine a lot of pain going into "try and compile my Python code" (notably downstream from hashing and operator overloading meaning that I might have to end up shipping the entire Python object model into my binary). But perhaps Common Lisp avoids a lot of that mess by being "just" functions?

comment 1y ago · link · parent

you mention compiling down Lisp code. Did that come with many restrictions in the end result for how you were coding systems? Or would you basically write lisp "as-is" and get decent results?

comment 1y ago · link · parent

Plenty of PC98 games out there that are just pure smut and assault fantasies.

You could make an argument about the production environments of "actual real person" pornography but if you're talking about aesthetics and morality of the end product? I dunno... tough sell to me for a "random" one.

Plenty of "real art" PC98 stuff too ofc (there are also of course people on the record saying "we put stuff in here so we could sell our RPG" and the like... market demands).

comment 1y ago · link · parent

Catan, like Monopoly (or I guess Cricket and Baseball) has am awkward interminable nature to it, especially at high player counts

Long trading discussions are one component of this. The pure randomness of dice meaning that the internal economy can be all messed up for a while also plays into this

There are games with more consistent runtimes that also don’t get bogged down by people with a high chatter:play ratio.

I like hanging out with people to play games but Catan is in that category of game where just one overly annoying person can just make a session totally suck.

I’d rather play something like Carcassonne or some other modern games that involve competition and territorial management like El Grande where I at least have an idea of how long it’ll take.

comment 1y ago · link · parent

I think so much about how Catan showed up, got really popular, and then more or less right after that two of its huge characteristics (open trading + dice rolls as the primary decider of things) have almost completely disappeared from modern game design.

There's still dice rolls in some games of course, but open trading in particular feels like something that people really don't want in games anymore. And I totally get why

1
242526
225