Better HN
topnewbestaskshowjobs
Log inSign up

devjab

3,171 karma · joined Dec 3, 2022 (4y ago) · 1,076 submissions

Submissions

comment 1y ago · link · parent

> Lack of OOP Support: Both Rust and Zig lack comprehensive OOP support

To some of us that is a major feature of Rust and Zig, but good luck.

comment 1y ago · link · parent

> Which is why they picked the name ...

Is that really true though? As I understood it JavaScript was mainly adopted because Java was popular at the time. JavaScript originally shipped as LiveScript, and they changed it to JavaScript later. Here is a nice quote on it from Brendan Eich:

“The name JavaScript was chosen when Java was hot, and we were doing LiveConnect to hook up JS to Java applets.”

Here is one from David Flanagan:

“JavaScript was originally developed under the name Mocha… It was renamed JavaScript in a co-marketing deal between Netscape and Sun Microsystems.”

comment 1y ago · link · parent

https://docs.astral.sh/uv/guides/integration/pytorch/#automa...

doesn't work?

comment 1y ago · link · parent

It may have to do with workflow. I rarely talk with the AI agent, I task it with a VIBE.md or a specific outlined prompt that relates to inline "COPILOT: ...." comments, and then I review the changes and either keep or dismiss them. When I dismiss them I'll mostly rewrite the promt and do it again in a new context window.

I did get curious though. So I decided to look up some of the times where I did correct it after I dismissed a change. I only looked at a couple of prompts but most of the AI responses looked like this:

"There are two issues...", "The error is because...", "The error persists because...", "A new route, /class_ids/fully_owned, has been added...".

I was feeling confident that it wasn't bullshitting me at that point, but then I get to this one:

"Thank you for the details. The error response..."

Now, that is the AI agent. If I use the browser or one of their "apps" the LLM politeness encouragement bullshit alone will often be longer than the entire chat response in an agent. Like this is the entire response to what it was tasked with in my example:

"To add this route, I'll implement a new endpoint that queries all unique class_id values and checks if all items with that class_id have is_owned == True. The route will return a list of such class_id values.

I'll add this as a new GET route, e.g., /class_ids/fully_owned."

ChatGPT (which is supposedly the same model) will spend those lines telling me what a great question it was.

comment 1y ago · link · parent

When there is less chat they appear less confident, but I think you're pretty spot on in point out why they are dangerous. If you're using them in an area where you're an expert, it's very easy to review the "diff" suggestion they come up with and decide whether it's bullshit or not. If you're using them in an area where you're not an expert, then how will you know?

comment 1y ago · link · parent

We use co-pilot through our azure license in VSC. My personal workflow is that I'll write a VIBE.md with very specific information on what I want and what I rexpect. Then in the actual code file I'll add a comment like "COPILOT: this is where I want you to do X". I'll then grant the agent access to the necessary files for the context. With big files it gets trickier because the prediction engine fails to distinguish between relevant and irrelevant context. I have the most success with incremental changes where the agent has to do one task at a time, and you can outline that in the VIBE.md + the comments where you add "COPILOT: This is step X...". In my coordinate example it actually had to change quite a lot of things, but that is still what I consider one task.

Context size matters a lot in my experience, but I'm not sure if it matters whether your 100k lines are in a single or multiple files. I tend to cut down what I feed the agent to the actual context, so if I have a 100k line file, but only 3000 lines matter, then I'll only feed those 3000 lines to the AI. Even in a couple of small files with maybe 200 lines of code in total, I'll only give the AI access to the 40 line which is the context it needs to work on.

English isn't my first language, so when I say context, what I mean is everything which is related to the change I want the agent to do. I will use SQLC as an example. Even though I feed the AI the Go model generated, I'll also give it access to the raw SQL file.

> Obviously re-factoring to break everything up into smaller files and smaller functions would be great, but that’s just the sort of project that I want to be able to use the AI for.

I'm guessing here, but I think part of our success is also our YAGNI approach. AI seem to have an easier time with something like Go where everything is explicit, everything is functions and Go modules live in isolation. Similarily AI will do much better with Python that is build with dataclasses and functions, and struggle with Python that is build upon more traditional OOP hierarchies. We've also had very little success with agents on C#. I have no idea whether that is because of C#'s inherrent implicity and "black magic" or because of the .net > .net core > .net framework > .net + whatever I forgot journey confusing the prediction engine.

> Do other Agents handle this sort of scenario better

I don't know. I've only used the sanctioned co-pilot agent professionally. I believe that is a GPT-4 model, but I'm not exactly sure on the details. For personal projects I use both the free version of GPT-4 in co-pilot and Claude Sonnet 4, and I haven't noticed much of a difference, but I have no hobby projects which are compareable.

comment 1y ago · link · parent

Are you using the LLM's through a browser chatbot? Because the AI-agents we use with direct code-access aren't very chatty. I'd also argue that they are more capable than a lot of junior programmers, at least around here. We're almost at a point where you can feed the agents short specific tasks, and they will perform them well enough to not really require anything outside of a code review.

That being said, the prediction engine still can't do any real engineering. If you don't specifically task them with using things like Python generators, you're very likely to have a piece of code that eats up a gazillion memory. Which unfortunately don't set them appart from a lot of Python programmers I know, but it is an example of how the LLM's are exactly as bad as you mention. On the positive side, it helps with people actually writing the specification tasks in more detail than just "add feature".

Where AI-agents are the most useful for us is with legacy code that nobody prioritise. We have a data extractor which was written in the previous millennium. It basically uses around two hunded hard-coded coordinates to extact data from a specific type of documents which arrive by fax. It's worked for 30ish years because the documents haven't changed... but it recently did, and it took co-pilot like 30 seconds to correct the coordinates. Something that would've likely taken a human a full day of excruciating boredom.

I have no idea how our industry expect anyone to become experts in the age of vibe coding though.

comment 1y ago · link · parent

> from a country I've never heard about before

How is your lack of geographical knowledge relevant to any of this?

comment 1y ago · link · parent

> I am not that intrigued that Python that can call some pre-compiled functions, this is already possible with any language that produces a dynamic library.

> The space that I am interested in is execution time compiled programs. A usecase of this is to generate a perfect hash data structure. Say you have a config file that lists out the keywords that you want to find, and then dynamically generate the perfect hash data structure compiled as if those keywords are compile time values (because they are).

I'm not sure I understand you correctly, but these two seem connected. If I were to do what you want to do here in Python I'd create a zig build-lib and use it with ctypes.

comment 1y ago · link · parent

I've worked with a lot of languages over the years, Java, C#, Go, Typescript, C and Python have been the main ones. These days everything is becoming Python around here... well with some C/Zig when needed... and the one thing I miss from any language I've worked with before is the Go model of package-private and public entities.

comment 1y ago · link · parent

I thought I pretty clearly stated that I was already losing that knowledge long before AI. I guess time will tell if I will lose even more with agents, but I frankly doubt that is possible.

comment 1y ago · link · parent

I don't think that research will show what you're hoping it would. I'm not a big proponent of AI, you shouldn't bother going through my history but it is there to back up my statement if you're bored. Anyway, even I find it hard to argue against AI agents for productivity, but I think ik depend a lot on how you use them. As an anecdotal example I mainly work with Python, C and Go, but once in a while I also work with Typescript and C#. I've got 15 years experience with js/ts but when I've been away from it for a month it's not easy for me to remember the syntax, and before AI agents I'd need to go to https://developer.mozilla.org/en-US/docs/Web/JavaScript or similar quite a lot when I jumped back into it. AI agents allow me to do the same thing so much quicker.

These AI agent tools can turn your intend into code rather quickly, and at least for me, quicker than I often can. They do it rather unintrusive, with little effort on your part and they present it with nice little pull-request-lite functionalities.

The key "issue" here, and probably what this article is more about is that they can't reason as you likely know. The AI needs me to know what "we" are doing, because while they are good programmers they are horrible software engineers. Or in other words, the reason AI agents enhance my performance is because I know exactly what and how I want them to program something and I can quickly assess when they suck.

Python is a good language to come up with examples on how they can quickly fail you if you don't actually know Python. When you want to iterate over something you have to decide whether you want to do this in memory or not, in C#'s linq this is relatively easily presented to you with IEnumerable and IQuerable which work and look the same. In Python, however, you're often going to want to use a generator which looks nothing like simply looping over a List. It's also something many Python programmers have never even heard about, similar to how many haven't heard about __slots__ or even dataclasses. If you don't know what you're doing, you'll quikly end up with Python that works, but doesn't scale, and when I say scale I'm not talking Netflix, I'm talking looping over a couple of hundred of thousands of items without breaking paying a ridicilous amount of money for cloud memory. This is very anecdotal, but I've found that LLM's are actually quite good at recognizing how to iterate in C# and quite terrible in both Python and Typescript desbite LLM's generally (again in my experience) are much worse at writing C#. If that isn't just anecdotal then I guess they truly are what they eat.

Anyway, I think similar research would show that AI is great for experienced software engineers and terrible for learning. What is worse is that I think it might show that a domain expert like an accountant might be better at building software for their domain with AI than an inexperienced software engineer.

comment 1y ago · link · parent

I understand why you'd feel disillusioned if you went into the surveillance capitalism part of big tech in the USA. It's probably similar to what a lot of people will feel about the AI industry when it does to the office floor what robotic automation did the factory floor a few decades ago. I'm not sure I'm quite as optimistic about tech as you are, but I completely agree with your point on how tech is more than just silicon valley.

There is the medical tech that you mention, but there is also green energy tech, farming tech and so on. All which are areas that are improving the lives on the planet for a lot of people. Of course many of these industries are kind of hard to break into if you're a "software engineer" and not really used to working with machinery, but it's not like it's impossible and it's certainly an area where your stuff will stick around. Some of the earliest software I build for solar plant data loggers will probably live a lot longer than me.

I do think people should follow what they want to do though. I completely get wanting to try something different and I don't think the authors reasons are any worse than people who burn out because of all the pseudo-management-bullshit in our industry. You don't really see anyone questioning when someone becomes a woodworker because they're fed up with associate agile scrum it business partner managers and little boxes on a board.

comment 1y ago · link · parent

For me it's mostly about the efficiency of the code they write. This is because I work in energy where efficiency matters because our datasets are so ridicilously large and every interface to that data is so ridicilously bad. I'd argue that for 95% of the software out there it won't really matter if you use a list or a generator in Python to iterate over data. It probably should and maybe this will change with cloud costs continious increasing, but we do also live in a world where 4chan ran on some apache server running a 10k line php file from 2015...

Anyway, this is where AI's have been really bad for us. As well as sometimes "overengineering" their bug prevention in extremely inefficient ways. The flip-side of this is of course that a lot of human programmers would make the same mistakes.

comment 1y ago · link · parent

I'm not English and I'm not sure what you would call electronic devices in your house, but very few of the ones you'd find in a typical Danish household which are locked down particularily well. It tends to be fairly easy to "hack" anything which has a computer in it, whether that is your Microwave, your electrical toothbrush, your router, your e-bike or something similar. What sets sex-toys appart is probably the amount of effort people are willing to put into hacking them. I'm guessing here, but I imagine you'd find a lot more people wanting to hack their sex-toys compared to people wanting to hack their Microwave.

Until I saw this post, I thought the e-bike community was the largest "hacker" community in regards to tampering with your electronics, but I imagine it too is dwarfed by sextoy hackers. Anyway, here in Europe there are a lot of hacks for e-bike computers. Part of this is because many people want to increase the software restraints on speed limits. Which is illegal, and, at least in larger Danish cities also very likely to get caught. Many people do it for statistics though, my e-bike computer as an example resets my "current" milage every 500km and then store the total in another place (something which gets reset everytime it's in the shop). It also didn't have a clock option for any of it's standard screens. My primary reason for hacking it was getting a clock on the display, but I now also back-up my milage + I have some added statistics for fun. When it needs to go into the store, I re-flash it to the factory settings or whatever you'd call it. I'm by no means a device hacker, but it wasn't hard to search engine my brand and find the tools I needed to do what I wanted.

Anyway, I don't think there is a lot of "secuirty" in any of our daily devices. Maybe it's because I'm European and a lot of people wouldn't want the NSA watching in through a Google Camera, and therefor buy non-major-tech-company brand stuff, but even things from large brands like Bosch are very hackable. Again, I'm not a device hacker as such, but isn't everything rather hackable once you have the hardware?

comment 1y ago · link · parent

> the vast majority of software out there barely needs to scale or be super efficient

That was the way I saw it for a while. In recent months I've begun to wonder if I need to reevaluate that, because it's become clear to me that scaling doesn't actually start from zero. By zero I mean that I was naive enough to think that all programs, even the most googled programmed one by a completely new junior would at least have, some, efficiency... but some of these LLM services I get to work on today are so bad they didn't start at zero but at some negative number. It would have been less of an issue if our non-developer-developers didn't use Python (or at least used Python with ruff/pyrefly/whateveryoulike, but some of the things they write can't even scale to do minimal BI reporting.

comment 1y ago · link · parent

LLM's do no software engineering at all, and that can be fine. Because you don't actually need software engineering to create successful programs. Some applications will not even need software engineering for their entire life cycles because nobody is really paying attention to efficiency in the ocean of poor cloud management anyway.

I actually imagine it's the opposite of what you say here. I think technically inclined "IT business partners" will be able of creating applications entirely without software engineers... Because I see that happen every day in the world of green energy. The issues come later, when things have to be maintained, scale or become efficient. This is where the software engineering comes in, because it actually matters if you used a list or a generator in your Python app when it iterates over millions of items and not just a few hundreds.

comment 1y ago · link · parent

Interpreted general purpose languages have been fairly similar for a while. I worked with C# for a decade, Go replaced it for us (for human reasons not technical ones) but these days everything is basically Python and then some C/Zig for parts that require efficiency.

comment 1y ago · link · parent

I wonder why anyone would pay these days, unless its using features outside of the chatbot. Between Claude, ChatGPT, Mistral, Gemini, Perplexity, Grok, Deepseek and son on, how do you ever really run out of free "wannabe pro"?

comment 1y ago · link · parent

I think you can have a lot of debate on the design decisions on Rust, but I don't think the need for these articles tell you a lot about the language itself. I'd argue that Python needs articles like this more so than Rust does, but for entirely different reasons. In two decades of more and more programmers who aren't coming from an engineering background, I've yet to see anyone who used a Python generator or slots. Data Classes are less rare, but mainly in the form of pydantics "version". Which doesn't exactly matter for a lot of Python code... This is a world where 4chan can serve 4 million concurrent users an apache server running a 10k line PHP file neither of which have been updated since 2015... so you can be fine doing inefficient and entirely in-memory Python code 95% (or more) of the time.

That doesn't mean you should though. Imagine how much energy is being wasted globally on bad Python code... The difference is of course that anyone can write it, and not everyone can write Rust. I'm not personally a big fan of Rust, I'd chose Zig any day of the week... but then I'd also choose C over C++, and I frankly do when I optimise Python code that falls in those last 5%. From that perspective... of someone who really has to understand how Python works under the hood and when to do what, I'd argue that Rust is a much easier langauge to learn with a lot less "design smell". I suppose Python isn't the greatest example as even those of us who love it know that it's a horrible language. But I think it has quite clearly become the language of "everyone" and even more so in the age of LLM. Since our AI friends will not write optimised Python unless you specifically tell them to use things like generators and where to use them, and since you (not you personally) won't because you've never heard about a generator before, then our AI overlords won't actually help.

comment 1y ago · link · parent

We've moved from .NET and C# to Go, and I'd argue that it's very competetive with general purpose languages like C#, Java and similar for a different philosophical approach to enterprise tech. It's been a great technical fit for us in both finance and energy, but the main purpose for our adoption is because it's opnionated approachs are a much better fit for us than traditional OOP languages. There is no "magic", everything is explicit, the standard library is incredible and it's a relatively easy langauge to write and read.

In a world where 4chan can serve 4 million visitors on some dated apache server version running a 10k line PHP script which hasn't been updated since 2015 it's important to remember, that for 95% of all software (if not more), any, general purpose language will be just fine technically speaking and it's in the development processes (the people) the actualy differences are found. Go is productive and maintainable (cost-efficient and rapid changes) for teams that work better without implicit magic and third party depedencies.

The hype may be gone, but the Jobs aren't. In my area of the world Go is the only noticeably growing programming language in regards to job offerings.

comment 1y ago · link · parent

> any company sitting this out risks being unable to capture users back from Open AI at a later date.

Why? I paid for Claude for a while, but with Deepseek, Gemini and the free hits on Mistral, ChatGPT, Claude and Perplexity I'm not sure why I would now. This is anecdotal of course, but I'm very rarely unique in my behaviour. I think the best the subscription companies can hope for is that their subscribers don't realize that Deepseek and Gemini can basically do all you need for free.

comment 1y ago · link · parent

This is anecdotal but I often buy yearly plans on products that I've got a pretty good idea that I'll use, even if it's the first time I buy them. Though I'll freely admit it's always been the option of getting 1-2 months for "free" by signing up for the yearly plan. I've done it with various products, Proton, Disney+ (which saved them from my Danish boycot wrath to my daughter's delight) and so on. I've never even thought about it as a way of tricking me into buying the yearly plan, and now that I've thought a bit about it, I don't think your pricing would either. It's hard to say how I would've thought if I'd looked at the pricing page before reading these comments, but I genuinely don't believe I would've thought of it like that.

That being said, I would not base my pricing too much on a few random comments on HN. These responses can be a good indication, but I'd frankly reach out to some of my trial sign-ups who didn't transition into a paying client as well as some of my actual customers to get their view on it. I think pricing is going to be especially tricky in the AI space since it's so new and there is so much competition.

Good luck though.

comment 1y ago · link · parent

I'm not convinced it's really that useful. If you have rows of people sewing the same piece of clothing or similar, then it's not exactly hard to track output without digital surveillance. If you have assembly lines where people perform different parts of a larger project digital surveillance is useless next to things like lean, and again, bottlenecks will show themselves extremely fast if a single station is slower than usual.

I suspect the purpose of these systems is actually to create a horrible work environment. Not because that is a good thing, but because it'll drive away anyone who has other options and leave you with the most desperate people. Who will also be the cheapest people.

comment 1y ago · link · parent

If you're in finance, public sector or energy production you're going to want to mitigate the risk of US services now that the US is an adversary. We have things like DORA and NIS2 with high demands on cybersecurity. It wouldn't be far fetched to imagine the EU making it illegal to use US tech companies similar to how we can't use Chinese or Russian tech companies.

comment 1y ago · link · parent

They are two separate things. There is a flat VAT on every consumer product in the EU. When I buy something in Denmark from a Danish (or any EU) shop I pay 25% to the government. If I buy something from a non-EU shop I pay 0% to the government until it gets dutied in customs and then I pay the 25%. In America you also pay taxes on goods, the difference is you have to add it on top of your price yourselves... Like that was so crazy shopping in a US store the first time... that the price listed was not the price you had to pay. I don't think it would be particularily unfair for the US to do the same, but the difference is that you don't have the 25% flat vat on your internal goods, so in order for it to be equal we would need to add a tax on US goods to balance it out.

Anyway, taxation on car varies from EU country to EU country. In Denmark you pay a ridiculous amount of money to get a car registrered. To prevent every Danish person from buying a car in Germany we tax imported cars equal to Danish cars. Then on top of that you have various enviromental taxes, which our local car dealers are obviously geared toward, but if you were to import some non-eco friendly car your taxes on it would be silly high. (I say ridiculous and silly but I agree with it). The flip side of this is that some vehicles (like Teslas) have been getting very large tax reductions because they are green. Here is the kicker though, these are for private imports. If a Ford dealership wants to sell American cars, they can do so on equal terms to European car companies. You can argue Trump is at least a little correct on cars, but the reason Danes do not buy American cars is because American cars aren't build for our roads. Somewhat ironically a lot of the countries which have the highest taxes on imports of cars are also the countries which don't produce cars. America can tax the EU sky high on cars and it wouldn't impact Denmark because we produce exactly 0 cars. It would impact Germany, which has much lower import taxes than us and is also where a company like Tesla produces the European cars which are sold in Denmark. Something which would likely be a target for EU retaliation.

The worst part is probably that it'll mainly impact smaller businesses. Our biggest exporter of anything to the US is Novo Nordisk but companies like them have production inside the US and will not be impacted by the tariffs. Mean while some specialist tiny store will likely lose a lot of money. I have a pair of Iron Ranger boots as an example. I guess Red Wing might not be a tiny company, but they don't have EU production so I would find a non-american alternative to these if we enter a trade war and there is another 15-20% added on top of the VAT to balance things out. Not that I'll need a new pair of boots for a while, but you get the point.

The reality is that if we enter a trade war, we will both lose. The Trump administration is gambling that they can pull production back to the US, and maybe they'll succeed better than Australia did back in the day. The US is certainly a big enough economy that it might be capable of doing it. It's far more likely that it'll surrender the global economic leadership to China though. It's tricky of course, because China would already have that if they decided to meet EU regulation on safety standards. The danger to the US is if BRICS manages to pull half of the world away from the dollar. If that happens there will be nothing to carry the massive US deficit, and the US is the first and only nation in the history of the world that has been capable of remaning dominant while also having a deficit. Which is solely thanks to the dollar being the world currency.

Anyway... We'll see what happens.

comment 1y ago · link · parent

I use Zig and C with Python regularily and I think the interoperability is excellent. It's one of the coolest part about Python in my opinion, but the ecosystem is a nightmare to navigate. It's easy to use C structs for more efficient "classes" with libraries like msgspec, but chances are you've never heard about msgspec because there are at least 10 other libraries which do something similar, and there is also __slots__.

Even your package and project manager isn't straight forward. With Javascript you're basically going to use either Deno or Bun, but with Python you're going to use what? I'd argue that UV was the only "real" option (come at me!) but like 90% of the Python programmers I work with tend to have never heard about it. Maybe it's just my part of the world, but when you enter a Python shop that does web-api's you're 95% sure to find Flask, FastAPI or ninja-django (might be django-ninja), all of which are ok. The internet is full of recomendations on these, but they are all so underperformant compared to Litestar.

Then you have the actual language design where it is ridiculously easy to shoot yourself in the foot. As an example there is a massive difference in how you can loop over collections with Lists and Generators. It's not that different (in concept) from C# where you have IEnumerable and IQuerable, but it sort of is different in the way that almost every C# developer will know the difference while many Python programmers will never have heard of generators.

Over all though, I think there is a reason Python is everywhere. It's very productive, and it's also very easy to deal with bottlenecks when you run into them. I think the philosophy of designing code to be perfect from the get go is flawed. Partly because you're likely not going to know where bottlenecks will show up, but mainly because 95% (I pulled this out of my ass, but I'd wager it's accurate) of all software will never succeed enough to have scaling issues. Stackoverflow didnt even get CDN's until something like 2018ish, and during it's early days it was just a couple of IIS and SQL servers. Python fits perfectly into this sort of YAGNI philosophy because almost everyone can get things working well enough, and then you can always use actual engineering to deal with performance once you need to. Sure, I tend to write performant and type safe Python from the get go, but in a world of too few software engineers, it's very handy to have non-SWE personal build software which is "good enough". Especially in non-SWE industries, and Python is, the, language every non-SWE programmer uses.

comment 1y ago · link · parent

We use the Azure models and there isn't an issue with safety filters as such for enterprise customers. The one time we had an issue microsoft changed the safety measures. Of course the safety measures we might meet are the sort of engineering which could be interpreted as weapons manufacturing, and not "political" as such. Basically the safety guard rails seem to be added on top of all these models, which means they can also be removed without impacting the model. I could be wrong on that, but it seems that way.
1
456
36