HNHacker News
TopNewBestAskShowJobs

pdhborges

317 karma · joined November 11, 2010

submissionscomments
pdhborges··on Event Sourcing in Go: From Zero to Production
I would upvote this comment more if I could.

I already refrained from introducing event sourcing to tackle wierd dependecies multiple time just by justaposing the amount of discipline that the team has that lead to the current state vs the discipline that is required to keep the event source solution going.

pdhborges··on Why we migrated from Python to Node.js
I don't agree with this cache take. Adding operations to the cache is easy. Taking the django-redis project as an example there are only two levels until you reach redis-py: The cache abstraction and the client abstraction.
pdhborges··on Why we migrated from Python to Node.js
The problem with channels is that if you need to touch the ORM you will have to use a sync_to_async call which will block the event loop.
pdhborges··on Why we migrated from Python to Node.js
Why don't you post the original broken Python code.
pdhborges··on Why we migrated from Python to Node.js
Might as well just implement virtual threads: https://discuss.python.org/t/add-virtual-threads-to-python/9...
pdhborges··on The future of Python web services looks GIL-free
What did you try to debug this?
pdhborges··on Why is everything so scalable?
Scale articles are too focused on architecture. What about business problems that come with scale. At a certain scale rare events are common many cases cease to be fixable by some random process that involves humans you have to handle a lot more business scenarios with your code.
pdhborges··on Use One Big Server (2022)
AWS can make major version upgrades automatically now with less downtime. I think they do the logical replication dance internally.
pdhborges··on Andrew Ng says bottleneck in AI startups isn't coding – it's product management
In my experience PMs often work at a very high level. How things shold work are defined in a incosistent way when we take into account all the user flows, subtelness and restrictions of other systems. So programmers end up doing a significant chunk of the work by refining the specs so that the thing actually makes sense.
pdhborges··on Building AI products in the probabilistic era
I will believe this theory if someone shows me that the ratio of scientists to engineers of leading teams of the leading companies deploying AI products is bigger than 1.
pdhborges··on Basic dependency injection in OCaml with objects
The author keeps aluding to the problem of loss of type inference without giving any example. I have no idea if the problem is relevant or not.
pdhborges··on Apple's new Processor Trace instrument is incredible
>> ARM has supported such capability via the standard CoreSight Program Trace Macrocell (PTM)[3]/Embedded Trace Macrocell (ETM)[4] since at least 2000.

Where are the performace tools that wrap those capabilities? IPT has Magic Trace what is the equivalent tool for ARM?

pdhborges··on IQ tests results for AI
If the AI is so smart why are we feeding so many dumb humans?
pdhborges··on Keep Pydantic out of your Domain Layer
Are you refering to DRF model serializers? For medium to big applications I think they are worthless.
pdhborges··on How I build software quickly
It's not FUD. For all the trouble you claim to have with Postgres I experienced 0 of it in the last 4 years. The only thing extra for a simple setup is a couple of lines in your docker compose files which is completely amortised because you already have a multi process architecture with Python anyway (proxy + webserver + web server works). The upfront cost is so small that for me the expected total cost will rarely make sense even if you assume that your application has 1% of chance of scaling beyond what you can do with sqlite.
pdhborges··on AI capex is so big that it's affecting economic statistics
Where is that improvement coming from? Hardware is already here to compute gemm as fast as possible.
pdhborges··on How I build software quickly
What do you save by going with sqlite vs how much pain are you going to endure in the future?
pdhborges··on A list is a monad
This is a cool example but I think it is missing the perspective of what the interface can abstract. For example if I program a data structure to provide an Iterator I get to use these itertool functions for free no matter how complex the data structure is underneath.

The trouble I have with Monads is that what get for free doesn't seem very exciting. Feels like I'm stuck in the world of a particular monad like State or Promises and then to do anything remotly usefull you have to bring ll of this monad tranformer machinery to switch worlds again.

pdhborges··on A list is a monad
If all monad instances work differently what is the value of the Monad interface? What kind of usefull generic code can one write against the Monad interface.

Related: https://buttondown.com/j2kun/archive/weak-and-strong-algebra...

pdhborges··on Ovld – Efficient and featureful multiple dispatch for Python
Java supports it? Are you conflating method overload (which is statically determined) with multimethods?
pdhborges··on The world could run on older hardware if software optimization was a priority
Small Python backend deployment 30 machines 1 DB.
pdhborges··on The world could run on older hardware if software optimization was a priority
I'm looking at our Datadog stats right now. It is 64% cpu 36% IO.
pdhborges··on Are people bad at their jobs or are the jobs just bad?
Doesn't this depend on the number of servers, crash rates and recovery times? I wouldn't feel confident running 3 servers running at 80% capacity in ultra low latency scenarios. A single crash would overwhelm the other 2 servers in no time.
pdhborges··on Quadlet: Running Podman containers under systemd
This is using docker-compose. The old deprecated python standalone tool. Doctor compose v2 is a plug-in written in go for the docker cli.

Edit: looks like Docker release docker-compose v2 as a go standalone tool (https://docs.docker.com/compose/install/standalone/). I stand corrected.

pdhborges··on Math Academy, part 1: My eigenvector embarassment
MVC has depencies on LinAlg. Ex Jacobians.
pdhborges··on The Mythical IO-Bound Rails App
Very nice discussion. A lot of times I see people assuming that Web Apps are IO bound anyway to justify technical decisions. Nevertheless here am I looking at our stats: 60% is python, 40% is IO and Postgres is getting faster than Python at a faster pace.
pdhborges··on Google is making AI in Gmail and Docs free, but raising the price of Workspace
I get socks for Christmas and I like it.
pdhborges··on Distributed Transactions at Scale in Amazon DynamoDB (2023)
Well my experience has always been the opposite. New query patterns are always appearing. The difference between an OLTP and an OLAP query is not as clear cut as one might imagine that justifies huge changes to an existing system.
pdhborges··on The day I taught AI to read code like a Senior Developer
I don't read all the lines of code but I open and scan a ton of files from the code base to get a feel of which concepts abstractions and tricks are used.
pdhborges··on Databases in 2024: A Year in Review

  In Python you don't even need a lib, dict is thread safe even in nogil.
Is it? https://google.github.io/styleguide/pyguide.html#218-threadi...
← PreviousPage 3 of 6Next →