Better HN
topnewbestaskshowjobs
Log inSign up

Seb-C

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

Submissions

comment 4y ago · link · parent

Sure, there are lots of differences between OpenGL and OpenGL ES, but the fundamental logic and architecture is pretty much the same.

comment 4y ago · link · parent

That's pretty nice. I focused on the practical parts in my article, but diving into the rasterization process itself is also very interesting. Thanks for sharing!

213.

Introduction to GPUs with OpenGL(engineering.monstar-lab.com ↗)

155 points · by Seb-C · 4y ago · 47 comments

comment 4y ago · link · parent

Those links have been usable again since I installed this extension (automatically redirects to Nitter, which is an alternative client for Twitter).

https://chrome.google.com/webstore/detail/nitter-redirect/mo...

Feels like déjà-vu with 'old twitter redirect', but it works wonderfully for me.

215.

Redirect from Twitter to Nitter (Chrome Extension)(chrome.google.com ↗)

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

comment 4y ago · link · parent

Yes, that's the same core idea. I mean, there are plenty of solutions in JS, and it's a one-liner with fetch anyway, but having a native way would have been cool.

I was thinking about something more like `<a href="..." target="#someDiv">`.

That could be some handy (albeit rudimentary) foundation to build maintainable sites on a static server without any JS or build pipeline.

comment 4y ago · link · parent

What makes you think that my comment wasn't humorous?

comment 4y ago · link · parent

"very trivial"

comment 4y ago · link · parent

I've been thinking like forever that if we had a standard, pure-html equivalent to jQuery's `$('.foo').load('url...')`, we could have a lot of great sites without any JS at all (I'm not talking about the minority of legit cases where react/vue/angular shines).

Similar to a link targetting an iframe, but without an actually ugly iframe.

comment 4y ago · link · parent

My biggest annoyance so far is the inability (and inconsistency) to have a one-liner to get a pointer to something else than a struct.

I can write x = &Foo{...} but somehow x = &42 and x = &foo() are not allowed, which forces me in some cases to declare useless variables that hurts readability.

comment 4y ago · link · parent

If you had got an NFT for your pizza, this wouldn't have happened since this would prevent them from... Oh wait...

comment 4y ago · link · parent

At least until some manager decides to revamp the UX to get a promotion, thus killing it.

I wonder how long it will take to happen.

comment 4y ago · link · parent

I've had some issues lately, but after a reboot it seems to work again.

Unless maybe if you need the car navigation, google maps seems to work well as a progressive web app (and since it's sandboxed by the browser, it can only use the actual GPS).

On the last days I'm actually more pissed-off with the update of Google translate than Google maps.

comment 4y ago · link · parent

I actually tried wasm a couple of months ago with Golang in the browser, and was very disappointed.

It is indeed way slower that JS (and yes, I tried to care about performance and understand what was going on, removed any data exchange with the browser and even ran the tests without any dev tools opened - just in case).

Not even mentioning the fact that to use it, you need to include and hardcode a dubious JS file that does not even integrate properly with npm or any build system. And that the standard wasm way to exchange variables and events is not supported (instead you are forced to use some automagic and slow DOM bindings).

The performance with alternative compilers (tinygo) was a bit better on the performance side, but the integration was still disappointing and unsatisfying.

comment 4y ago · link · parent

Reminds me of a senior tech lead candidate I interviewed a few months ago who was like "I don't know the answer, but can you give me a couple of minutes to sort on my thought?". Then very obviously started searching on internet (thinking he was hiding it well enough...).

The question was along the lines of "how do you typically protect your code against sql injections?" (in a language and framework agnostic context)

comment 4y ago · link · parent

I know such recruiter, and like 90% of the engineers I know in my company were hired through him.

I had a very good experience as a candidate as well.

comment 4y ago · link · parent

Not even mentioning that while theoretically valid, it can break things such as signed urls.

comment 4y ago · link · parent

Exactly. The right way in this example would be like this (where '>' is a tab and '_' is a space).

(For a better readability and ease of edition, I however prefer to actually indent arguments (each on it's line) rather than the suggested alignment, as I show in the second function)

    class Something {
    >const obj = {
    >>somePropName: 1,
    >>xyz_________: 2,
    >};
    >function foo(arg1, arg2, arg3,
    >_____________arg4, arg5, arg6) {
    >>code
    >}
    >
    >function bar(
    >>arg1,
    >>arg2,
    >>arg3,
    >) {
    >>code
    >}
    }

comment 4y ago · link · parent

Would be a good idea to add a comment explaining the situation, so you don't have to waste time again on it.

comment 4y ago · link · parent

Except that chickens (as well as most cattle and pets) have been created by mankind over thousands of years of genetic selection.

comment 4y ago · link · parent

But nobody defends using tabs for aligning code. The debate is about indentation only.

Tabs are not suited to aligning code, but ideal for indentation.

comment 4y ago · link · parent

I often read people mentioning this ridiculous affirmation about pedophilia in Japan, but I'm still not sure where it comes from.

comment 4y ago · link · parent

> This is a pretty recent development in Japan's history and the world hasn't forgotten.

What do you mean? No, it's not. With the exception of WW2, Japan has seen way less conflicts and very little wars in it's history compared to other countries.

As for your link, I cannot access the source, but your comment seems biased by the meaning of marriage in the first place.

Basically, in Japan getting married means starting a family. If you don't plan to have children, you usually don't get married. Because if you remove the cultural and sentimental value given to the act of being married in the west, there is not much practical advantage or benefit to it in the first place.

comment 4y ago · link · parent

I have had this very same idea a while ago. I actually like it, and I am probably not the only one, but I could not find anything remotely related to it.

Do you know if this idea/theory has a common name?

comment 4y ago · link · parent

Absolutely agree. The point of microservices is to separate the concerns from an organizational point of view, not for technical reasons.

Most of the advantages attributed to microservices can also be achieved with a monolith architecture using a sane and rigorous design.

I find it frustrating at work when I see teams of 50 people having issues coordinating work because they have a monolith, while we often unnecessarily spread a team of 5 people among 10 microservices.

236.

List of TCP and UDP port numbers(en.wikipedia.org ↗)

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

comment 5y ago · link · parent

> Unlike Germany, Japan never faced up to its WW2 legacy. WW2 is barely taught in the Japanese education system

What is your source for this? I have openly talked about this with Japanese people because I was curious to know their own biases (which I observed in every country) about this topic.

But what they said to me is that it is taught properly. They definitely talk about their own crimes and mistakes.

Far more importantly, they also speak about the whole political picture that led to the conflict, and that includes not only the mistakes of Japan, but also most importantly those of Europe and America.

comment 5y ago · link · parent

Thank you for this comment. It reflects quite well my experience and feelings.

As a foreigner that is really interested in the culture and worked hard to learn the language as well as toward my integration, my experience has been completely different that what you often can read on internet.

Most expat communities (including Reddit) are just incredibly negative and toxic because they live in a 'foreign bubble' that, while physically in Japan, has nothing to do with it.

comment 5y ago · link · parent

50 minutes feels pretty standard to me here. That said, my 45 minutes of train in Tokyo are far more comfortable than the 20~30 minutes I once had in France.

The trains here are quiet, safe, does not stink, the air is conditioned in both winter and summer, the mobile network is always available and it's driven carefully.

I can just spend my time carelessly on my phone reading stuff (and HN!) or watching videos.

comment 5y ago · link · parent

> There is no reason in 2021 for to have such terrible discoverability. If it's such a great tool, why did no one see fit making it progressively learnable from within the tool itself?

vim comes with a tutorial that teaches all the basics from inside vim... It's installed pretty much everywhere, you just have to run vimtutor.

> I see people talking about using vim like some other talk about going to the gym. Great abs, fast editing, but... do you even code, bro?

Why the condescending tone?

Yes I do code, everyday and full time, and vim absolutely increased my focus and productivity.

There is way too much to talk about in a single post, but stuff like macros, showing multiple files at once, (tabs is not the natural way of doing things in vim), viewing multiple parts of the same file at once the native integration with the terminal (just ctrl-x to go back to the terminal and fg back to vim, or execute any command with :! ) are great for productivity when you have to deal with multiple tools.

> High-level language tooling like refactoring and static analysis are way, way more important for medium+ size projects productivity.

I agree, and that's why I use vim. I can do all of that more efficiently in vim because the refactoring tools are way more powerful, and everything is macro-able.

> These are much better served by an actual IDE than some one-off integration with an obtuse editor deriving macho pride from it's 1970's TTY-limited semantics.

Condescending and even insulting tone again... great.

FYI, vim has all the features of any modern IDE. The opposite is not true however.

1
789
15