News for hackers. Stuff that matters.

felipetrz

Looks like you accidentally
Re:Ask HN: What's the state of consumer ML with AMD GPUs? on Wednesday October 04, 2023 @11:32AM (#37766635)
As an AMD user, I have to say that it's nowhere near nvidia for ML. Basically ALL ML tooling is written with CUDA as a target, and while ROCm promises some level of compatibility, it's a buggy mess that crashes with most models out there.

If OpenCL took off as the standard, any GPU would be able to do everything just fine, but unfortunately industry always takes the "worse is better" approach to everything.

Re:SoftBank CEO says AGI will come within 10 years on Wednesday October 04, 2023 @11:25AM (#37766533)
And why would anyone care about what a CEO says?
Re:Create your ideal YT experience with 177 flexible options on Sunday October 01, 2023 @11:52AM (#37727089)
Only chromium support, though. Pass.
Re:The Meaning of Liberalism (1938) on Saturday September 16, 2023 @03:57PM (#37538114)
Like politics.

And like politics, it's a bunch of made up shit, that when believed by an entire society, will determine how, and whether, you can or cannot live in it.

Humans are defined by making shit up and then believing it.

Re:Ask HN: Why Did Python Win? on Sunday September 10, 2023 @03:07PM (#37458922)
> and is faster.

After a very long warmup time, which may make one-shot applications much slower.

Re:Nginx Unit – Universal web app server on Sunday September 10, 2023 @02:29PM (#37458597)
Python support seems restricted to WSGI, which is synchronous.

What about modern ASGI apps?

Re:Apple vs. Meta: The Illusion of Privacy on Friday September 08, 2023 @11:24AM (#37434795)
Ironic that the last slide asks me to subscribe to a newsletter with my Google account.
Re:Ask HN: Why Did Python Win? on Tuesday August 29, 2023 @07:10PM (#37315405)
JIT is a compilation model for interpreted languages, which translates bytecode into machine code in runtime to obtain better performance. The opposite of JIT is AOT (Ahead of Time). JIT languages go through two compilation steps: one to bytecode, and another to native code in runtime. Java is one example of a JIT compiled interpreted language, that also does ahead of time compilation to bytecode, while python compiles to bytecode transparently, but does not do any JIT compilation to native, which is part of the reason it's considered a "slow language" (though this expression doesn't really make any sense, as slowness is a property of the implementation, not of the language).

TLDR:

Java uses AOT bytecode compilation + JIT compilation

Python uses import-time bytecode compilation + slow interpreter

Re:Ask HN: Why Did Python Win? on Tuesday August 29, 2023 @06:55PM (#37315241)
I was actually surprised when I found out they made a web framework in "the RPG Maker XP language".
Re:Ask HN: Why Did Python Win? on Tuesday August 29, 2023 @06:50PM (#37315184)
There is always one obvious way to do things in Python, but it happens that what's obvious varies from person to person.
Re:Ask HN: Why Did Python Win? on Tuesday August 29, 2023 @06:48PM (#37315162)
You started using Javascript after they fixed it with ES6. When I started working with Python, I had just left a NodeJS project in ES5 callback + prototype hell and didn't want to get anywhere near Javascript until they added proper scoping rules and classes.
Re:Python: Just Write SQL on Monday August 14, 2023 @10:31AM (#37121463)
The main antipattern involved in this post is Go.

Rob Pike's messed up ideology made people think abstraction is bad.

Re:Python: Just Write SQL on Monday August 14, 2023 @10:22AM (#37121358)
NAND gates allow people who can't build transistors from self-mined ores to build CPUs.
Re:Python: Just Write SQL on Monday August 14, 2023 @10:15AM (#37121277)
You can test them very easily by using database containers.
Re:Python: Just Write SQL on Monday August 14, 2023 @10:05AM (#37121167)
"without using ORMs"

...

Proceeds to create an ad-hoc ORM.

Machines will never be zero cost.

And AGI is probably unachievable anyways.

Re:Write Elixir NIFs in Rust on Sunday August 06, 2023 @10:54AM (#37022616)
The whole point of explicit unsafe rust is making this type of thing have to be written on purpose. You can't accidentally write unsafe code. And in case you accidentally write unsound code in your explicit unsafe code, you know exactly where to look.
For this use case it would be better to put the data in a shared SQLite database than relying on multiprocessing CoW.

Even accessing objects from the shared memory would cause the reference counter to increment and the data would be copied, causing a memory usage explosion.

Re:Linux has nearly half of the desktop OS Linux market on Tuesday July 18, 2023 @09:59AM (#36772355)
The article is basically saying that a non-gnu Linux distribution, like Alpine, is less linux than ChromeOS, just because it uses GNU.

And while being pedantic about this, they still called Linux a Unix (which it's not) while ignoring the commercial unixes because they're dead (which, as much as I'd like it to be true, it's not in the case of MacOS).

The person who wrote this article was dishonest or ignorant in so many levels.

Re:Linux has nearly half of the desktop OS Linux market on Tuesday July 18, 2023 @09:40AM (#36771996)
That while including Linux in the list, which is not a Unix.
You'd at least have to switch between your terminal and a browser window, which already hits macos' horrible focus bugs when window switching.
MacOS is still stuck in the 90s skeuomorphic design bs, and prevents users from changing any aspect of the UI to achieve a minimum of comfort and productivity.

The UI is buggy, pop-up windows steal focus all the time, window management is pretty much nonexistent, there are slow animations with laggy focus changes.

It may be fine for a soft user who just uses a browser, but trying to do any serious work on a mac is a nightmare compared to a modern tiling WM on linux.