joined 9 months ago
[–] [email protected] 2 points 9 hours ago (1 children)

The only interpreted language that can compete with compiled for execution speed is Java

"Interpreted" isn't especially well defined but it would take a pretty wildly out-there definition to call Java interpreted! Java is JIT compiled or even AoT compiled recently.

it can be blazingly fast

It definitely can't.

It would still be blown out of the water by similarly optimized compiled code

Well, yes. So not blazingly fast then.

I mean it can be blazingly fast compared to computers from the 90s, or like humans... But "blazingly fast" generally means in the context of what is possible.

Port component to compiled language

My extensive experience is that this step rarely happens because by the time it makes sense to do this you have 100k lines of Python and performance is juuuust about tolerable and we can't wait 3 months for you to rewrite it we need those new features now now now!

My experience has also shown that writing Python is rarely a faster way to develop even prototypes, especially when you consider all the time you'll waste on pip and setuptools and venv...

[–] [email protected] 1 points 9 hours ago (1 children)


Numpy is written in C.


Numba is interesting... But a) it can already do multithreading so this change makes little difference, and b) it's still not going to be as fast as C++ (obviously we don't count the GPU backend).

[–] [email protected] 2 points 12 hours ago (7 children)

Unless the C++ code was doing something wrong there's literally no way you can write pure Python that's 10x faster than it. Something else is going on there. Maybe the c++ code was accidentally O(N^2) or something.

In general Python will be 10-200 times slower than C++. 50x slower is typical.

[–] [email protected] 3 points 20 hours ago (10 children)

threading bugs are sometimes hard to catch

Putting it mildly! Threading bugs are probably the worst class of bugs to debug

Definitely debatable if this is worth the risk of impossible bugs. Python is very slow, and multi threading isn't going to change that. 4x extremely slow is still extremely slow. If you care remotely about performance you need to use a different language anyway.

[–] [email protected] 2 points 1 day ago

Meanwhile current AI is pretty much useless for any purpose where you actually need to rely on a decent chance to get quality results without human review.

Sure but there are tons of applications where you can tolerate lower than human levels of performance.

The amount of time ChatGPT has saved me programming is crazy, even though it struggles with more complex or niche tasks.

Here's what I used it for most recently:

Write an HTML page that consists of a tree of elements with interspersed text. These are log files with expandable sections. The sections can be nested.

The difficult part is I want the text content that is stored in the HTML file to be compressed with zlib and base64 encoded. It should be decompressed and inserted into the DOM once when each DOM node first becomes visible.

Be terse. Write high quality code with jsdoc type annotations.

It write a couple of hundred lines of code that was not perfect but took 5 minutes to fix. Probably saved me an hour writing it from scratch (I'm not a web dev so I'd have to look things up).

[–] [email protected] 3 points 1 day ago (2 children)

Modern AI (LLMs etc) is definitely a revolution. Anyone that has tried ChatGPT can tell that, just like the only people saying the iPhone was a fad were the ones that hadn't used it.

The thing that is hyped around AI is companies just trying to shove it into everything, and say stuff uses AI when it is totally inappropriate. That doesn't mean AI itself is nonsense though. The same thing happened with the iPhone (everything had an app even if it made no sense).

[–] [email protected] 1 points 2 days ago

I think it depends on your field and level of experience. I work in silicon verification and most jobs seem to be from recruiters. There's a domain specific recruitment company in the UK that has all the market.

But previously I've mostly got jobs from sending CVs.

[–] [email protected] 9 points 2 days ago (6 children)

Sooo much inane naysaying in that Rust for Filesystems article. I'm glad there are people with the stamina to push through it.

Part of the problem, Ted Ts'o said, is that there is an effort to get "everyone to switch over to the religion" of Rust

I would say a bigger problem is that there are people that think Rust is some kind of religion with acolytes trying to convert people. Is it really that hard to distinguish genuine revolutions (iPhone, Rust, AI, reusable rockets, etc.) from hyped nonsense (Blockchain/web3, Metaverse, etc.)?

These things are very obvious IMO, especially if you actually try them!

[–] [email protected] 5 points 2 days ago

I have yet to see one of these that gives any benefit over ncdu, which is amazing. I guess if you need to log the output this makes sense but that's pretty niche.

[–] [email protected] 5 points 2 days ago

Yeah LaTeX definitely has some of the jankiest log outputs of any program. I just looked it up actually and it's basically a warning that that but it the document might not look great (I guess something like in newspapers with justified columns where you sometimes see s t r e t c h e d w o r d s.) Definitely insane to print warnings like that by default. Maybe it made more sense in the 70s?

[–] [email protected] 6 points 3 days ago

Depends on your specialisation. Also immigration laws. But yeah I think in general the job market for programmers is very easy (as long as you are decent).

[–] [email protected] 11 points 3 days ago

Jesus SF salaries are insane.


Very impressive IDE integration for Dart macros. Something to aspire to.

view more: next ›