1,107 karma · joined Mar 22, 2019 (7y ago) · 450 submissions
213.
Introduction to GPUs with OpenGL(engineering.monstar-lab.com ↗)
155 points · by Seb-C · 4y ago · 47 comments
comment 4y ago · link · parent
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
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
Similar to a link targetting an iframe, but without an actually ugly iframe.
comment 4y ago · link · parent
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
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
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
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
(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
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
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
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
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
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
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.