HNHacker News
TopNewBestAskShowJobs

mpawelski

200 karma · joined September 5, 2013

submissionscomments
mpawelski··on Branded types for TypeScript
I like the brevity of this blog post, but it's work noting that this mostly feels like a workarounds for Typescript not supporting any form of nominal typing or "opaque type" like in Flow.
mpawelski··on Algebraic Data Types for C99
Supports exhaustiveness checks only if you explicitly opt-in it (by coding to pattern where you use helper function that accepts `never` type). "Dicriminated Unions Type"/"Sum Types" feels very hacky there, at least syntax-wise, because it is constraint by being "JS + types" language. It's remarkable what Typescript can do, but having native Discriminated Unions in JS (hence in TS too) would be much more ergonomic and powerful.
mpawelski··on .NET on Linux: What a Contrast
It's worth to note that MAUI is not cross-platform (Microsoft say it is, but for me excluding Linux desktop and calling it cross-pratform is a lie/marketing bullshit)
mpawelski··on Qdrant, the Vector Search Database, raised $28M in a Series A round
What concrete companies you are talking about?
mpawelski··on Decoding the Delegate in C#
Really weak article, I didn't expect to see such article on HN.

> Delegates are a language feature of C# that have been around for a few years now,

You mean since the very beginning of C# and .NET Framework? :-D

mpawelski··on CSS Is Fun Again
With all the recent CSS improvements I still miss the possibility to have working transition to "height:auto". The issue [1] on csswg-drafts is the most upvoted one. At least we can now use css grid and track sizes transitions, but it's far from intuitive, transition for "height:auto" should just work.

[1]: https://github.com/w3c/csswg-drafts/issues/626

mpawelski··on Confusing Git Terminology
There is a slight difference in behavior though. For restore you won't get you index (staging area) changed. Pass "--no-overlay" to checkout to get the same behavior as restore.
mpawelski··on Was Rust Worth It?
Java is surely keeping up but I can't name single Java feature that I miss in C# or is implemented better in Java. I haven't used Java in a long time though, just occasionally I read about new Java features and I've never said to myself "cool, I wish I had it in C#".

Static import are also available in C# for quite some time now (c# 6, released in 2015, and in C# 10 you can even make this import global for for project).

I haven't used Kotlin, is there any killer feature compared to C#? (except more succinct code in certain cases?)

mpawelski··on Thunderbird 115.4.0
After couple of years of not using Thunderbird (I switched completely to web portals) I tried it when they released Supernova and all I can say is that it's... slow. Really, I often have UI freezes, data doesn't appear immediately, downloading mails take a lot of time, calendar also is not that snappy. I somehow expected to have everything super fast as it's a local app (after all the data is downloaded), but it clearly doesn't handle large amount of mails efficiently.
mpawelski··on What's new in C# 12: overview
You must specify concrete type.

There was a plan to have "natural type" so "var list = [1,2,3]" would be of type "List<int>" but it was postponed to C# 13 (https://github.com/dotnet/csharplang/issues/5354#issuecommen...)

mpawelski··on The Polish Election Bazaar
Never heard of it either, looks like some niche practice on some social medias (like Twitter that really is not that popular in Poland)
mpawelski··on Every Door 4.0 is released with improved GPS and Mapbox Imagery
Everydoor was instant hit for me when it was released. It replaced completely Osm Go that I used before, it's just so much easier to contribute to OSM on the go.
mpawelski··on Draggable objects
A bit off topic, but this site looks great! I see it has many great articles about algorithms with interactive visualizations. Why I didn't know this site before?!

Anyone has some more recommendations of sites with similar content (easily explained algorithms with great interactive visualizations? )

mpawelski··on Organic Maps
There is, but the UX is not there yet. I think it was mostly used for for easier development and contributing to the project (you don't have to use mobile emulators to test map rendering), but apparently it's now officially in "beta" state, so maybe there is some hope for better UX improvement in future.
mpawelski··on Organic Maps
Other people have already written that it's a fork of OrganicMaps by original authors.

I'll just add that for me OrganicMaps is much better than current Maps.me which is getting worse and worse after it was sold to some Korean (or Chinese, don't remember now) company.

The UI is much simpler and in recent months you can really start to see that OrganicMaps is becoming more detailed. I used to check from time to time the difference between Maps.me and OM and and it used to not be much of a difference, but now you have: more POIs (point of interests, like physiotherapist, specific kind of shops, etc.), better rendering of walls, fences, cliffs, embankments, hedges, better rendering of parking places (very recent update!), and more!

mpawelski··on Microsoft is discontinuing Visual Studio for Mac after major overhaul
Was it even popular? I think Rider is the king on Linux and Mac for .NET development (even quite popular on Windows machines)
mpawelski··on OpenBenches – A map of memorial benches
Really? There are OSM wiki articles that describes how to tag tree species [0]. The usage also seems to be pretty high [1].

[0] https://wiki.openstreetmap.org/wiki/Key:species [1] https://taginfo.openstreetmap.org/keys/species#chronology

mpawelski··on Firefox address bar
I've been using % for years for switching to open tabs that I lost among many other opened tabs and windows.

Pro tip: you can also append % at the end to have the same result (it wasn't always like that, which used to be super annoying if you forgot to type it at beginning).

mpawelski··on How to think about async/await in Rust
Yes, I remember when my head was blown when I finally understood what this new async/await thing is doing in C#. It was nice to observe other language adopt it with basically the same syntax (Javascript, Python, Hack, then Rust with slightly different syntax). I had some satisfaction that my language got it first

C# really helped to popularized asyc/await as language feature, even though F# had something similar first.

mpawelski··on El Paquete Semanal
Linus did a short video about it recently: https://www.youtube.com/watch?v=G1Duspzmudk
mpawelski··on What I learned unsubscribing from 22 newspapers
isn't this gmail specific?
mpawelski··on DigiKam 7.10.0
> but also keeps me on Linux.

It works just fine on Windows.

mpawelski··on Why CMake sucks (2021)
> I strongly suggest to transition to meson, but that’s a topic for another post.

and the author wrote about it too: https://twdev.blog/2022/09/meson/

mpawelski··on AMD Grabs over 30% CPU Market Share as Intel Continues to Decline
I think I read somewhere that extending battery live is Valve's main priority for next Steam Deck
mpawelski··on Shells are two things
> Piping or redirecting output from a native program that outputs raw byte data converts the output to .NET strings. This conversion can cause corruption of the raw data output.

And this behavior is terrible and one of many "gotchas" that PowerShell has. Fortunately, there is a chance it will be "fixed": https://github.com/PowerShell/PowerShell/issues/1908#issueco...

mpawelski··on Tell HN: Firefox Is an awesome browser right now
For me a good example have always been https://kangax.github.io/compat-table/es6/ which rendered very poorly on Firefox. I see it's better now, but still, try to hover over the table (do couple of mouse movement, some circles or something) and see that it's not as responsive as Chrome is.

Another example is iD[0] Editor on https://www.openstreetmap.org/. But there, to be fair, it's also slow on Chrome but I feel it's a bit slower on Firefox.

[0] https://github.com/openstreetmap/iD

mpawelski··on I want to lose every debate
Exactly, Islamic law (and Islam in general) is so out-of place regarding women rights that I can't understand how someone from western culture can be convinced it's a good thing.
mpawelski··on Swift Achieved Dynamic Linking Where Rust Couldn't (2019)
MAUI is not working on Linux, still Microsoft market it as "cross-platform" which is super misleading at best (and pure lie at worst).
mpawelski··on Is tipping getting out of control? Many consumers say yes
> I can't believe these comments, what is wrong with you people?

I had a similar feeling while reading comments here, but then I reminded myself that most of people commenting here are from the US and are used to this strange tipping culture.

Oh wait, you mean comments criticizing American tipping culture? ;-)

Seriously though, I wished Americans would keep this broken tipping culture to their own country. Unfortunately they are polluting other places (especially the ones popular for American tourist) and introduce this broken "mandatory 20-30% tipping" madness.

mpawelski··on Ask HN: Is TypeScript worth it?
there is --no-unchecked-indexed-access option for it. Which is not on by default or in --stric mode because indeed in practise it's painfull

https://devblogs.microsoft.com/typescript/announcing-typescr...

← PreviousPage 2 of 4Next →