HNHacker News
TopNewBestAskShowJobs

smaddock

1,128 karma · joined September 28, 2013

https://samuelmaddock.com

sam at samuelmaddock dot com

@SamuelMaddock

submissionscomments
smaddock··on WKWebView, an Electron alternative on macOS/iOS
This seems to be changing as of recently this year. There have been many security-related changes including making options such as Node integration disabled by default [1]. Support for renderer process sandbox is also available [2].

[1] https://github.com/electron/electron/pull/14284

[2] https://electronjs.org/docs/api/sandbox-option

smaddock··on Electron 4.0.0
Have you seen Carlo [1] yet? It's the closest thing available to what you're describing. Main drawback imo is that it's Chrome-only.

[1] https://github.com/GoogleChromeLabs/carlo

smaddock··on Carlo – Web rendering surface for Node applications
Chrome Apps are deprecated [1] for all platforms except Chrome OS.

[1] https://blog.chromium.org/2016/08/from-chrome-apps-to-web.ht...

smaddock··on Show HN: WebRTC signalling data using QR codes
I created swarm-peer-server [1] as a way to connect to specific peers over a DHT using a public key known ahead of time. I use this in a networked app I've built to perform WebRTC signaling between peers [2]. The networking and crypto works using modules popular in the Dat Project community.

The challenge is that multiple peers could announce under the same hash on the DHT. Thus I have code to perform a handshake to verify peers upon connecting.

Another project worth mentioning is hyperswarm [3], also created by the Dat Project folks. It's planned to be their new method of connecting peers on a DHT in Beaker Browser.

[1] https://www.npmjs.com/package/swarm-peer-server

[2] https://github.com/samuelmaddock/metastream/blob/master/app/...

[3] https://pfrazee.hashbase.io/blog/hyperswarm

smaddock··on Announcing Hyperswarm
I see that the DHT relies on a package called 'ipv4-peers' [1]. Does it also support IPv6 peers?

I know there's a BitTorrent BEP for IPv6 support, but I'm not quite sure if that relates to this DHT implementation.

[1] https://github.com/hyperswarm/dht/blob/master/index.js#L4

smaddock··on Electron 3.0.0-beta.1 – Chrome 66 and Node 10
There's some discussion about this in the Electron GitHub issues, but development is fairly inactive afaik.

https://github.com/electron/electron/issues/673

smaddock··on Ask HN: How can Microsoft improve/evolve electron, now that they own GitHub?
There are a few Microsoft employees already working on improving Electron. Notably helping keep it up-to-date with Chromium [1] (current release at v61—6 versions behind stable).

Security is an area that could use a lot of improvements. Along with keeping Chromium up-to-date, sandboxing still needs more work [2].

Personally, I'd like to see greater support for Chrome Extensions instead of Electron's preload scripts. They're much more powerful in terms of controlling when scripts are run.

[1] https://github.com/electron/electron/pull/12477

[2] https://github.com/electron/electron/issues/6712

smaddock··on Subscription Hell
What you're describing sounds similar to Basic Attention Token [1] which is used by Brave browser [2].

[1] https://basicattentiontoken.org/

[2] https://brave.com/

smaddock··on Ask HN: Recommendations for Peer to Peer Frameworks?
If you plan on having any collaborative editing features, Yjs [1] is a p2p framework utilizing CRDTs with support for IPFS.

[1] https://github.com/y-js/yjs

smaddock··on If SoundCloud Disappears, What Happens to Its Music Culture?
Take a look at LolaShare [0]. It's a decentralized audio publishing and streaming application which uses webtorrent.

[0] https://github.com/LolaShare/LolaShare

smaddock··on Google Web Fundamentals: Monetization
Sure, it's for a game mod I created called Cinema [1]. Here's the actual page which I display to the player when they're going to request a video to be played in-game: http://cinema.pixeltailgames.com/search.html

[1] http://steamcommunity.com/sharedfiles/filedetails/?id=118824...

smaddock··on Google Web Fundamentals: Monetization
I have a landing page for an application I've made which users then click through to navigate to other websites. This single page gets around 1-2 million views a month and I'd like to place an ad on the page if possible. However, Google AdSense denied me being that the page doesn't actually have enough content for them to automatically determine relevant ads.

What other options do I have to get an ad placed onto the landing page?

smaddock··on Google offering $1M prize for a much smaller power inverter
This is slightly incorrect as the problem only affects Google Chrome on Windows. Also, the Chrome team is actively working on this problem as seen in in its issue report [1]. The progress can be seen by launching Chrome Canary with the --enable-direct-write flag. chromestatus.com indicates that its scheduled to be released in M36.

[1] https://code.google.com/p/chromium/issues/detail?id=25541

smaddock··on Rtc.io – Open source WebRTC library
http://peerjs.com/ is the best library I've found for WebRTC thus far. Their documentation is fair, there's decent support for DataChannels and they've also open sourced a signalling server. https://github.com/peers/peerjs-server
← PreviousPage 3 of 3