HNHacker News
TopNewBestAskShowJobs

fiedzia

592 karma · joined January 21, 2013

submissionscomments
fiedzia··on Munich court tells Netflix to stop using H.265 video coding to stream UHD
I know of two use cases for this system:

1. There are races of cheap cars in UK, the prices of cars are kept low because everyone has to declare car value and anyone can buy it at said price (this is intended to keep the prices low).

2. I do not remember where I read about it, but some medieval town near the river used this system for collecting taxes, any passing ship would be taxed on declared value, but tax collector had the right to buy cargo for declared price.

fiedzia··on Rare 2,100-year-old gold coin bears name of obscure ruler from pre-Roman Britain
Gold is relatively common, it's just that most mines were mined completely or to the point where further exploration was not economically viable, so few were preserved, though many mines that we have been used recently for other minerals did contain some gold in the past.

From first google link (https://www.bullionbypost.co.uk/index/gold/gold-mining-in-th...):

"Gold has been mined in Scotland for over 2,500 years. There was gold mining in Crawford from the early 1500s" - and that's just a few examples.

I recommend reading about or visiting Great Orme if you are interested in mining, it's a copper mine that was in use since bronze age.

fiedzia··on C Is Not a Low-level Language (2018)
Conceptually, you can consider LLVM IR to be such language, and there are people who use it that way.
fiedzia··on MathJax: Beautiful and accessible math in all browsers
There is http://asciimath.org/ .
fiedzia··on MathJax: Beautiful and accessible math in all browsers
To make it interactive for example.
fiedzia··on A few cores too many (2016)
We have Rust now (which is also coming to Js and Python), and that's coming to desktop right now. Other native languages will follow. Also both Python and Js have some solution (webworkers and subinterpreters) that will eventually become more popular.
fiedzia··on Geospatial data science with Julia
If all you do is "find records within x miles from lat,lon", solr/ES is the best solution. I think it can match a shape too.
fiedzia··on Log is the "Pro" in iPhone 15 Pro
Most recently microphones/recorders started using it for recording sound
fiedzia··on Pg_bm25: Elastic-Quality Full Text Search Inside Postgres
It's faster, but misses tons of features, starting with geosearch. Hopefully they will come with wider use.
fiedzia··on Things I just don't like about Git
You will immediately find that people use version control differently and "undo" means different things for them, therefore you have either: a) 50 variants of "undo" b) one official undo, but "here we use git foo" because reasons c) people operating directly on the repo structure because a) and b) are to complicated and broken for some specific workflow. d) most likely - mix of all those options. What I don't get is why people insist on using git directly. Define your workflow and create aliases named "undo", "save" etc. that work with folders instead of branches if you wish, call it our_git and use it. I've seen people do something like that.
fiedzia··on Things I just don't like about Git
True. However this mix of C and Perl works. I remember early days of git and whenever someone tried to bring Mercurial (or something else), the answer for any non-trivial "how do I do X" in git was "here are some magic commands" and the answer from mercurial guys was "oh... you can't, the plugin for that doesn't exist yet". And that's how git won (well, it was also faster). And later came Github. Latest contender is https://pijul.org/ , which claims easier conflict resolution, ability to work with part of repository and handling of binary files, but so far completely misses social aspect.
fiedzia··on SQL db as cache – 2x faster* requests vs. Redis
>It wouldn't make sense for caching simple objects (for example caching a query-record-by-id)

Yes, caching database queries in a database would be a groundbreaking technology

fiedzia··on Python 3.12
We have Fortran code from several decades ago defining scientific domain knowledge. The next Einstein formula may require 3.12 to run.
fiedzia··on Python 3.12
> That’s what I adore about truly open source projects such as Python, but also Linux or Rust, for example. They’re not polished products of faceless corporations

Most corporation products are absolutely horrible comparing to Python, the polished ones you know of are few exceptions. I've seen a few internal programming languages and anything publicly known is ... at least usable.

fiedzia··on Python 3.12
Python is very strict about type checking, it just does it at runtime.

The next step is Idris, where you define starting and desired type and start interactive shell to figure out right way to get there.

fiedzia··on What every software developer must know about Unicode in 2023
I haven't tried but use libicu (icu). Split text into graphemes and remove anything starting with codepoints that has Zsey script. There should be swift bindings.
fiedzia··on Cats Can't Taste Sweetness, Study Finds
> Cats are carnivores.

They eat herbs too. Maybe that's related.

fiedzia··on Ask HN: Why does HN adore Postgres so much?
> “It doesn’t matter because it’s just an ops problem” assumes that it’s okay to just throw a bunch of money at it via astronomical cloud fees or salaries for dedicated ops people.

It's okay to have different roles and responsibilities within organisation and it's okay to outsource certain aspects of operations. AWS RDS costs essentially the same for PG vs MySQL (PG is about 3% more expensive) and I doubt it would be much different in ops salary if you do it yourself, so it's not astronomical.

fiedzia··on Ask HN: Why does HN adore Postgres so much?
You are looking at it from operational point of view. As a developer I care about different things: 1.Ops side is someone else problem. AWS takes care of that, so it just works. Otherwise, ops take care of that, so I also don't care. 2. MySQL is absolutely horrible from developer point of view. It works for most basic cases, but it's so primitive that anything non-trivial breaks it. Significant portion of its documentation is dedicated to listing all possible ways things are broken and what you need to watch out for. Postgres just works. You can combine 2,3 or more features and it all just works as you expected. 3. Pg has way more features. You have tons of data types, index types and extensions that cover enormous amount of usecases. Whatever you want to do, Pg can do it. Maybe some specialized db would be better for full-text search or GIS or storing json, but Pg will get you far (or will just do great). MySQL is nowhere near this extensibility. 4. Maybe it's historical, but I've seem way more corrupted Mysql cases than Pg. It is rock-solid. 5. As a result of that, I see MySQL vanishing from people minds. More and more products work with Pg only (or Pg and SQLite).

> CockroachDB and TiDB are alternatives that are massively more approachable

Maybe. CockroachDB claims Pg compatibility (though docs say nothing about extensions). TiDB has some interesting features, but MySQL compatibility scares me [2]. Neither of them has level of support from cloud providers that Postgres has.

fiedzia··on Crux: Cross-platform app development in Rust
Boilerplate and process: This in part is a matter of tooling maturity and can easily be solved, and in part will be hidden in some github action, so I am not bothered (as long as solution is maintained). With amount popularity Rust tools have and increasing amount of money invested, I am not concerned here.

As for macros - yes, you will have them. Doesn't seem to be any more special than react or any other js framework where some magic is performed for you.

fiedzia··on Ask HN: Postgres vs. MySQL in 2023?
Most project I see (and all I work with) use Postgres and I am very happy not to waste time on researching 50 ways in which using any 2 mysql features together will shoot you in the foot. There is huge amount of interesting projects bult on top of pg (like timescaledb or edgedb), every provider I know can host it so overall I'd say that using mysql would be a limitation at this point.
fiedzia··on Crux: Cross-platform app development in Rust
True, it will take time. Tauri/Dioxus and others are still new and far from being mature. If you want to deliver project right now, Rust is not there, but moving in the right direction quickly.
fiedzia··on Coding in the Debugger (2007)
the power of debugging in interpreted languages is so far unbeatable. I have a shortcut for "import pudb; pudb.set_trace" in my IDE (pudb is pdb with UI)
fiedzia··on Crux: Cross-platform app development in Rust
> even as a fulltime Rust developer, I don't really see the advantage of using Rust for it vs, say, TypeScript.

UI libraries aside, Rust is better language and has better tooling, which overall contributes to productivity. TS/JS as a language for tooling is brittle and slugish (unless it's rewritten in Rust, where significant amount of tools is already heading), and I am happy for it to be replaced.

fiedzia··on Interactive GCC (igcc) is a read-eval-print loop (REPL) for C/C++
> People have tried inventing a new paradigm (julia) that combines usability with performance but it has not struck a chord

For any non-scientific purpose, Julia is not attractive, so I doubt it will gain much more traction.

> whether you can stick close to the C++ universe yet build powerful tools that hide complexity. Its not trivial, e.g. would it automatically make good use of heterogeneous CPU's/GPU

That's where we are going. Technically being generic over CPU/GPU (for defined set of operations) is not hard, just takes work (and leaders in this domain are interested in keeping thing proprietary), but that's already work in progress.

In general terms, copying Python usability (or 90% of it) is also simple and other languages head that way. Rust or Nim can come very close (when you have good set of libraries and pass the boilerplate).

fiedzia··on A Rust Dockerfile boilerplate for quickly building size optimized images
"At this point, Docker has become so deeply entrenched in our workflows, in order to remove it we need to format the planet, become fish, and try this evolution business again."
fiedzia··on Rust vs Go: A Hands-On Comparison
If you are writing a web application, as many people do, they are direct competitors, as you could easily use either one of them (or many others) and get the job done. And for many people in this case developer experience is 10x more important than GC or some advanced language features (that 90% of webapps won't care about).

Btw. I really liked an introduction article about Rust in some Linux magazine (don't remember which one). Write hello world, print a number to stdout, handle option and result, no mention of pointers or algebraic data types theory. I am sure will get a lot of people into using it without scaring anyone. You really need very little to get started.

fiedzia··on Ask HN: Why don't social media apps allow users to pay to remove ads?
You get money from advertisers, you put more ads, simple. The ads are there because users do not pay, so it's unlikely they will suddenly start, and one exception doesn't change that.
fiedzia··on The Future of Databases Is Services
> In the future, we plan to add native support for database backups

What does "native support" mean?

fiedzia··on Re: 100k Threads? (2002)
Python is working on removing GIL (I am not sure about timeframe) and will have subinterpreters - the last one will come in 3.13 and solves the thread problem.
← PreviousPage 3 of 16Next →