HNHacker News
TopNewBestAskShowJobs

theocs

202 karma · joined April 19, 2014

Developer

[ my public key: https://keybase.io/cfelde; my proof: https://keybase.io/cfelde/sigs/gKZD_5YHDIiy8ifDLGRJVvvQKS6Xel-JWAgkTZNQ778 ]

submissionscomments
theocs··on In Defense of Proof of Work
Even if all PoW energy came from renewable sources, it's extremely wasteful and I'm sure we could have used that energy on something more productive.

That's not to say the allocation mechanism in PoW isn't interesting, but that's not really good enough in itself.

I've been experimenting with energy limited PoW, something called NuPoW [1], that reduces the reward if too much energy is collectively used. But this only works if you outsource the security to an underlying chain.

[1] https://nupow.fi/whitepaper/

theocs··on Ethereum 2.0 launches
They trade a token, sometimes called a stablecoin, that represent BTC as its underlying value.

Primarily two extremes for how this is done: Centralized, like WBTC (https://coinlist.co/help/what-is-wrapped-bitcoin-wbtc), and decentralized, like tBTC (https://defirate.com/tbtc/)

theocs··on Ethereum 2.0 launches
I think the wrapped BTCs, especially the decentralized approaches to it, are clever links that allow for the transfer of BTC value over to the Ethereum ecosystem.

It's a way of selling BTC for other tokens, extracting and removing its value over time, and instead investing it into DeFi and similar.

theocs··on Only 9% of visitors give GDPR consent to be tracked
Or I just right click open it in private mode
theocs··on Reddit rolls out community currencies on Ethereum
Given that these tokens follow the ERC 20 standard, I don't see why other clients can't just integrate support if they want.
theocs··on Show HN: Relaunching my algorithmic stock picking website
Any feedback welcome! And if you have questions happy to answer and it will help guide me towards what blog posts to focus on next :)
theocs··on Evaluating ClojureScript in the Browser
If you want to build a REPL in the browser I'd highly recommend checking out replumb

https://github.com/ScalaConsultants/replumb

theocs··on Show HN: ClojureScript REPL within Excel
You're right about the underlying JS API being async, and that's why those functions are as well.

I wouldn't mind adding a blocking variant of these functions, and use async internally to make that happen. But, not there yet.

theocs··on Show HN: ClojureScript REPL within Excel
Glad you like it :)

You can bind to arbitrary data regions using named items. For example:

cljs.user=> (add-binding-named-item "A1:B2" "binding-id" println)

nil

{:rc 2, :cc 2, :type matrix, :id binding-id}

cljs.user=> (get-binding-data "binding-id" println)

nil

{:rc 2, :cc 2, :type matrix, :id binding-id, :data [[1 2] [3 4]]}

cljs.user=> (set-binding-data! "binding-id" [[2 3] [4 5]])

theocs··on The View from the Front Seat of the Google Self-Driving Car
autobot
theocs··on Java Memory Model Pragmatics
This is very technical, most likely way past what 99% of developers both need to care about and have to care about.

Given that most developers work at best with embarrassingly parallel problems they wouldn't need to know much of these details.

But if you're up for it: It's a very rewarding feeling when you're both allowed to figure these things out and someone are also paying you while you figure it out.

theocs··on Off-heap hashmap for Java 8
Maybe I'm mistaken about the code, but it doesn't look like HugeCollections is storing the key off heap?

Example: Looking at the containsKey method on line 420 here: https://github.com/OpenHFT/HugeCollections/blob/master/colle...

A return map.containsKey(key2) is used, with that map being declared as

final Map<K, DirectStore> map = new HashMap<K, DirectStore>();

on line 232. That makes me believe maybe only map values are kept off-heap?