HNHacker News
TopNewBestAskShowJobs

charlesetc

141 karma · joined November 1, 2015

submissionscomments
charlesetc··on My thoughts on OCaml
Yeah auto format solves a lot of the syntax problems. Dangling else for instance is not at all ambiguous when you have automatic indentation.
charlesetc··on Show HN: RankedVote – SurveyMonkey but focused on ranked-choice voting
Don't they? Isn't that axis just "how much they like the candidate"?
charlesetc··on Show HN: RankedVote – SurveyMonkey but focused on ranked-choice voting
"How Ranked-Choice Voting elects extremists"

https://psephomancy.medium.com/how-ranked-choice-voting-elec...

This article recommends instead a STAR voting system which is still simple to implement and understand while not electing extremists in some cases. I would be sad to see NYC and others turn to ranked choice without considering all the alternatives.

charlesetc··on Arc.io – A Crowdfunded Distributed CDN
https://arc.io/product#how-does-arc's-cdn-work-technically
charlesetc··on Death rates from energy production per TWh
Air pollution causes 4.2 million deaths a year.[1]

From the data in this link, we can infer that historically this adds up to 467 times nuclear.

[1] https://www.who.int/gho/phe/outdoor_air_pollution/burden_tex...

charlesetc··on Could ImGUI Be the Future of GUIs?
Thinking about this decision just as a performance one disregards the fact that the code is substantially different. It does seems likely that one way is more intuitive / easier to work with than the other, I wouldn't know which though.
charlesetc··on Show HN: Bon – programming language designed for simplicity, performance, safety
It seems a bit premature to claim high performance without having a story for memory. I'm sure ocaml, swift, and basically all languages that do any type of runtime garbage collection would be significantly faster without it.
charlesetc··on Show HN: Quickfix, the best stupid idea for fixing problems in Node modules
Does npm even allow you to use projects that don't allow you to make changes to their code?
charlesetc··on Why we used Pony to write Wallaroo
I used Pony and bindings to opengl to write the (very) start of a graphics engine. http://www.charlesetc.com/stars-game-7.html

It was surprisingly easy to learn - I found the capabilities system rather intuitive compared to other methods for safely managing data races. Also the syntax is really simple and easy to read!

charlesetc··on Macaron: a high productive and modular web framework in Go
Code generation is one way to get around generics. Go also stores all the type data at runtime so you can inspect the arguments passed to any function, which gives the same kind of generic behavior in any dynamically typed language.

So you definitely could implement an ORM in go without code generation - it's almost certainly been done.

charlesetc··on A PostgreSQL response to Uber [pdf]
There's replication, but I mean that all the data is in one pg instance, whereas there isn't a single mysql instance with all the data.
charlesetc··on A PostgreSQL response to Uber [pdf]
This is missing one huge point of the [uber engineer post](https://eng.uber.com/mysql-migration/).

They did not switch from a postgres instance to put all their data in a mysql instance. They switched from a single postgres instance to shard their data across many mysql instances. This an entire reworking of the architecture that is completely ignored in this powerpoint.

charlesetc··on St – A simple terminal implementation for X
I use konsole which is better than I found gnome-terminal to be and less klunky than I was expecting
charlesetc··on St – A simple terminal implementation for X
There have been many times when vim starts glitching out or something because of the terminal emulator I'm using. Even well tested ones like X-term and gnome-terminal. I never had that problem using st.

We hack so much into a text interface it's really easy to accumulate bugs.

charlesetc··on St – A simple terminal implementation for X
I used st for a good year and it worked really well! I've switched recently for features like the ability to change the font size without recompiling, etc. Despite its spartan feature set, st is quite usable.
charlesetc··on Hotel ransomed by hackers as guests locked in rooms
> Using Bitcoin for cybercriminal activities is becoming increasingly commonplace, as tracing payments is much harder due to the way the cryptocurrency works

"Cryptocurrency" is a large set of currencies, each of which work differently. Also, Bitcoin is a public log. It's much easier to trace bitcoin than to trace cash.

charlesetc··on Lambdoku – AWS Lambda with Heroku-like Experience
You could easily prefix your special environment variable with 'lambdoku_' so you don't have to fear that people could use it..
charlesetc··on [dead]
Keep in mind this was written 8 years ago and last updated 4 years ago.
charlesetc··on Island Generator
This is so awesome! I now am a lover of islands :D
charlesetc··on [dead]
I found this super interesting and great 'hacker news' - any idea why it was flagged?
charlesetc··on Lime Text – Open Source Sublime Text alternative (2014)
People might be interested in this one too - got a weird name, and it's still under development, but it seems pretty good http://www.vim.org/
charlesetc··on What is the difference between String and string in C#?
Spoiler:

There's no difference

charlesetc··on Tesla Wins Contract to Help Power the California Grid
Why do you all rely on oil? Just use batteries...

\s

I think it's important to note that they are not "replacing fossil-fuel electricity generation with lithium-ion batteries".

They are putting fossil-fuel supplied electricity into batteries to use at a later date.

charlesetc··on Owl Lisp – A purely functional Scheme that compiles to C
Purely functional doesn't mean immutable by default - it means immutable, period.

A function called with the same arguments will always have the same result.

charlesetc··on Fuchsia, a new operating system
Let's ignore that your operating system is probably written in c.