HNHacker News
TopNewBestAskShowJobs

marwis

373 karma · joined December 26, 2019

submissionscomments
marwis··on Don’t call it a comeback: Java is still champ
What are the advantages of isolates vs running multiple JVM processes other than avoiding slightly higher memory usage and some small context switch overhead on IPC - which should be negligent as presumably communication between isolated components would be coarse grained?
marwis··on Embed is in C23
You can do it with custom elements, e.g.

      <dom-calc>
        const p = document.createElement('button');
        p.innerText = 'hi';
        p.onclick = () => alert('hi');
        return p;
      </dom-calc>

For something like:

  class CalcElement extends HTMLElement {
    connectedCallback() {
      setTimeout(() => {
        const fn = new Function(this.innerText);
        this.replaceWith(fn());
      }, 0);
    }
  }

  customElements.define('dom-calc', CalcElement);
marwis··on GoodbyeDPI: Deep Packet Inspection circumvention utility
Would it really help in this case? I believe the HLK-signing is enforced by Windows, not UEFI. Uploading your own cert to UEFI won't change that.
marwis··on Embed is in C23
It's always been possible:

<script>document.write(`<p>foo</p>`)</script>

marwis··on Node-Red 3.0 Released
How do you access Facebook event calendar from Node-RED (or anywhere else)?
marwis··on Show HN: Simple games ported to Scala 3 – Try them in the browser
Would be nice to see the diff vs Scala 2
marwis··on Why I Don't Like Golang (2016)
Most of JetBrains platform is open source (Apache license). Only the language plugin is proprietary.

It's not perfect but better than your typical closed source software.

marwis··on TinyPilot: Build a KVM over IP for Under $100
Is there anything like that that supports 4K60 with minimal lag?
marwis··on MVC frameworks aren't dinosaurs but sharks
Isn't option 1 more like compile .NET interpreter to WASM and ship with your dlls resulting in huge download and terrible runtime performance?
marwis··on V86: x86 virtualization in the browser, recompiling x86 to WASM on the fly
I tried WebVM but it feels a bit slow. Do you think performance could be improved by supporting native wasm binaries? Something like wasm-*-linux compilation target.
marwis··on Web scraping via JavaScript runtime heap snapshots
Not aware of any actual grpc websites but given grpc-web has 6.5k stars on github something must be out there.

Google's websites frequently use binary-like formats where json is just an array of values with no properties, and most of these values are numbers. See for example Gmail.

marwis··on Web scraping via JavaScript runtime heap snapshots
This sadly does not help if js code is minified/obfuscated and data is exchanged using some binary/binary-like protocol like grpc. Unfortunately this is increasingly common.

The only long term way is to parse visible text.

marwis··on Snap launches its first drone
Are there no better digital stabilization algorithms? This seems like it could be fixed in post processing on your phone/cloud.
marwis··on Show HN: Xlibe – A serverless Xlib (X11) compatibility layer for Haiku
Similar thing but for Win32 - http://libw11.sourceforge.net/
marwis··on Show HN: Xlibe – A serverless Xlib (X11) compatibility layer for Haiku
Might be useful for porting some classic X programs to Web.
marwis··on A Dotfile History
Good old RCS is pretty useful for versioning random files:

ci -l .yourfile

And that's it. No setup necessary!

If you ever outgrow it, you can easily convert to more modern version control.

marwis··on Why Remotion is a native macOS app, not Electron
One could say both are native Windows UI toolkits. Kind of similar to when Apple shipped Carbon and Cocoa.
marwis··on Why Remotion is a native macOS app, not Electron
Which parts exactly? If anything explorer.exe has never been more native (it used to have a lot of HTML elements in Win98 to XP). I think new control panel and start menu are WinUI based.
marwis··on Why Remotion is a native macOS app, not Electron
And OneDrive is in Qt!
marwis··on The end of the nice GTK button
Indeed Windows sucks but PowerToys has a much faster launcher replacement on alt+space
marwis··on If you’re not using SSH certificates you’re doing SSH wrong (2019)
You can password protect them and optionally load them to agent at logon.
marwis··on KeePassXC 2.7.0
I need to integrate 3rd party custom OTP. In KeePass2 this can be done with plugins or even easier with {CMD} placeholder. KPXC supports neither :(
marwis··on Microservices: Why Are We Doing This?
OSGi
marwis··on Tell HN: Gnome on Wayland Is Amazing
If there is no way to tell Wayland application that it should scale by fraction then application can't render with such scale, no? This leads me to assumption that fractional scaling happens at compositor.

By native scaling I mean absolutely no bitmap scaling. If rendering happened at target scale then all pixels would match grid and no artifacts would be possible. I can't even imagine how ClearType could work with bitmap scaling when it targets individual subpixels.

I think people have wildly different sensitivity to resolution. I know some that can't tell difference between 4k and 1080p and 1080p scaled on 4k screen. Some crazy people even think MacOS has good font rendering.

marwis··on Tell HN: Gnome on Wayland Is Amazing
Interesting. I gave up on Gnome/Linux long time ago but was watching a relevant wayland bug [0] in the hopes it will be fixed one day but it seems to be still open. Maybe I've been watching a wrong bug?

[0] https://gitlab.freedesktop.org/wayland/wayland-protocols/-/i...

Update:

I can still see open bugs such as https://gitlab.gnome.org/GNOME/mutter/-/issues/1135. Are they outdated?

marwis··on Tell HN: Gnome on Wayland Is Amazing
Unless something changed Wayland does not support native fractional scaling and instead renders at nearest higher integer scale then does bitmap scaling down giving blurry output (compared to native fractional scaling as in Windows).
marwis··on A brief reflection on Mac software stagnation
Not sure why people keep claiming this but it's not true. Attach devtools and you'll see everything is divs and spans, including source code. The only canvas element is minimap.
marwis··on ntfs2btrfs: In-place conversion of NTFS filesystem to Btrfs
The backup is a reflink copy as per readme - that means data blocks are shared with live filesystem and don't occupy extra space but there's probably quite a bit of metadata.
marwis··on The decline and fall of Java on the desktop
Windows LnF hasn't looked native since WinXP and never felt native. Lots off things are off by few pixels, there are no animations or shadows, no context menus etc.

At least in Electron textboxes have standard context menu and drag and drop.

marwis··on What's Going on Inside Your Node_modules Folder?
Nuget has the same issue - it can execute arbitrary code during installation. Perhaps it's being exploited already but nobody noticed?

Regardless, even in case of package managers that don't have install scripts (e.g. Maven) one could simply insert malware directly into library code and have it execute whenever you run tests or your application.

The only true solution would be some sort of sophisticated sandboxing or sophisticated malware detection or distributed code review.

← PreviousPage 8 of 11Next →