HNHacker News
TopNewBestAskShowJobs

fiedzia

592 karma · joined January 21, 2013

submissionscomments
fiedzia··on Blessed.rs – An unofficial guide to the Rust ecosystem
crypto does change. Maybe not specifications of specific algorithms, but which of them are supported may change. Do we want to break existing code when one of them will become deprecated or do we want to allow insecure method to be used to make web requests?
fiedzia··on Blessed.rs – An unofficial guide to the Rust ecosystem
> do you use Rust for (nearly) everything?

Nearly. There are still some things easier to do in Python or JS, but the gap is closing quickly and I'm fine with spending small amount of convenience to get quality of Rust code. I am looking now into having nearly 100% Rust frontend + Rust backend for some simple project and it does look promising.

fiedzia··on Nearly all binary searches and mergesorts are broken (2006)
> Python, for example, has arbitrary precision integers.

In the spirit on nitpicking on edge cases: It does, but quiet often you pass a number to some C library (other than stdlib) and C does not honour this arrangement.

fiedzia··on Ask HN: Comment here about whatever you're passionate about at the moment
After spending some time on few forums I realized I miss heavily threaded discussions from NNTP times, so I started thinking about designing modern alternative (centralized, where server keeps track of messages you marked as read).
fiedzia··on User-Agent Reduction
To get it working client-side you'd need to change the app, while the whole premise here is that you don't have to (and often can't). One point tracking what UA string are here and what they need is better than expecting every app author to handle this properly.
fiedzia··on The pool of talented C++ developers is running dry
> In web tooling there are things like Django's Admin app.

Which is great - for creating custom admin panels easily. You can't use it as "generic app" you just turn on and it works, so someone has to do it.

fiedzia··on User-Agent Reduction
> What should isMobile return?

There was an joke (real story maybe) about soldiers being allowed to carry up to 25kg of gear, and therefore a device weighting 104kg supposed to be carried by 4 people was deemed not to be portable.

fiedzia··on User-Agent Reduction
> When I got started with the web 15 years ago, it was advised everywhere not to rely on user agent strings and rely on feature detection instead,

Which is reasonable advice for a code running in a browser, not for a proxy/CDN (and you don't want proxy inserting it's own js).

fiedzia··on Ask HN: Solr/ES Alternatives?
There is https://www.meilisearch.com/ Few others based on tantivy Sphinx

Nothing matches Solr/ES on functionality though, and ES doesn't require anyone to deal with Java (until you need tweak perfomance).

fiedzia··on The pool of talented C++ developers is running dry
I meant that increasing amount of projects related to Python/JS and others that would previously be created in C/C++ is now created in Rust. Some examples:

TypeScript type checker written in Rust Ruff – a fast Python Linter written in Rust Introducing Turbopack: Rust-based successor to Webpack Deno is a simple, modern and secure runtime for JavaScript, TypeScript, and WebAssembly that uses V8 and is built in Rust.

fiedzia··on The pool of talented C++ developers is running dry
> But these are all implemented in C++ or C?

Mostly, but Rust is increasingly replacing them.

fiedzia··on Front-end is Rife with Bad Ideas
> It makes it absurdly difficult to share common styles across components.

It's a feature, not bug. In the world where many components are created independently by different developers, It's suddenly possible to define element style easily, without requiring you to consider affecting tons of other things that are not in any way related and you know nothing about. Less sharing is good when sharing requires expensive coordination.

fiedzia··on Why Learn Rust?
They can and often are used for the same tasks. I ported code from Pyton to Rust several times to improve performance or memory usage. Both languages are fairly similar when it comes to syntax, language concepts and many Rust libraries are inspired by Python equivalents.
fiedzia··on Ask HN: Why do you hate (or love!?) your language's package manager?
Cargo is best there is in this domain so far. Poetry is good. I rarely use anything else.

Important things:

1. Consider what developer need and what devops need. Those are different needs. 2. Packages should be immutable. 3. Take care about what text you print. This should be to the point, no spamming. 4. Having reliable package repository is the best way to go. Getting dependencies from random git repos is a recipe for production issues, as those come and go.

(I do not now Rel, so maybe this is irrelevant).

fiedzia··on Ask HN: Would more apps build with Git back-end if there’d be a solid SDK?
>Is doing versioning explicitly in a database necessarily more complicated than with git histories?

What "versioning" means depends heavily on the database. "Versioning" for typical relational databases like Postgres does not achieve many of expected git features like branching and ability to materialize data for arbitrary point in time, unless you build something extra on top (or just use db as git storage). There are databases like dolt where "versioning" idea is similar to git.

> is the tamper-evidence what's needed and missing or something else?

I always work in controlled environments, so don't care much about tamper-evidence (unless its used for detecting integrity issues perhaps).

I didn't know datomic, that's looks like solution for half of the problem (distribution and history). I may still be missing something more human-focused like git, where you have branches, collaboration and push or pull when needed.

I was just commenting, not disagreeing.

fiedzia··on Ask HN: Would more apps build with Git back-end if there’d be a solid SDK?
Db idea of versioning usually is useless for implementing version control as git does. You could store git objects in a relational database and that makes a lot of sense (becasuse transactions and better data integrity guarantees).

Biggest issue with git for me is that its only usable for plain text. There is Dolt and few other projects that try to solve it,

> The value of git is distributed operation and tamper-evidence. What would be the value of these attributes for a cloud-based app?

Cloud based apps are very often distributed internally. For example consider a book store that has data in a database and replicates that in elasticsearch and some data analytics platform. Being able to use data versioning for those replications could be useful.

fiedzia··on Elasticsearch SQL
You can use ES as data storage, and in that case SQL makes sense. It was originally created as full-text search utility, and for that part SQL is not very useful.
fiedzia··on The WhatsApp Architecture Facebook Bought for $19B(2014)
It's groupchat, better sms (with photos) and calls over internet, already integrated with phone numbers. Also its more reliable than sms.
fiedzia··on Microsoft Partners with Meta to Bring Teams, Office, Windows, and Xbox to VR
It's to be or not to be for fb, they are the one asking and paying.
fiedzia··on How to prove you know a secret without giving it away
There is also spyfall (https://boardgamegeek.com/boardgame/166384/spyfall) which is about one person not knowing what everyone else knows and trying to pretend otherwise. Very popular among my friends.
fiedzia··on The cameras and lenses used on the latest Oscar nominated films
As an interesting complement to this story, I've recently seen a video on youtube (I'll try to find it when I'll get home) showcasing poorly or not-at-all color-graded movies made with expensive gear and crew, either because someone wasn't aware they should do it (seriously...), or they've seen other such videos and considered this to be desirable aesthetics.
fiedzia··on What NPM should do to stop a new colors attack
> is that value of a different type than a foo constructed by X 1.1

I encountered this case once, and they are considered to be different types (in my case the issue was that using v1.0::foo with v1.1::foo traits wouldn't compile), so either keep them separated or pick one. Error messages can be confusing though, if you don't suspect using two versions.

fiedzia··on Is It Even Worth Working on FOSS Anymore?
In short, FOSS or not, do not work on something that doesn't benefit you (either by being paid or solving your problem).
fiedzia··on Misbrands
There should be a Doom version with that thing.
fiedzia··on Linux Has Grown into a Viable PC Gaming Platform and the Steam Stats Prove It
Games include music, so the answer for that part is "not at all". Many games offer music at additional cost, so there is a market for that. Also certainly some games made their music iconic in the same way movies used to do it.
fiedzia··on Zig 0.9.0
this is normalization issue, not version issue

import unicodedata list(unicodedata.normalize('NFD', "ñ")) >> ['n', '̃']

list(unicodedata.normalize('NFC', "ñ")) >> ['ñ']

both are correct, the issue is that unicode allows accented letters to be written as _accented_letter_ or _letter_, _accent_. The idea of "character" in uncicode is not very useful, most of the time you will want graphemes, not codepoints. User-friendliness wise, this is what Python should use (another rant - strings should not have length method, they should have byte_length, codepoint_length and grapheme_length).

fiedzia··on Trying Out Generics in Go
Basic Rust, sure. For some definition of "basic", and average person that knows some other programming language. What I mean is something along this line:

https://www.linuxjournal.com/content/getting-started-rust-wo...

It leaves many concepts without full explanation, but that's not necessary to do something useful.

fiedzia··on Floating point numbers, and why they suck
> We are sending the data to the warehouse as a float

There is your problem

fiedzia··on Trying Out Generics in Go
Absolutely. You can write some Rust by following some hello world tutorial and be productive in 15 minutes. That doesn't mean you'd be proficient in writing procedural macros or understanding all details of memory management, but I've seen Linux magazines presenting Rust omitting all those "advanced" features and surprising amount of Rust users is new to programming.

The learning curve is usually different because you will need to understand more before program will compile and because most materials aims to cover 100% of the language from day one, but if you want to approach it differently, productivity wouldn't be a problem.

fiedzia··on Trying Out Generics in Go
> they are both system languages

Due to ability to work without stdlib, Rust is system language in a sense Go never will be, to the point Go authors withdrawn this definition.

> Is Rust really a suitable replacement for Go?

It depends on your requirements for the ecosystem. If you need compatibility with Go or Go libraries, than it's not a replacement.

Libraries and support aside, any program written in Go can be written in Rust (and going back to nostdlib, many programs written in Rust cannot be written in Go). If you have required libraries, I'd say it can be written comparably quickly and easy. For example you can have web service returning hello world in 10 lines of code or so in either.

They are popular in different circles, but that is mostly not related to technical abilities. For 99% of of applications, you could pick either one.

← PreviousPage 6 of 16Next →