HNHacker News
TopNewBestAskShowJobs

dfgdghdf

1,135 karma · joined July 16, 2017

submissionscomments
dfgdghdf··on Out of prison after 30 years and people telling him to find forms on the web
Agreed!

And if government services do go online only, then I think the government is obligated to provide free internet access and training to those who can't afford it, in the same way that they provide roads and legal defense.

dfgdghdf··on A curated list of .NET performance resources
> that's just an implementation detail leaking.

I feel like this is every wart in the C++ language!

dfgdghdf··on A curated list of .NET performance resources
Interfaces don't have a compile-time size so I don't see how you can use avoid boxing if you want a collection of IFoo.

(Optimized) discriminated unions have a size that is the max size of the possible types, plus a flag to indicate the type. This is the best you can hope for without boxing.

dfgdghdf··on A curated list of .NET performance resources
You are writing C# like it's F#. In F# you can write union types that are also structs:

    [<Struct>]
    type Entry = 
      | Message
      | Term
      | Comment
And like in Rust, you have pattern matching on them:

    let computeFooForEntry entry = 
      match entry with
      | Message -> 0
      | Term -> 1
      | Comment -> 2
dfgdghdf··on A curated list of .NET performance resources
The best thing about .NET over Java is the ability to define custom struct types.

In Java, every object is heap allocated - unless you are lucky enough for that to be optimized away. If you absolutely need the performance, you must resort to a weird kind of place-orientated programming, where you pass around mutable references to primitive types that get operated on by static functions. It kind of resembles C, but without the struct keyword!

dfgdghdf··on Google Play store bans polyamory dating app
It's funny how the word "traditional" is thrown around. A traditional marriage in the biblical or medieval sense treated women as property, which is probably much closer to what Andy Rubin was up to than a consensual BDSM relationship!

Really the only point I want to make is that we shouldn't lump consensual "non-mainstream" relationships with abusive ones and call it "those freaks over there".

dfgdghdf··on Java 16
If you do stuff like this: https://weblogs.asp.net/dixin/category-theory-via-csharp-7-m...

(Note this is horrible because C# does not support this style well, in F# it's idomatic)

dfgdghdf··on Google Play store bans polyamory dating app
Andy Rubin sexually harassed people. That's not the same thing.
dfgdghdf··on Java 16
I can only comment on C# / F#.

The C# versions of F# features tend to be pretty clunky compared to the F# versions. This is because F# was designed for them from the beginning, rather than having them tacked on. Functional programming is getting easier in C#, no question about that, but honestly, it still kind of sucks. And the OOP-minded C# devs on your team still won't be able to make sense of your code that leverages all these fancy new features anyway.

dfgdghdf··on JavaScript from 2001 on India's largest private bank site
Keeping file version history inside the file makes me feel queasy.
dfgdghdf··on Why inflation is not a threat
Doesn't that make it even more like Software Engineering?
dfgdghdf··on Why inflation is not a threat
Some people argue that too much liquidity can lead to greater boom-bust cycles.

Economics reminds me of Software Engineering a bit, where smart people on two sides can argue opposite cases and both sound reasonable!

dfgdghdf··on An Object-Oriented Language for the '20s
C# has a HKT proposal now. If C# gets it, F# will soon follow.
dfgdghdf··on An Object-Oriented Language for the '20s
Agreed. F# lacks the HKT that the OP calls for, but it is possible to write plenty of pragmatic functional code without them. They might land soon though.
dfgdghdf··on An Object-Oriented Language for the '20s
Not if you have language support for monads / do-notation / computation expressions.

Many "problems" that people have with functional programming occur because they are trying to use FP techniques in a language that isn't really equipped for functional programming (JavaScript, C#, Java, Go...).

dfgdghdf··on Two UK Broadband ISPs Trial New Internet Snooping System
What can an individual do to protect against this (excluding going off-grid)?
dfgdghdf··on Rust’s async isn’t colored
F# Async functions are colored, in case people are wondering.

However, you can "un-color" them like this:

    doAsyncThing
    |> Async.RunSynchronously
dfgdghdf··on Based Cooking
Down-voter clearly needs to tidy their room!
dfgdghdf··on Based Cooking
Just FYI, the name "based" made me think this was some kind of alt-right thing.
dfgdghdf··on Its the Sugar, Folks (2013)
This is not a problem that was created by individual actions, and it won't be solved by them either. The bodies responsible for planning our infrastructure (roads, sidewalks, office buildings, etc) need to make "active" choices the most convenient. This could be as simple as making the elevator a little bit hidden (but still available for those who cannot use the stairs) whilst making the stairs look more inviting. Or ensuring that a direct and safe network of sidewalks is always available in our city centres. Or prioritizing pedestrian phases at traffic lights.
dfgdghdf··on Its the Sugar, Folks (2013)
It's not just the sugar. In developed countries we have successfully removed all incidental exercise from our daily lives. Some examples:

* Drive short distances rather than walk

* Home deliveries rather than getting things ourselves

* Escalators and elevators everywhere

* Drive-thrus to avoid short walk across a parking lot

* Childrens' play restricted to indoors or small yards

dfgdghdf··on Deliveroo to offer 50M pounds of stock to customers
The UK government must be more careful with inflation than the US government because the pound is not a serious reserve currency used across the world as the US dollar is. That said, the UK government has borrowed significantly to pay for coronavirus relief programs.
dfgdghdf··on Valve's Proton Has Enabled 7000 Windows Games on Linux
90%+ of people are not going to read that
dfgdghdf··on Valve's Proton Has Enabled 7000 Windows Games on Linux
Good point; I did not know this.

However, as a regular user, I assumed ProtonDB was also Valve, and that will be the main contact point for many.

dfgdghdf··on Valve's Proton Has Enabled 7000 Windows Games on Linux
My problem with Proton is that they are not strict enough with their ratings. I see a game has "platinum" or "gold" support and think "great, this will work well!" but then I discover it crashes after alt-tab and multiplayer doesn't work at all, which I consider critical bugs.

To me, the levels should be:

* Paltinum - the game works as well as it does on officially supported platforms

* Gold - the game works almost as well as on supported platforms but with minor niggles that don't significantly affect the experience

* Bronze - the game works in some form, but major things might be broken. It would not ship in this state on official platforms.

However, the project is a great start and I look forward to what they do next!

dfgdghdf··on Nuclear power must be well regulated, not ditched
This is arguably worse than an engineering failure though... In an engineering failure we can identify a concrete reason for the failure and integrate that into our engineering knowledge. On the other hand, we will never be able to eliminate the human / bureaucratic element.
dfgdghdf··on Rent controls have split housing in Berlin into two distinct markets
Rent controls provide a strong disincentive for people to move, which prevents people taking jobs they might otherwise have taken. It's hard to estimate the overall economic cost of this, since the effect is diffuse, but it is likely significant.
dfgdghdf··on How an Anti-TypeScript “JavaScript developer” like me became a TypeScript fan
This! My favourite thing about working with F# is the tiny delta between prototype script and production MVP.
dfgdghdf··on On the Experience of Being Poor-Ish, for People Who Aren't
For the wealthy, a car is expensive but mostly a convenient way to get around. For the poor, car maintenance costs can be ruinous. However, our society (excluding a few large cities) all but requires a car for day-to-day activities. Everyone drivers, but the poor bear the brunt of the cost, since they are more likely to live near noisy, polluted roads. Meanwhile, the wealthy can afford to live on quiet suburbs and cul-de-sacs. Cities and infrastructure designed for cars ("car dependency") disproportionately hurts the poor.
dfgdghdf··on Are You Trading or Gambling?
Another way of describing the "game perspective" is simply: "a stock is worth what someone else will pay for it". This sounds obvious, but the implication is that the stock price has no direct connection to how a company performs.
← PreviousPage 2 of 7Next →