Better HN
topnewbestaskshowjobs
Log inSign up

Seb-C

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

Submissions

comment 1y ago · link · parent

I'm working on a universal tool to create and print custom dust jackets.

I like collecting books and have lots of series, but editions and cover/spine designs changes all the time for no good reason. Especially for long series it's near-impossible to get a collection with consistent styles, which I find frustrating. And when buying rare or old second-hand books online, it's even worse.

The app will allow you to enter your book information (title, author, size, summary...), then choose the design/layout. You will then have the option to print it by yourself (for free - if you can find a big enough printer) or get it printed by a professional.

comment 1y ago · link · parent

It is well understood already that the number of autistic people is not actually increasing. What is increasing is our understanding of it and the number of diagnostics.

The fact that high functioning people like Asperger got merged with it and changed to a spectrum is precisely science at work, achieving to improve our understanding of the phenomenon. We previously believed that only the extreme cases were autistic, but we now understand that this limit was arbitrary and wrong, because autism is a broader spectrum of people with a wide range of possible characteristics.

Autism is not a disease, it's a neurodivergence, and it is very important to understand that autistic people are not broken, but simply function differently. The proof being that outside of a minority of extreme cases, autistic people does not have issues communicating or socializing with other autistic people.

Trying to categorize people as "normal" and "abnormal" and then pretending to "fix" the abnormal ones is dangerous and drifts towards eugenism, because there is not a single definition of normal, and there is probably not a single person on earth that is "normal".

If 97% of the population was autistic, then autistic people would not have any issues. The remaining 3% of what is currently considered neurotypical would be the ones having difficulties socializing, communicating and experiencing severe anxieties and psychological problems due to it.

This is why the solution is not to "fix" autism, but to help them find an environment where they can strive, be understood and live comfortably.

63.

JavaScript Font Picker(jsfontpicker.com ↗)

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

comment 1y ago · link · parent

Natural language is a terrible interface to interact with a computer, worse than any UI or programming language.

LLMs are more like replacing automobiles with mechanical horses. You fundamentally cannot get it significantly better.

comment 1y ago · link · parent

There are great and normal juniors as well.

Junior does not mean incompetent, it means unexperienced.

comment 1y ago · link · parent

Even if they did allow that, a big part of the budget would probably go into another useless UI revamp.

comment 1y ago · link · parent

> no one is willing to invest in the future and build new things.

The markets have been so warped by the power of existing monopolies that most investors are only interested in trying to find the next golden goose (as we can see in the crypto, AI, metaverse and countless other bubbles).

comment 1y ago · link · parent

I have a 10 days-old baby and I've learned a lot about their communication lately.

It is true that there are many other cues, like opening their mouth, trying to suck or lick anything around. My son gets agitated in his sleep quite some time before he actually starts to scream.

Interestingly, in many languages it is very common (or even normal) to say that a baby is "crying". But babies are not actually crying. There is no tear or sadness involved. It's a primitive form of communication, aimed at signaling a need and creating a sense of urgency to caregivers, but it's different from crying.

I'm still very new to this, but there are also different nuances and pitches within their communication. "I am hungry" and "I am too cold and that makes me feel in danger" are notably different and achieves to communicate a very different sense of urgency.

comment 1y ago · link · parent

I have a 10 days old baby, and this comment resonates a lot with the experience of bathing him.

He is very calm and seems to appreciate the experience, until it's time to get out of it.

We do our best to keep him warm and heat the room, but it does not seem to ever be enough to ease the ending.

comment 1y ago · link · parent

AFAIK, Kagi is 100% bootstrapped and do not owe anything to any investor.

comment 1y ago · link · parent

Now we need to make dang as a service.

72.

List of Lists of Lists(en.wikipedia.org ↗)

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

73.

"Write-Only" Documents(doceo.co.uk ↗)

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

74.

Monotropism(en.wikipedia.org ↗)

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

comment 1y ago · link · parent

I'm reusing the alpha channel indeed. And I reverse it for the innermost side of the border.

    const float MIN_ALPHA_THRESHOLD = 0.3;
    const float MAX_ALPHA_THRESHOLD = 0.7;

    [...]

    if (fragmentColor.a < MIN_ALPHA_THRESHOLD) {
        // Outer edge of the border
        float outputAlpha = fragmentColor.a / MIN_ALPHA_THRESHOLD;
        outputColor = vColor * outputAlpha;
    } else if (fragmentColor.a > MAX_ALPHA_THRESHOLD) {
        // Inner edge of the border
        float outputAlpha = 1 - ((fragmentColor.a - MAX_ALPHA_THRESHOLD) / (1 - MAX_ALPHA_THRESHOLD));
        outputColor = vColor * outputAlpha;
    } else {
        // "Inside" of the border
        outputColor = vColor;
    }
So if the border goes like transparent->opaque, I divide it into segments using a threshold (transparent->min_threshold->max_threshold->opaque) and change the alpha values:

- Smoothen out the transparent->min_threshold segment, so that it goes linearly from a=0 to a=1

- make opaque (a=1) the min_threshold->max_threshold segment

- Revert and smoothen out the max_threshold->opaque segment so that it goes linearly from a=1 to a=0

comment 1y ago · link · parent

For my game Astral Divide, I ended-up making a technique that is not listed.

It's similar to the one described as "Blurred Buffer", except that instead of doing a blur pass, I'm exploiting the borders created by the antialiasing (I think via multi sampling, or maybe texture filtering).

I draw the object in plain opaque white on a transparent black background, and in the fragment shader I filter what does not have a fully opaque or transparent alpha channel (according to some hardcoded threshold). It gives decent enough results, it's cheap performance-wise and is very simple to implement.

comment 1y ago · link · parent

That's why I don't answer LinkedIn recruiters anymore, unless they can show me a clear opportunity that matches my profile.

Every time I answered their bait and they "just wanted a quick phone call", it was clear that they only were interested in filling their database.

Then I get spammed by them with irrelevant automated offers forever, unless I block them completely.

comment 1y ago · link · parent

I want to seriously boost my Japanese vocabulary and kanji knowledge through reading. I'm already fluent, but my goal now is to reach a level where I feel comfortable and legitimate to request naturalization.

comment 1y ago · link · parent

Same here but within a few weeks :)

comment 1y ago · link · parent

I'm curious: what language are you working on where ctags are useful?

I spent years fighting with those to try to have a satisfying setup that worked, but found ctags to be high maintenance (always breaking in some way, not context-aware on untyped languages, index getting obsolete quickly and taking forever to update...), and I never looked back since trying coc.vim.

comment 1y ago · link · parent

LSPs are useful because they are context-aware and understand the syntax.

But that advantage becomes a weakness when you need more complex text replacement or specific repetitive actions.

That is why I use vim with an LSP, I find it to be the best of both worlds (especially the macros in vim): a smart but limited tool, and a dumb but powerful one.

Maybe we'll get a smart and powerful one some day (but I doubt it).

comment 1y ago · link · parent

Sounds like those developers were just bad, regardless of the tools.

I expect that especially hardcore and purist Vim users (the likes that does not use any plugin or configuration) should know to use macros and other available tools (not even mentioning bash) to make the work faster.

With enough experience on those, you can get a level of productivity that is not much different than IDEs like IntelliJ.

comment 1y ago · link · parent

I'd rather have this than a variable called `l`.

comment 1y ago · link · parent

I would not call that "awesome", that's just another minor update about trivial stuff rather than truly addressing the major issues and complaints about the language and ecosystem.

comment 1y ago · link · parent

LLMs are not the right tool for the job, so even if some marginal bits can be improved, it fundamentally cannot "get better".

The job of a software engineer is to first understand the real needs of the customer/user, which requires a level of knowledge and understanding of the real world that LLMs simply don't have and will never do because that is simply not what it does.

The second part of a software engineer's job is to translate those needs into a functional program. Here the issue is that natural languages are simply not precise enough for the kind of logic that is involved. This is why we invented programming languages rather than use plain English. And since the interface of LLMs is by definition human (natural) languages, it fundamentally will always have the same flaws.

Any precise enough interface for this second part of the job will by definition just be some higher level programming language, which not only involves an expert of the tool anyway, but also is unrealistic given the amount of efforts that we already collectively invest into getting more productive languages and frameworks to replace ourselves.

comment 2y ago · link · parent

> The ideal API would be one that is both high level but allows fine grained control... but we don't have one yet.

What kind of fine grained control are you talking about here? I never felt like I was missing anything when doing even complex SQL (unless I am forced to use a crappy MySQL, which problems are not inherent to SQL itself).

Quite the contrary actually: despite having this amazing high level of abstaction, most developers are ignorant or don't care to properly index the data, add integrity constraints, manage the locks or think about transactions.

In 99% of the non-SQL code that I see, developers don't even go further than nested loops containing IOs, so I don't think that letting them decide which tree/trie is appropriate for a user case (for example) would help in any way.

comment 2y ago · link · parent

The problem is that Go is not designed to be a simple language for it's users, it's designed to be a simple language to implement for it's maintainers.

In my opinion, a simple language should be highly consistent (have a few rules, but which are universal and consistent everywhere). Instead we have a language with weirdnesses, inconsistencies and workarounds all over the place.

A good example is type elision: it's available when declaring arrays, slices and maps, but not for structs. Allowing that would have several benefits in terms of readability, and also allow named parameters via anonymous struct arguments (which would greatly improve the design compared to the ugly workarounds that are currently used).

comment 2y ago · link · parent

Yes, I've also grown tired of this toxic mindset, as well as the whole "idiomatic Go" dogma that is very often an excuse for poor engineering practices.

comment 2y ago · link · parent

I agree about implicit exceptions, but I think that there is a sweet spot with explicit exceptions like Swift (and maybe Java): where you cannot not-handle one, it is part of a function's signature, and the syntax is still compact enough that it does not hurt readability.

comment 2y ago · link · parent

"Do what I say, not what I do" is almost a design guideline of Go at this point, there are so many inconsistencies like this in the language design.
12345
15