Better HN
topnewbestaskshowjobs
Log inSign up

Seb-C

1,107 karma · joined Mar 22, 2019 (7y ago) · 450 submissions

Submissions

comment 2y ago · link · parent

Ah, I see.

I don't know, but I would bet that the sum of all corner cases and exceptions in the world would make it pretty hard to confidently eliminate any "obvious" characters.

From a technical standpoint, unicode emojis are probably safe to exclude, but on the other hand, some scripts like Chinese characters are fundamentally pictograms, which is semantically not so different than an emoji.

Maybe after centuries of evolution we will end up with a legit universal language based on emojis, and people named with it.

comment 2y ago · link · parent

> I'm curious if anyone can think of any other non-alphabetic characters used in legal names around the world, in other scripts?

Latin characters are NOT allowed in official names for Japanese citizens. It must be written in Japanese characters only.

For foreigners living in Japan it's quite frequent to end up in a situation where their official name in Latin does not pass the validation rules of many forms online. Issues like forbidden characters, or because it's too long since Japanese names (family name + first name) are typically only 4 characters long.

Also, when you get a visa to Japan, you have to bend and disform the pronunciation of your name to make it fit into the (limited) Japanese syllabary.

Funnily, they even had to register a whole new unicode range at some point, because old administrative documents sometimes contains characters that have been deprecated more than a century ago.

https://ccjktype.fonts.adobe.com/2016/11/hentaigana.html

comment 2y ago · link · parent

I have been on the side of the free and anonymous internet for a long time.

But honestly, I am not sure about how I feel anymore. Internet has become a jungle where scams, lies, all sort of crimes, propaganda and manipulations from hostile foreign countries are now common and expected things of our daily life.

This is clearly destabilizing our democraties by creating distrust toward our institutions, and thus threatening peace and freedoms. And I absolutely blame social networks.

From a technical perspective I understand very well that there is no realistic solution to those problems, short of forbidding anonymity and requiring people to use their official identity.

There is of course the risk of this being abused by our own governements to attack freedoms, but lately I feel like this option would by far have more benefits than drawbacks.

comment 2y ago · link · parent

I mean that the employees escalates it, not the companies.

comment 2y ago · link · parent

This definitely exists, even when switching jobs.

However I would say that IMO it's another case of foreigners buzzing by depicting boring and common stuff under a "weird Japan" light.

Shitty companies manipulating employees to stop them from resigning is something that exists in any country. And this escalating to the labor authorities or going through a lawyer is not a rare thing anywhere either.

It happens more frequently in Japan because the culture of not being confrontational is strong. The fact that lawyers can afford to specialize in this matter alone is just a logical result of the larger number of customers.

EDIT: I also want to add this: if you have been in a company for a while, you are eventually going to see or hear about how resignation is handled for other employees. If you want to quit and already know that the company is going to harrass you and make your life hell, is it so weird to save your time and mental health to delegate all of that to a dedicated professional?

96.

AWS BuilderCards(aws.amazon.com ↗)

22 points · by Seb-C · 2y ago · 11 comments

comment 2y ago · link · parent

Since I read the story "The Road Not Taken" from Harry Turtledove, I cannot stop thinking that we might eventually discover that the question of the conflict between the general relativity and quantum theories is something so simple and elegant that we never even considered it before.

98.

The history of the path separator in Japanese and Korean Windows(devblogs.microsoft.com ↗)

1 points · by Seb-C · 2y ago · discuss

comment 2y ago · link · parent

I am developing a game called Astral Divide, which has in common with Factorio to have factories and a tech tree.

Until this week, I had a fancy tree visualization similar to the article's content (except that the location of the nodes was hardcoded). I spent quite some time to implement it and get it right, and it was difficult to maintain and update when adding new content.

Also, one feedback that I got from early testers is that this is confusing, and they didn't know how to read it.

I think that the main problem is that in such a graph, it is difficult to know if a branch means "A is an ingredient to make B" or "A is a machine that you can use to make B".

I spent time this week replacing it with a dumb list showing individual recipes in the form of an equation like "A = B + C", and I find it not only easier to understand, but also way cheaper to maintain.

You can see the previous version in one of the screenshots (fifth thumbnail): https://store.steampowered.com/app/2597060/Astral_Divide/

And the first draft of the new version: https://mastodon.gamedev.place/@sebc/113327870376150885

100.

Prep: Golang Comptime(github.com ↗)

106 points · by Seb-C · 2y ago · 25 comments

comment 2y ago · link · parent

Maybe not observe directly, but analyzing and understanding the thinking process is exactly what psychoanalysis is doing actually. But it takes the help of another person to be able to reach those unconscious thoughts.

comment 2y ago · link · parent

I have a similar problem on my Zenfone, there is a weird delay between key presses, especially when repeating a character twice, so that I often fail my password.

103.

Custom Linting Rules in Go(github.com ↗)

3 points · by Seb-C · 2y ago · discuss

comment 2y ago · link · parent

That is just not true. My grand parents migrated from Spain to France and my family perfectly assimilated. I never once in my life felt like anyone of us was not accepted as French.

Now I decided to myself live in Japan and I hear the very same speech as yours again and again about my host country. Yet my experience is very positive, I have integrated well and made my life here, and I never felt like I wasn't accepted.

But of course it took a lot of work to get there. Learning a new language, getting familiar with the local culture and embracing it is far from easy. The problem I see with some foreigners here is that they simply don't do this work and keep living in their own (often unhappy) bubble. Or even refuse to embrace some local customs because they are convinced that their own culture's way of doing things is superior to that.

comment 2y ago · link · parent

Because yield is implemented as a callback, there is no compiler magic to automatically stop the iteration when the caller side uses break or continue, so this condition cannot really be avoided.

Also there are many cases where you might need to have some special logic after the last iteration, so simply killing the underlying function is not an option.

comment 2y ago · link · parent

I don't know why most examples about the Go iterators shows unnecessarily convoluted examples. The authors probably don't know as much of the language as they think they do.

Go is far from perfect and certainly has a lot of flaws, but IMO the iterators design fits well into the language and does not deserve the criticism.

The range only needs a function, so what is the point of calling a function that returns a function?

This is enough to make a range iterator, you don't have to call `All` manually:

    func (slice Slice) All(yield func(string) bool) {
        for _, s := range slice {
            if !yield(s) {
                break
            }
        }
    }
https://go.dev/play/p/7AYOXzlHU4t?v=gotip

In Go, the expression `object.method` already returns the method as a function, with `object` being already bound in the scope of the function. The syntax is so that if you have this definition:

    type T string
    func (t T) f(a int) int {
        return a
    }
Then:

- `T.f` returns `func(t T, a int) int`

- `T("whatever").f` returns `func(a int) int` where `t` is already set to `"whatever"`

- `T("whatever").f(42)` calls the function and returns `42`

comment 2y ago · link · parent

Nice article.

I have done a somewhat similar experiment a while ago and achieved to fit quite a lot of particles with a basic physics simulation.

https://github.com/Seb-C/gravity

108.

Go 1.23 Release Candidate 1 is released(groups.google.com ↗)

1 points · by Seb-C · 2y ago · discuss

comment 2y ago · link · parent

Very few places banned crypto mining from wasting energy when it was the "bubble of the moment", so I doubt that anything will happen for AIs (that are — at least — not as worthless).

comment 2y ago · link · parent

> [...] absorbs carbon dioxide from the atmosphere, making it a negative carbon emission technology. The only byproduct is water [...]

I remember enough of my high-school lessons to wonder what happens to the C in "CO2" if you convert it into "O2"...

comment 2y ago · link · parent

I still haven't found any interest in this wave of AIs for coding, mostly because writing code hasn't been a bottleneck for me since I learned vim and started using it as my only tool.

Knowing what to write and how to organize the code is the really difficult part of our job, and I am unable to do this correctly when reviewing stuff written by others (or by an AI).

I have been wondering if people are actually using those to save time writing boilerplate code, in which case it would make sense.

Vim has greatly increased my productivity by allowing me to save time for all repetitive tasks, and it's consistent and reliable (but also super hard to learn).

Maybe it's just a completely different approach in resolving the same problems?

comment 2y ago · link · parent

When I write code, I usually get a complete understanding of the problem and constraints. I have a picture in my mind of all the edge cases and branching that can happen, which most of the time allows me to write correct code without bugs.

When I review code, I am completely unable to get this mental picture, and I usually miss a lot of issues that I would otherwise have avoided.

Which is why I don't see the point of Copilot.

comment 2y ago · link · parent

In my experience, most language developers don't even know how arrays/slices/lists works, or that they are reallocating stuff all over the place in ridiculously inefficient ways. They don't even know the difference between length and capacity.

It's nice to try to create awareness however, but the heap/stack is not the first thing that would come to my mind tbh.

comment 2y ago · link · parent

> Quest has 6+ million monthly active users. Steam 2-3 million.

There is no way that those numbers are right.

EDIT: Yeah, Steam has 120 million active users per month. And the 6+ million users for Quest is from 2022, during the pandemic and metaverse bubble. Would be curious to know the trends for 2023 and 2024 thought.

comment 2y ago · link · parent

By that definition, nothing is a choice because nothing is 100% certain in life.

Even for something as simple as deciding to "go shopping" tomorrow, there is some probability that it does not happen. But it is still my decision to do so.

The only way to never fail is to never try. But it means you will never win either.

comment 2y ago · link · parent

"your work" means "your responsibility" or "your part of the deal" here, not "you get legal ownership of the project".

The premise of a working contract being that you have to work in exchange for a salary...

comment 2y ago · link · parent

As someone who cares about his work, has strong professional ethics and wisely chooses his employers to not end-up in such environments, no I don't.

The worst places for me are precisely those where you can get by with 1~2h of work a day because no one cares and the company's culture does not value the time and skills of his workers.

comment 2y ago · link · parent

LLMs does not store information though.

Language is a tool to convey information. LLMs are only about the language, not the information.

comment 2y ago · link · parent

Not bad, so instead of having people spend time making powerpoints and then give presentations while everyone else pretends to listen, now the presenter can auto generate it while everyone else pretends to have clicked the link.

This is a more efficient way to waste time, it might actually succeed in many companies (until Google kills it anyway).

comment 2y ago · link · parent

Someone probably wanted a promotion, or to use the latest shiny framework rather than an existing codebase.
12345
15