HNHacker News
TopNewBestAskShowJobs

BiteCode_dev

24,628 karma · joined October 21, 2019

I write to save you time and effort when dealing with Python:

https://www.bitecode.dev/

Email: contact at bitecode.dev

submissionscomments
BiteCode_dev··on A Bugatti car, a first lady and the fake stories aimed at Americans
You can be critics of both Russia and America.

We have cancer and you want to ignore it because we also have diabetes, that's a weird stance.

As a member of the EU, it's only logical to be more worried about Russia crossing the Ukraine border than American propaganda.

The risk the US lose their head and decide to attack the EU is nil.

The risk Russia decides that they want to restore the USRR if the Ukraine invasion is a success is plausible.

Is it going to happen? We don't know.

But we don't want to find out.

BiteCode_dev··on Mako – fast, production-grade web bundler based on Rust
Exported in WASM to play directly in the browser, including Horn of the Abyss.

I would pay for this.

You'd probably have to redo the art though, since 3DO will unlikely do this port and I doubt they would licence the IP.

BiteCode_dev··on Getting the World Record in Hatetris (2022)
Underrated book IMO.

I enjoyed it more than the 3 body problem: the characters are better written, their motivations make more sense despite having much less time for actually developing them.

I was really having fun trying to figure out how to make the best of an impossible to solve situation. And the SCP lore is wonderful.

BiteCode_dev··on A buried ancient Egyptian port reveals connections between distant civilizations
More than that, it takes a very sophisticated and well-integrated society to no only make it possible, but affordable and profitable.

With the tech and scales of the times, it's mind-blowing and a testament to how badass humanity already was.

What could they have achieved with what we have today?

BiteCode_dev··on A buried ancient Egyptian port reveals connections between distant civilizations
We feel the same about mushroom spots in France.

There is a saying: during the german occupation, people betrayed friends, and nation, but they shut their mouths about the mushroom spots.

BiteCode_dev··on Figma defaults to train AI models on personal data
Even if it takes 10 minutes per ToS update per service, that's still a good 100 of hours in your entire life (this they don't provide diffs) just to do that.

It should be illegal.

BiteCode_dev··on Figma defaults to train AI models on personal data
I remember that someone made a video reading the amazon TOS. It was 9 hours long I believe. That's without stopping, sleeping, eating, and assuming you understand every single sentence.

TOS should be illegal.

Imagine if you had to agree to ToS while entering at Cosco.

Or if you actually had to read 9hours of a legal doc to shop at wallmart.

BiteCode_dev··on A bunch of programming advice I'd give to myself 15 years ago
You probably are. But most of your colleagues as well :)

Most adults are kids in big meat suits, they fake it a lot.

I started to live like I was not completely worthless at 35.

Not saying that to be proud of it, just stating that if you think humanity should do better, the first person you'll judge is you.

It will be glaringly obvious you are not meeting your own standards.

The higher your standard, the longer it will take for you to reach them.

And the way to get there faster is to ignore the shame, and do it anyway. Because if you don't, your growth will be slower, and you will do more damage for longer.

Real life means real consequences.

It will make you more tolerant of others as well. Way more tolerant.

BiteCode_dev··on A bunch of programming advice I'd give to myself 15 years ago
Yeah, I'm surrounded with medical professionals.

It totally does.

They make grave mistakes all the time. And they hide them. They lie about them.

They have their ego and career on the line.

And they don't have enough resources at their disposal, not enough hours, too many patients, and they are exhausted.

In short, they are humans in a human system.

BiteCode_dev··on A bunch of programming advice I'd give to myself 15 years ago
Obsession will stop you from shipping.

Or it's not an obsession.

It's caring.

Very few people can pull off a Steve Job level of nitpicking and actually finish a project.

I certainly couldn't, and that advice is for young me.

BiteCode_dev··on A bunch of programming advice I'd give to myself 15 years ago
Planes and bridges are problems where the quality control can be centralized and you can therefore put a lot of redundancy.

Even then, the Boeing scandal shows it's not bulletproof.

It's not the same for medicine. There are way more doctors than you can put safety nets. Also, when a plane crashes, it's on the news, it costs money and PR. Much less so with doctors.

The plane industry is not inherently more moral, just more liable. Responsibility in the health industry is way more diluted.

It's not that we WANT to pay the price of people learning. I wish I would not have had the wrong meds given to me last year.

It's just that the system is not currently set up to do it otherwise.

So you can feel guilty and stop moving, and you will not learn. You will not grow. And you will actually hurt people for a longer period because you will still make mistakes.

Or you can own it and accept the inevitable: doing things means having actual consequences on the world.

If you want, you can dedicate your life to change the whole system and make it better. But I don't think anybody in this thread is doing that right now.

I did see a lot of people on their high horses, but doing nothing though, paralyzed because they were looking for a way to never break anything.

Me, for example. For years.

BiteCode_dev··on A bunch of programming advice I'd give to myself 15 years ago
Tangential, but I think that's the problem with trying to learn from design patterns.

I read about them and tried to apply them.

That's backward and didn't produce anything good.

I started to understand them by doing it the other way around:

- Coding, solving problems.

- Reading other people's sources.

- Then reinventing half a terrible design pattern.

- Later on, looking at a book: "ohhh, that's what I tried to do" or "ohhh, hence the snippet in that source".

- Now I can discuss with people about the pattern and name my code entities according to that.

Design patterns are a communication tool.

BiteCode_dev··on A bunch of programming advice I'd give to myself 15 years ago
Skin in the game is important.

I have a terrible programmer friend.

He is better at creating actual products than most people I met because his livelihood is on the line: he makes money only from websites.

So he is not living in the abstract idea of best practices, he had to make it profitable for the last two decades, with little resources to go by on top of that.

And he does.

After 10 years, he is still asking me how to write git commands. And I'm still learning from him to shed a lot of BS from my practices.

BiteCode_dev··on A bunch of programming advice I'd give to myself 15 years ago
Show me a hospital, and I'll show you overworked, under slept young doctors that have to deal with paper work, and are swimming in a field with heavy lobbying.

But even without this, the thing is, when you don't know, you will make mistakes.

And when your job is to take care of people, mistakes hurt them.

It's the nature of things.

Last year I had 3 medical errors, one that almost got me killed, by very well-meaning professionals.

Closing your eyes and pretending it doesn't happen is naive at best.

But people have to start somewhere. They can't stay in theory forever. And no amount of preparation will save you from making terrible mistakes.

Since we can't put an experienced doctor behind every intern 24/7, there is no real solution to this for now.

Same for programming.

BiteCode_dev··on A bunch of programming advice I'd give to myself 15 years ago
Indeed it's not general advice, it's to me specifically, who used to procrastinate a lot under the guise of learning.
BiteCode_dev··on A bunch of programming advice I'd give to myself 15 years ago
I agree, and would say is equivalent to:

> - There is no substitute for doing. Less tutorials, more coding.

BiteCode_dev··on A bunch of programming advice I'd give to myself 15 years ago
Those are way too abstract advice when you start programming.

You can only understand them because you lived those situations, which implies experience you don't have.

I would say (specifically to my young self):

- There is no substitute for doing. Less tutorials, more coding.

- Stop being obsessed with quality: you are not at the level where you can provide it yet. Do dirty. Do badly. But ship. Some people will be mad at you, and they are right. But do it anyway. Yes, reboot the servers with users on it. Yes, commit the spaghetti. You'll reach the level you want to avoid doing all this.

- The users don't care about the tech. They care about the result.

- Doing something for the hell of it is worth it. Just make it separate from the point above so they don't conflict.

- Programming is a battle against complexity. Again and again. Put that on a post-it. Make your decisions based on it. You will suck at it, but try.

- You have imposter syndrome because you are an imposter. You are really bad. It's ok, doctors hurt people for years while learning to save them. Don't sweat it. It will come.

- You need faith it will work out. On the long run, you'll get better at this. But in the short term also. You'll find the bug. You'll figure out the solution. It will happen if you keep at it even if it can be frustratingly long and unfair. Even if it doesn't feel like that right now.

- The right team is way more important than the right tech. If you are alone, get in touch with people who will lift you up from time to time.

BiteCode_dev··on ID verification service for TikTok, Uber, X exposed driver licenses
Plus, they can delete all your informations, because GDPR mandates it in Europe.
BiteCode_dev··on Ask HN: What is the best code base you ever worked on?
I actually was the one telling them not to rewrite, lol.

But the original code was a mess of matlab spaghetti, they couldn't find a way to hire for that. Not to mention turning it into a web service was already a big hack of java parsing a raw dump of matlab datastructures that nobody dared to touch.

I had to read the matlab code, and it tooks hours to decypher a few lines. Plus the language doesn't have great debugging and error handling capabilities and the tooling is quite terrible.

So rewriting to python won, and for once, I must say it was a good call.

BiteCode_dev··on Ask HN: What is the best code base you ever worked on?
Last year I worked for a client that gave me a lot of time, money and autonomy to lead dev on a critical software rewrite.

We got a small team of competent people, with domain experts to peer code with the devs.

It was wonderful. We could test, document and clean up. Having people who knew the trade and users at hand removed second guessing.

The result was so good we found bugs even in competitors' implementations.

We also got x5 in perfs compared to the system it was replacing and more features.

BiteCode_dev··on Ask HN: What is the best code base you ever worked on?
Depends who is providing it.

Django and pydantic meta programming usually make the code easier to deal with.

In shop written meta programming usually sucks.

BiteCode_dev··on Frame.work laptop now available in Denmark, Finland, and Sweden
Yep.

Also, the new screen looks nice.

Might upgrade in a year or two if I feel I need more brightness.

The fact you can change it slowly, piece by piece, is fantastic. It spreads the cost of upgrading the machines over the years instead of having to pull the entire cash at once. No need to reinstall everything every time.

You can upgrade the battery when you need to. Then maybe the RAM 3 years later once electron app with embedded AI model takes over the world and a hello world eats 4go.

This is, to me, the killer feature.

Young me would have hated it.

I wanted a new poney regularly.

BiteCode_dev··on Frame.work laptop now available in Denmark, Finland, and Sweden
True, I forgot to mention it because I almost never use them. Laptop cams and mics are never up to my standard, even on mac, and since I remote work 90% of the time, I always travel with a full mic stand and external cam.

This is too important for good communication for me.

But indeed, it's not on the higher end for sound and image quality.

It's not the worse either. Just meh.

BiteCode_dev··on Frame.work laptop now available in Denmark, Finland, and Sweden
True, but the prices you list are the price of the board + the CPU.

On this main board ($340):

https://frame.work/products/cooler-master-mainboard-case-and...

The CPU is worth $250 already.

You pay a $100 to get a swapable CPU on a laptop which is guaranteed to be compatible.

You might value or not this feature, and that's fair.

But I do value it a lot.

Even on a tower, matching a board and a CPU is not a given. On a laptop, forget about it.

BiteCode_dev··on Frame.work laptop now available in Denmark, Finland, and Sweden
You will not get mac level finish or integration, nor battery life.

But you will get a lot of ram and disk for this price, a robust and fast laptop.

And something you can repair.

If you are a mac person, there is no substitute for the mac, by definition.

If you don't care about mac, then the framework is a good machine.

I rocked dell for a long time, I switched to framework, and so far, it's been great. The keyboard is comfy, the touchpad is good (for a non mac), the mate screen is productive and I enjoy its format.

The specs have not let me down perf wise, the extension system is fantastic, and the value proposition of being able to be repaired is unmatched. I assembled it, and you can see they care a lot.

Dual boot windows + linux on it is quick and easy. Support is perfect, including sleep, wifi, fingerprint reader, webcam, etc. The mechanical off switch for the mic and cam is a plus.

The battery life sucks, and I can hear the fans more than I want. It's not as stylish as other notebooks.

That's it.

Mostly, I forgot about the machine in a week and it's transparent to me: it's plugged on a USB dongle that powers it, hook me to ethernet and extends the screen. I used it on the go twice, nothing special to report.

It just works and I get things done.

Which is probably what a lot of people want.

BiteCode_dev··on Frame.work laptop now available in Denmark, Finland, and Sweden
Yeah but you update the mainboard once every 10 years.

Usually what you upgrade are: ram, disk and cpu.

Comparing a tower with a laptop makes little sense. They don't have the same use cases and compromises at all.

It's like saying "I much rather stay on a framework, because all the part are upgradable, but I exchange the bigger price for portability and not having to by a battery to protect against power down".

It has little to do with the framework proposition, which is to be a laptop that happens to be easier and cheaper to repair than the competition.

I tried to repair my previous laptop. I killed it because the parts are so hard to manipulate.

Cost me $2000.

I think anything is cheaper than that.

BiteCode_dev··on Launch HN: Hatchet (YC W24) – Open-source task queue, now with a cloud version
But we can't self host, right?

So it's locked in.

BiteCode_dev··on South Korean telecom company attacks torrent users with malware
> In most of the west, you can go to jail or be punished for speech. Most of the west doesn't have free speech that we do in america.

I'm going to assume you don't travel much cause on our side of the pound we can very much speak out loud of many things the US can't.

In fact, we don't have the absurd taboos that force the US to use alternative words. We can:

- Report "He disrespected his colleague, calling him a niger". No need to hide that behind "the n-word".

- We can call pedophilia what it is and debate about how to punish it, instead of using acronyms like CSAM for fear of being labeled in a certain way.

- We can show tits or talk about vagina and not get "porn" tagged all over.

BiteCode_dev··on MemHive: Experimental Python Subinterpreters Orchestrator
I love the readme:

"DO NOT USE IN PRODUCTION OR YOU WILL BE FIRED. UNLESS YOU WORK AT EDGEDB."

For context, this is a way to share data between the new subinterpretter feature in Python.

Given there is no doc, the tests give a glimpse of what it looks like:

https://github.com/edgedb/memhive/blob/main/tests/test_basic...

BiteCode_dev··on I found a 1-click exploit in South Korea's biggest mobile chat app
There should be a site to remember all those:

- list the problems

- link to sources

- backup the source instead they happen

We forget too easily, and PR works wonders. I used to have such a list for Microsoft, but:

- I have to pull it of every time we talk about the new MS, because people think they are good guys now. They already forgot.

- People don't think it could have been that bad.

- I have to rewrite the list, I can't link to it. Or expand it. And I have to justify its existence and credibility because MS PR is so strong now.

- The links are disappearing from the web, so my previous proofs are fading away, slowly being replaced by references everywhere singing MS praises and stating how a saint Gates is.

The powerful are rewriting history, literally.

karmicarchive.com is available, just saying.

← PreviousPage 29 of 34Next →