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 3y ago · link · parent

Well if some dependencies are uninstall able on certain platforms another packaging technique won’t magically solve that!

I too would like it for things to just magically be good (I think pyinstaller seems kinda close but I dislike how it works based on scanning your code. PyOxidizer is another), but was just mentioning that pip is an alright distribution tool for a part of the population (one that uses Python)

comment 3y ago · link · parent

Do you actually use Python? No offense but most of what you’ve typed here makes no sense.

comment 3y ago · link · parent

There are packaging tools for Python, and if your tooling is targetting people already using Python, just relying on `pip` + writing a proper pyproject.toml is a good solution nowadays (protip for people with virtualenv issues: direnv solves so much of this it's not funny).

But I have been looking around for a while for something that's more certain than `pip`, and unfortunately everything I've found (like Bazel or Buck) suffers from having to do a lot of futzing to use dependencies.

comment 3y ago · link · parent

It's kinda frustrating how by default, most major OS setups now are "open PDFs inside the browser". It's kinda nice that browsers can handle PDFs smooth-ish now, but Preview on Mac is nice, and SumatraPDF is as well.

comment 3y ago · link · parent

I dunno, as a kid if there was a $40 or a $80 thing, I would get the $40 one (both would involve negotiating with parents anyways, and there's an obvious big gap here).

$40 is a lot of money for teens without income (which is the case for most teenagers across the world outside of the US). Most kids get money maybe once or twice a year and have to spread it out, and then negotiate for other hobby-based purchases when they can. There's a reason forums are filled with people discussing how to maintain sub-$100 Thinkpads!

comment 3y ago · link · parent

Sorry, I'm being too handwave-y, what I meant (and what i assumed parent meant) is simply that those single bytecode operations are safe thanks to the GIL, so your dictionary or list isn't going to become corrupted because of simultaneous writes.

like l=[], then l.append(1) and l.append(2) running concurrently will not end up in some weird scenario where the length of the list is 1 yet you stored two items... anyways, I agree with the comment you posted higher up in the discussion, and that was my understanding.

comment 3y ago · link · parent

You’re right that the GIL prevents bugs on clobbering exactly the same part of memory in Python. But in the GIL world, a C extensions method that doesn’t release the GIL and doesn’t call into Python has an extra guarantee that it won’t be interrupted at all. This means that in GIL-land, a C extension can have implicit critical sections that stop being so in noGIL land.

comment 3y ago · link · parent

Ive found in practice that memory sharing doesn’t work as much as one would want, and multiple processes cost hundreds of megs (annoying!)

comment 3y ago · link · parent

To put a finer point on this, I’ve had the misunderstanding in the past that the GIL made Python like JavaScript in some sense (only releasing the GIL on some explicit parts of code like sleep). But really Python threads can switch in the “middle” of your code. The reason the GIL is annoying is mostly performance related for Python code itself.

My understanding is the GIL does not protect against Python-side bugs, and bugs from GIL removal would only be introduced from C extensions.

comment 3y ago · link · parent

I think it's OK to expect "normal people" to do that, but I've been trying to embrace my OS's feature sets (stuff like desktop shortcuts) to configure my computer how I want it to.

There can be some digging involved, but if you get things set up then you can have your cake and eat it too (most of the time at least)

comment 3y ago · link · parent

It's definitely subjective! I think the `?` stuff in itself is pretty straightforward for a DSL-like behavior. The futzing from when you're mixing actions from multiple codebases is unfun.

comment 3y ago · link · parent

I get why it's like this but I have often found that most of the time code ends up bailing by using a conversion into `String` quite quickly, leading to everything being stringified anyways.

I get why this is, but it does make me miss the Python Exception model of "there's ~15 base exception types. One of them is probably good enough for you". One could point out that the arguments are usually "just" strings there too, but at least there's some conventions.

I understand Rust's philosophy, I just find it annoying.

comment 3y ago · link · parent

The question-mark shorthand (?) basically does what the blog post is describing, and makes a lot of this stuff straightforward.

There _is_ some futzing that sometimes have to happen due to various operations' Result types using incompatible Error types. That's just a thing that has to be dealt with.

comment 3y ago · link · parent

A lot of places you just report things. But there might be at most 10 categories of things. A hell of a lot less random tax credit systems involved.

I think it's understated how much of the tax mess in the US is also linked to "policy through tax credit and deductibles".

comment 3y ago · link · parent

Sorry, I wasn’t clear here. I’m not talking about limiting the number of entries, but about limiting the amount of data pulled per entry. Just like how a query planner in an RDBMS ends up only pulling relevant columns from disk.

comment 3y ago · link · parent

One thing that's cool with Nushell is being able to wrap wrappers around existing commandline tools to get structured output (so a wrapper around `git branch` could give me structured data).

What I kind of want to go along with this is a (for the lack of a better word) query planner. Let me query structured data, but only pull in stuff as I need it, lazily. That way my structured data can be very detailed, but I only end up pulling the data I need on each iteration. That avoids pulling _everything_ from disk in structured wrappers.

There's probably a nice middle ground here but it's the one thing that's holding me back from writing a _lot_ of very detailed wrapper code for Nushell and the like.

comment 3y ago · link · parent

There are definitely easier and harder ways to handle pricing, but especially when you have higher touch sales “just use Stripe” stops working in a lot of cases.

Ultimately bespoke sales deals show up, and you need to be diligent in your tooling and pricing design to make it work well (especially if you have any form of metering or dynamic pricing you want to take effect “immediately”)

It’s easy to have the handful of price points and fixed billing. But there’s a lot of ways for things to get more complicated.

comment 3y ago · link · parent

In that case, there's an interesting idea: trying to push things over the tipping point.

It doesn't last forever, but nothing does! Instead there's an exciting idea in place: instead of committing your entire life to trying and getting "one thing" to be as big as possible, you can kickstart many things! As someone who likes a bit of variety in my life, that sounds way more exciting to me.

comment 3y ago · link · parent

When I'm in the mood for new stuff, sometimes I just open up bandcamp and click around, buying "random" albums if there's a song or two whose previews sound good. I have a radio on my desk that I listen to at times (thank you Shazam). And I have a couple of internet radio streams I listen to.

I also sometimes just stare at CDs at a local used store and stand there in the aisle previewing the music online.

Another thing: I'm in a handful of Discords with #music channels. I like some people's tastes, so when they post a thing I usually listen in.

But people with non-streaming collections can still go onto Youtube or the like to listen to a song!

comment 3y ago · link · parent

Of course we have signing in general, but my understanding was that inserting the PIN was introduced after the terrorism case so that Apple could not be compelled to hack someone’s phone ever again. Requiring user input for this sort of installation has seemed to be a core part of their security posture.

Of course, having phones be updated before users use them is also super important. So maybe what’s going on here is something that only works when a phone hasn’t been associated to a user yet.

comment 3y ago · link · parent

This sort of stuff (and a lot of other popular things) highlights something that I've felt for years: we are still so far away from a good ops story as an industry.

Why would someone use this? Because they only want to deal with "one thing" in production. Dealing with multiple stacks is annoying. People show stuff like kubernetes as a way to handle multiple stacks. That stuff is also complicated.

There is still a huge opportunity for a methodology (accessible to non-operators) to get systems in production easily, where we wouldn't feel the need to force it all into these kinds of models.

Having said all of that, this is pretty fun looking!

comment 3y ago · link · parent

> I can use Fry's face in a parody film or critisism of him as a person.

This might feel like nitpicking but given the topic... there are places where there is no notion of 'fair use' like this. There are a whole variety of answers to the question of how much of your identity is yours (and how much is even separable from yourself). One shouldn't take whatever IP regime you're familiar with as the only possible truth, cuz there’s a world of possibilities

comment 3y ago · link · parent

Aren’t all successful CRMs basically around customization? Like SFDC is functionally a distributed Smalltalk OS

comment 3y ago · link · parent

> The only way this would constitute a "blocker" is if they actively prevented every one else from using the same connector due to patents etc..

I'm pretty sure that was the case up until recently, hence the whole hubub

comment 3y ago · link · parent

"Let's have a universal connector"

"The biggest EV manufacturer does not want to change their connector"

"OK so let's use theirs"

"..."

This is why we talk about blockers

1
495051
225