HNHacker News
TopNewBestAskShowJobs

Hasnep

897 karma · joined August 31, 2019

website: https://www.ha.nnes.dev contact: h[at]nnes.dev github: hasnep
submissionscomments
Hasnep··on The DIY Multideck
There's some examples of games that you can repurpose to play other existing games on BGG, and they link to lists people have made: https://boardgamegeek.com/thread/1812755/list-of-games-you-c...

More like repurposing games to play other existing games rather than the overhaul you're talking about.

Hasnep··on My Takeaways From 12 Months Of Therapy
Just because you can't think of a way to measure mental health doesn't mean a way doesn't exist. Scientists have ways of measuring subjective things in objective ways, they're not perfect but you can read the papers where they define them and then find other papers where they're useful.
Hasnep··on Liberating Wi-Fi on the ESP32 [video]
No, that's not what anyone said. The conversation is about copyright...
Hasnep··on Trump wins presidency for second time
But it wasn't actually a race, the votes were all finished being cast and were just being counted, so concepts like "having a head start" or "being ahead" don't really apply.
Hasnep··on Show HN: AI-generated images that look like real life
The image linked in that comment has a background that's half car and half building, but yeah apart from that minor detail it's pretty hard to tell.
Hasnep··on Gleam Is Pragmatic
Roc is a similar functional language that doesn't automatically curry functions and doesn't have partial application, the Roc FAQ has a few reasons: https://www.roc-lang.org/faq.html#curried-functions
Hasnep··on Show HN: A journaling service that runs over WhatsApp
If you think that's a simple notes system I'd hate to see what you think a complex notes system is!
Hasnep··on Data Science Agent and Code Transformation
Actually, the code before does nothing if dataset is set to 'animals', 'turtle' or 'formal_turtle', most of the branches are inaccessible. Also, the extra else clause that raises an error and the line

    elif dataset = 'formal_turtle':
are both invalid syntax.

I think 'clean up' here means something closer to 'convert this to what I'm trying to write'.

Hasnep··on Vega – A declarative language for interactive visualization designs
I think JSON is just used as an intermediate representation which is normally generated by a library in a more general purpose language.
Hasnep··on PEP 750: Tag Strings for Writing Domain-Specific Languages
Actually, the % syntax eagerly evaluates the log string, you need to pass the variables as arguments to the logging function like this: logger.debug("bla: %s", myvar).

It's such a subtle difference that I only notice it when my IDE underlines it :/

Hasnep··on Ask HN: What are some unusual but useful Python libraries you've discovered?
pg8000 [1] is a Postgres library implemented in pure Python. I've spent enough time trying to get psycopg installed on MacOS and Docker that I appreciate just being able to pip install it at any time.

[1] https://github.com/tlocke/pg8000

Hasnep··on Show HN: Bash Dungeon – An educational dungeon crawler in the shell
They're CJK 「quotation marks」, so not actually ASCII
Hasnep··on Show HN: I am building an open-source Confluence and Notion alternative
There definitely are accessibility testers who do this kind of thing professionally. The latest episode of the Linux After Dark podcast [1] had Florian Beijers [2] as a guest who livestreams accessibility testing of open source projects and does professional accessibility consulting.

[1] https://linuxafterdark.net/linux-after-dark-episode-72/ [2] https://florianbeijers.xyz/

Hasnep··on The Functional Programming Hiring Problem
Sounds a bit like Jane Street with OCaml
Hasnep··on Ask HN: Custom domain for personal email – yay or nay?
I have a "cute" email address and don't regret it. I just spell out the entire email address letter by letter, although because I have an uncommon name I have to spell out my name every time anyway.
Hasnep··on Helix-gpui: A simple GUI for the Helix editor
I've heard that Zed's vim mode is very good, although I'm not a vim user so I can't confirm.

https://zed.dev

Hasnep··on Why Functional Programming Matters [pdf]
I think Roc (https://www.roc-lang.org) is trying to be that kind of practical, less theoretical FP language. It's strictly evaluated, doesn't have currying, you can learn it without ever hearing the word monad. It's still very young, so the tooling isn't there yet, but it already has a formatter and linter built into the compiler.
Hasnep··on Sun Microsystems logo: the most beautiful logo design (objectively)
There are swastikas all over Taiwan (卐, the Buddhist kind) so probably not a big deal for the designers.
Hasnep··on Superfile – A fancy, pretty terminal file manager
I think GP was referring to the terminal emulator, which normally has the minimal GUI decorations depending on the terminal emulator and your desktop environment.
Hasnep··on Borgo is a statically typed language that compiles to Go
About a year ago, I tried writing a language that transpiled to Go with many of the same features, in my research I found other attempts at the same idea:

- braid: https://github.com/joshsharp/braid

- have: https://github.com/vrok/have

- oden: https://oden-lang.github.io/

Hasnep··on Shape typing in Python
See this post for a comparison of Python datetime libraries. The datetype, heiclockter and whenever libraries have different types for them.

https://dev.arie.bovenberg.net/blog/python-datetime-pitfalls...

Hasnep··on ESLint v9.0
My experience in the Python world is that the vast majority of projects only need one or two plugins for their linter, if any. Ruff has implemented so many flake8 plugins that I'm sure it has covered 99% of projects' linting setups.
Hasnep··on 7.4 earthquake in Taiwan, 34km depth
The tsunami reports I've heard here on the north coast are that it ended up being less than 1 metre tall, so luckily nothing to worry about.
Hasnep··on Pyenv – lets you easily switch between multiple versions of Python
You're right, but venv requires an existing Python install to create a venv. Pyenv is for installing multiple different versions of Python to create those virtual environments.
Hasnep··on Linux TTY font for Chinese, but treat it as a syllabic writing
My Chinese knowledge is limited, but I believe that words in Chinese would not be affected by accent in the same way. This is because even though, for example, in the Taiwanese accent sh is pronounced like s, "shi" and "si" are still "spelt" differently and consistently when using a phonetic writing system like pinyin or zhuyin. There are still individual words that are pronounced differently in different regions, but that's not related to accent.
Hasnep··on Mercedes adds a new car light color: Blue for self-driving
> you can't have bright red lights that turn on-and-off when you're not braking because that light behavior is legal but reserved for the braking mode.

Except in the US where indicator lights (turn signals) can be red.

Hasnep··on The new local data stack: Integrating Dagster, dbt and DuckDB
dbt-core is open source and can be used locally.
Hasnep··on What We Watched: A Netflix engagement report
> I'm sure if we had music numbers, we'd see well known classics up the charts too.

We do have that, don't we? The music charts are literally a chart of the most popular music.

Hasnep··on CPNG, a backwards compatible fork of PNG
Interesting, why do video slot machines use APNGs?
Hasnep··on Brain on News
I agree with the main point of this article, I see news more as entertainment than information, but the part about BLM didn't make sense to me.

> the total number of unarmed blacks fatally shot by U.S. police in 2019 was 14

I don't think BLM were as concerned with the absolute number of unarmed black people killed by police in the US, more with the fact that unarmed black people were more likely to be killed by police than people of other races. Plus, most other countries manage to fatally shoot zero people every year, regardless of race.

Dismissing the problem of police shootings just because people die more from other things feels like the author already had a negative opinion of BLM (as they say in the article) and when they found that statistic it validated their opinion and they didn't interrogate it further.

← PreviousPage 6 of 11Next →