Hacker Newsnew | past | comments | ask | show | jobs | submit | more BiteCode_dev's commentslogin

pyrsistent is super slow, though. Just ran a quick benchmark:

  - Creation - 8-12x slower  
  - Lookup - 22-27x slower  
  - Contains check - 30-34x slower  
  - Iteration - 5-14x slower  
  - Merge - 32-158x slower  
 
Except at 10k+ items, batchup dates on 100K+ items or inserting 100 keys.

This is rarely the case in practice, most dictionaries and dict operations are small, if you have a huge dict, you probably should be chunking your load or delegating that to infra.

Not to mention pyrsistent's API is incompatible with dicts, so you can't pass it to external code without conversion.

You'd better have an incredible ROI to justify that.


> pyrsistent is super slow, though

Since when is Python about speed?

> Just ran a quick benchmark

Where's the code? Have you observed the bottleneck call?

> Except at 10k+ items, batchup dates on 100K+ items or inserting 100 keys.

> This is rarely the case in practice

Where's the stats on the actual practice?

> You'd better have an incredible ROI to justify that.

The ROI being: fearless API design where 1) multiple instances of high level components are truly independent and could easily parallelize, 2) calling sites know that they keep the original data intact and that callees behave within the immutability constraints, 3) default func inputs and global scope objects are immutable without having to implement another PEP, 4) collections are hashable in general.


Clearly the ROI is perfect for you.

I won't waste more of your time.


It's perfect for most Python developers actually, not just for myself, contrary to your "in practice" claim.


Ordering is very useful for testing.

This morning for example, I tested an object serialized through a JSON API. My test data seems to never match the next run.

After a while, I realized one of the objects was using a set of objects, which in the API was turned into a JSON array, but the order of said array would change depending of the initial Python VM state.

3 days ago, I used itertools.group by to group a bunch of things. But itertools.group by only works on iterable that are sorted by the grouping key.

Now granted, none of those recent example are related to dicts, but dict is not a special case. And it's iterated over regularly.


Also, this is why we still gravitate toward FOSS communities. It's the last vestige of a dying era. A circle where people like that have a chance to hang up together and keep the warm feeling of being human.


FOSS is a bit like blogging in that a lot of it seems to be motivated by a desire to win an argument you lost once already.

I’m a maintainer on one library in small part because of an argument I had with a maintainer of a similar library years ago. And nearly a maintainer on another one. I voted with my feet and made improvements to DX an/or performance because I can’t pull down a wrongheaded project but I can pull up a better one.

(Incidentally I looked at his issue log the other day and it’s 95% an enumeration of the feature list of the one I’m helping out on. Ha!)


I've never thought about it this way but now that you mention it both blogging and FOSS once stripped of substance seem like L'esprit de l'escalier externalized.

Do I go soul searching now or start a blog?


Never put it this way before, but it's exactly why I started blogging. I was fed up with how bad Python content was online.


Anybody using it for something serious ? I can't see a use case beyond I need a quick script running that is not worth setting up a vps.


So close to understand the concept of taxes.


I think a lesson in smuggling will sink in before a lesson on tax bureaucracy does. If the $50m worth smuggled through Canada would have been an easy $12.5m for the US government.


- C takes a lot more context than a high-level language

- a lot of C code out there is not safe, so the LLM outputs that

- C encodes way less of the programmer's intention, and way more implementation details. So unless the author is extremely good at naming, encapsulating and commenting, the LLM just has less to work with. Not every C code is Sqlite/redis/ffmeg quality.

- the feedback loop is slower, so the LLM has less chance to brute force a decent answer

- there is no npm/pypi equivalent for C on which to train the LLM so the pool for training is less diverse

- the training pool is vastly Linux-oriented, with the linux kernel and distro system libs being very prominent in the training data because C programs on Windows are often proprietary. But most vibe coders are not on Linux, nor into system programming.

Sure, you can vibe code in C. Antirez famously states he gets superb ROI out of it.

But it's likely you'll get even better results with other languages.


Microsoft has this problem with most of its products.

It's not just AI, it's a market fit and quality problem.

They don't need to solve it, however.

Their strategy has been quite clear: make it barely usable so that is passes muster to auditors, integrate it with systems that corporations need, and sell them on the integrations.

Teams and Azure suck?

So what?

Big companies will pay for that, because it's integrated with their ldap, has an audit trail, gives them the ISO-whatever stamp, and lets them worry about something else.

That the users are miserable is almost never the question for the ones signing the checks.

In a world where box-checking is paramount, this approach is a winning strategy.


Tell claude to put the screenshot as an centered image with the body having the starry background on repeat. Then define the links as boxes over each icons with an old little tech trick called an image map.

Common at the time before flash took over.


Ah, HN Has eaten the 80 part of the title.


Levels of indirection matter.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: