HNHacker News
TopNewBestAskShowJobs

tim1994

89 karma · joined February 24, 2018

https://github.com/tim-we/ timw-public@outlook.com
submissionscomments
tim1994··on WebGPU – All of the cores, none of the canvas
I'd also be interested in details on this but I assume the gl.enable() API changes fundamental things about the rendering pipeline. It allows enabling things like depth testing and stencil (both involve an extra buffer) and face culling (additional tests after vertex shader). For blending in particular I think it requires the fragment shader to first read the previous value from the frame buffer. Changes this stuff is probably not a trivial operation and requires a lot of communication with the GPU which is slow (just a guess).

If you want to change blending for each draw call you can change the blending function or just return suitable alpha values from the fragment shader.

tim1994··on Losslessly Optimising Images
I am a bit surprised that no one has mentioned https://squoosh.app/ yet
tim1994··on Modern JavaScript Tutorial
Have you considered running "untrusted" code in a worker? That way the code can not interfere with the global scope.
tim1994··on Making JavaScript run fast on WebAssembly
Thanks for building this, very cool project. I am considering using this to simulate web extensions for some automated analysis.
tim1994··on Modern Javascript: Everything you missed over the last 10 years (2020)
I just wish those methods were available on iterators (and return iterators when called on arrays) and a collect method that creates a new array (a bit like Java). That would reduce the overhead and keep the advantages of this functional style.
tim1994··on ClearURLs – automatically remove tracking elements from URLs
AFAIK it is not possible to get access to only the URL. I think the "tabs" permission triggers the "Access your data for all websites" warning. The "tabs" permission is required to get a tabs URL and change it.

Discussion about ClearURLs permissions: https://gitlab.com/KevinRoebert/ClearUrls/-/issues/159

Extension permissions: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...

tim1994··on Show HN: hackernews.roundtable.audio turns HN posts into live audio discussions
Can you elaborate?
tim1994··on GNOME has no thumbnails in the file picker and my toilets are blocked
Yes this super annoying. Its almost daily I run into that issue. The contents of filename input are even selected.
tim1994··on Massive spying on users of Google's Chrome shows new security weakness
AFAIK this is not possible. I don't think you can block request made by other extensions. I assume the API you were referring to is https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/Web...
tim1994··on Zoom iOS app sends data to Facebook even if you don’t have a Facebook account
There is, Exodus Privacy (see my reply on the parent comment)
tim1994··on Zoom iOS app sends data to Facebook even if you don’t have a Facebook account
There is another service that does this for Android apps:

https://reports.exodus-privacy.eu.org/en

It is also build into the Aurora Store (alternative Google Play Store client for Android).

tim1994··on Google Fonts Analytics
I think this should be added to the Decentraleyes extension (https://decentraleyes.org) which does this for popular JS frameworks. There is already an issue for this: https://git.synz.io/Synzvato/decentraleyes/issues/387
tim1994··on Ask HN: What are weird and/or novel ways to do web UIs?
Perhaps. Unfortunately it only works with Chrome or Chromium based browsers, it is barely usable in Firefox.
tim1994··on Sites with dumb password rules
DKB (another German bank) has the same 5 digits rule...
tim1994··on Math Basics for Computer Science and Machine Learning [pdf]
I think it is a matter of perspective. The book covers stuff you learn in the first two semesters when studying maths. So for someone who studied maths (probably the author) these are the basics.
tim1994··on React Native Open Source Update
Sounds interesting but why do you have to sign up for this?
tim1994··on Body-painting protects against bloodsucking insects
Last year, the YouTube channel Veritasium did a video about it: https://youtube.com/watch?v=38gVZgE39K8
tim1994··on Show HN: I taught my little brother JS, and he made this videogame in a week
On my laptop it is about 30% slower (tested with Firefox 64). However I agree, this was not very good advice for someone who just started programming with JS...
tim1994··on Show HN: I taught my little brother JS, and he made this videogame in a week
Also never use Math.pow for squaring numbers (used in the distance function) because it is significantly slower as it is designed for abitrary real exponents, not just integer ones. Cannot be learned soon enough IMO :)

Still a very good job for just a week of coding though.

tim1994··on Any positive number can be written as a sum of three palindromes
Well it proofs the existence and there are many special cases they consider. If the number is a palindrome already there are many possible solutions. Using zeros is a trivial an the simplest solution. Using anything else would be abitrary and longer too.
tim1994··on Microsoft intercepting Firefox, Chrome installation on Windows 10 Insider build
> Firefox has consistently been clamping down on user freedom

Can you give an example? While I personally don't agree with everything Mozilla has done in the last couple of years (like the native pocket integration for example) I do not agree with that statement.

tim1994··on TypeScript 3.0
Well it really depends on the size of the project. For small project I agree but for larger projects Typescript really helps to produce better and more robust code (and also faster if it's well integrated into the editor like VS Code). I am currently rewriting a Firefox Extension in Typescript that started as a simple script and grew in complexity (quite a bit) to make it easier for others to contribute (it's open source) and understand the code and I wish I had started that way, it would have saved me quite a bit of work by now.
tim1994··on Who Left Open The Cookie Jar?
It depends. Extensions cannot modify or do anything with the content of a PDF tab (I wanted to make a PDF dark mode extension). I wish there were special permissions for that.
tim1994··on “Stylish” browser extension steals all your internet history
Are you sure about that? AFAIK there is just an automatic validation system. I am an extension author myself and this is from a recent update approval email:

"This version has been screened and approved for the public. Keep in mind that other reviewers may look into this version in the future and determine that it requires changes or should be taken down. In that case, you will be notified again with details and next steps."

Perhaps this also depends on the number of users...

tim1994··on Ask HN: What's the strangest place you wrote code?
Did you make it?
← PreviousPage 2 of 2