News for hackers. Stuff that matters.

charlesetc

Re:My Thoughts on OCaml on Tuesday April 25, 2023 @10:33AM (#35701057)
Yeah auto format solves a lot of the syntax problems. Dangling else for instance is not at all ambiguous when you have automatic indentation.
Don't they? Isn't that axis just "how much they like the candidate"?
"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.

Re:Death rates from energy production per TWh on Tuesday May 14, 2019 @10:18AM (#19909681)
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...

Re:Could ImGUI Be the Future of GUIs? on Saturday April 27, 2019 @07:06PM (#19768189)
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.
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.
Does npm even allow you to use projects that don't allow you to make changes to their code?
Re:Why we used Pony to write Wallaroo on Thursday October 26, 2017 @03:23PM (#15562155)
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!

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.

Re:A PostgreSQL response to Uber [pdf] on Friday April 28, 2017 @05:24PM (#14223174)
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.
Re:A PostgreSQL response to Uber [pdf] on Friday April 28, 2017 @05:19PM (#14223140)
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.

Re:St – A simple terminal implementation for X on Thursday February 02, 2017 @12:39AM (#13548386)
I use konsole which is better than I found gnome-terminal to be and less klunky than I was expecting
Re:St – A simple terminal implementation for X on Wednesday February 01, 2017 @10:54PM (#13547968)
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.

Re:St – A simple terminal implementation for X on Wednesday February 01, 2017 @10:53PM (#13547958)
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.
Re:Hotel ransomed by hackers as guests locked in rooms on Sunday January 29, 2017 @12:33AM (#13512367)
> 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.

Re:Lambdoku – AWS Lambda with Heroku-like Experience on Monday November 28, 2016 @01:12AM (#13053730)
You could easily prefix your special environment variable with 'lambdoku_' so you don't have to fear that people could use it..
Re:Python __Underscore__ Methods on Sunday November 13, 2016 @03:34AM (#12942439)
Keep in mind this was written 8 years ago and last updated 4 years ago.
Re:Island Generator on Thursday November 10, 2016 @10:28PM (#12927385)
This is so awesome! I now am a lover of islands :D
Re:Twitter experiencing outages on Monday November 07, 2016 @01:31AM (#12889300)
I found this super interesting and great 'hacker news' - any idea why it was flagged?
Re:Lime Text – Open Source Sublime Text alternative (2014) on Thursday October 13, 2016 @01:06AM (#12698576)
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/
Re:What is the difference between String and string in C#? on Saturday September 24, 2016 @02:08AM (#12569675)
Spoiler:

There's no difference

Re:Tesla Wins Contract to Help Power the California Grid on Thursday September 15, 2016 @11:05PM (#12511571)
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.

Re:Owl Lisp – A purely functional Scheme that compiles to C on Saturday September 10, 2016 @03:39PM (#12470592)
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.

Re:Fuchsia, a new operating system on Thursday August 11, 2016 @07:52PM (#12272572)
Let's ignore that your operating system is probably written in c.

Older »