HNHacker News
TopNewBestAskShowJobs

cosmic_quanta

1,529 karma · joined November 22, 2017

To learn more about me, visit https://laurentrdc.xyz
submissionscomments
cosmic_quanta··on Which Power Plant Does My Electricity Come From? [video]
This is an excellent summary of deregulated electricity markets, which are important components of the North American power grid.
cosmic_quanta··on AI for real-time fusion plasma behavior prediction and manipulation
Ah well I'm sorry, I must misremember
cosmic_quanta··on AI for real-time fusion plasma behavior prediction and manipulation
> Neutrons make hardware radioactive

True, but two caveats:

1. Neutron bombardment due to fusion makes hardware radioactive for less than 10 years, which isn't great but does not compare to fission waste;

2. Some fusion processes don't emit neutrons (aneutronic fusion). As I understand it, these processes aren't as efficient, but there is the possibility of a tradeoff between generation of ratioactive waste vs. efficiency.

cosmic_quanta··on Unix core utilities implemented in Haskell
Could you speak to the advantages of Haskell's lazy IO? I only hear about its disadvantages usually
cosmic_quanta··on Ask HN: Who wants to be hired? (November 2024)
Location: Montréal, Canada

Remote: I can, but prefer on-site

Willing to relocate: Yes. Easy to get visa for US + Commonwealth countries (NZ, UK, Aus, etc)

Technologies: Haskell, Python, Rust (been a while though), SQL, Git.

Résumé/CV: On request -- all details at https://laurentrdc.xyz/about

Email: laurent `dot` decotret `at` outlook `dot` com

---------

I am a physicist with lots of software experience in many domains, including scientific computing, distributed systems, finance & trading, machine learning, and power grid infrastructure.

I maintain several free and open-source software packages: https://github.com/LaurentRDC

I have experience as a scientific software engineer at NASA's JPL, and quantitative research + software engineer at a tech startup. I have also tried starting my own startup in the cleantech space (https://powerweave.io/), which ultimately ran out of runway -- still a valuable experience!

I am interested in climate tech, more specifically the clean energy transition, but willing to hear about anything -- I usually get more interested the more I learn!

cosmic_quanta··on Amazon buys stake in nuclear energy developer in push to power data centres
You are right, I should have used the term "firm power" instead of "baseload"
cosmic_quanta··on Amazon buys stake in nuclear energy developer in push to power data centres
Not necessarily. The grid of the future needs a plurality of solutions, one of which is clean baseload (e.g. hydropower, nuclear fission, or fusion).

However, don't discount renewables. Paired with energy storage -- which isn't only chemical batteries! --, intermittent generation can be extremely useful across vasts parts of North America.

cosmic_quanta··on US weighs Google break-up in landmark antitrust case
Do you think it's impossible to have a nuanced discussion about monopolies? Their net effect may be wholly negative while having some interesting aspects
cosmic_quanta··on Nobel Prize in Physics Awarded for Machine Learning and Neural Networks
I would argue that the first measurements of exoplanets' existence is definitely physics. This was a leap in our understanding of the makeup of the universe.
cosmic_quanta··on Nobel Prize in Physics awarded to John Hopfield and Geoffrey Hinton [pdf]
I can only think of major achievements in my (narrow) field of study.

What do you think could have reasonably been awarded?

cosmic_quanta··on An interactive, exercise-heavy approach to learning Bitcoin
Indeed, as a technology, there's a lot to learn from Bitcoin.

The possibility that a fully decentralized platform can exist without peer trust still blows my mind.

cosmic_quanta··on One Year of Rust in Production
The reason rustc and other compilers like it (e.g. GHC) are "slow" isn't because they are unoptimized; it's because they do A LOT of work!

rustc is enforcing a strong and expressive type system, checking for ownership, generating code from macros, etc. It will always be an order of magnitude slower than C/C++ compiler, kind-of by design.

cosmic_quanta··on Amazon tells employees to return to office five days a week
Usually I would think these are shadow-layoffs, but employees were already required to be in-office 3d/week, which means that employees were at least proximate to their office.
cosmic_quanta··on Why Haskell?
I realize I didn't mention monad transformers at all in my original post, I only linked to them!

I should have mentioned that, as you say, monad transformers should be the default effect system choice for 99% of people

cosmic_quanta··on Why Haskell?
Someone truly new to Haskell shouldn't use it professionally.

Once you've learned what is necessary to, say, modify already-existing applications, you should be familiar with monads and some basic monad transformers like ReaderT.

Once you're there, I don't think 'choosing an effect system' is a perilous question. The monad transformer library, mtl, is an effect system, the second simplest one after IO.

cosmic_quanta··on Why Haskell?
> I'd analogize it to a metalworker working with titanium. If you need it, you need it. If you can afford it, great. The end result is amazing. But it's a much harder metal to work with for the exact same reason it's amazing.

What a beautiful, succinct analogy. I'm stealing this.

cosmic_quanta··on Why Haskell?
> I find some code easier to express with procedural/mutable loops than recursion, and I believe the vast majority of programmers

I think this comes from early and continuous exposure to some forms of programming, rather than inherent to pure functional programming.

I personally find it much easier to use recursion and other functional techniques because it composes better. This probable comes from my exposure to Haskell much earlier than most.

cosmic_quanta··on Why Haskell?
I have also initially struggled with structuring Haskell programs. Without knowing anything about what you want to do, here's my general approach:

1. Decide on an effect system

Remember, Haskell is pure, so any side-effect will be strictly explicit. What broad capabilities do you want? Usually, you need to access some program-level configuration (e.g. command-line options) and the ability to do IO (networking, reading/writing files, etc), so most people start with that.

https://tech.fpcomplete.com/blog/2017/06/readert-design-patt...

2. Encode your business logic in functions (purely if possible)

Your application does some processing of data. The details don't matter. Use pure functions as much as possible, and factor effectful computations (e.g. database accesses) out into their own functions.

3. Glue everything together in a monadic context

Once you have all your business logic, glue everything together in a context with your effect system (usually a monad stack using ReaderT). This is usually where concurrency comes in (e.g. launch 1 thread per request).

---

Beyond this, your application design will depend on your use-case.

If you are interested, I strongly suggest to read 'Production Haskell' by Matt Parsons, which has many chapters on 'Haskell application structure'.

cosmic_quanta··on Predicting the future of distributed systems
> A new programming model for distributed computing is desperately needed

The article mentions actor-model frameworks like Akka. Is that not like Ray?

At work we use and maintain something similar called Cloud Haskell (confusingly implemented in a package called distributed-process: https://github.com/haskell-distributed/distributed-process) and I have to say that using it is a breeze.

cosmic_quanta··on Ask HN: Did you regret staying at a job for too long?
> I’m starting to be concerned that I’m not growing as an engineer

In general, to keep your mind healthy, it is recommended to continously challenge yourself and learn.

You could do this outside of work hours. Is that an option for you?

cosmic_quanta··on Ares Industries – Building low-cost cruise missiles
I know that Anduril has a different business model: they completely fund the development of new products, and then sell those products to governments.

The incentives are better aligned to reduce development costs, since Anduril does not earn until products are rolled out.

Maybe this will lead to a cheaper / more efficient defence industry?

cosmic_quanta··on Launch HN: Sorcerer (YC S24) – Weather balloons that collect more data
I would be interested in this as well. I hope they start an engineering blog at some point.
cosmic_quanta··on No price Microsoft could pay Apple to use Bing: Google antitrust ruling excerpts
To be clear, the post you linked does not argue that 'fiduciary duty' ISN'T about shareholder value maximization; rather, that maximizing shareholder value goes beyond short-term thinking
cosmic_quanta··on Elliott says Nvidia is in a 'bubble' and AI is 'overhyped'
You can continuously roll options contracts. I don't know if any broker offers an order type to roll automatically; otherwise I really like Alpaca's API (https://alpaca.markets/) to do it yourself.
cosmic_quanta··on My Favorite Algorithm: Linear Time Median Finding (2018)
That is cool if you can tolerate approximations. But the uncomfortable questions soon arise: Can I tolerate an approximate calculation? What assumptions about my data do I to determine an error bound? How to verify the validity of my assumptions on an ongoing basis?

Personally I would gravitate towards the quickselect algorithm described in the OP until I was forced to consider a streaming median approximation method.

cosmic_quanta··on How Olympics officials try to catch “motor doping”
Isn't there something Peter Thiel funded just for this?

Edit: yes https://www.independent.co.uk/sport/olympics/enhanced-games-...

cosmic_quanta··on Show HN: Kaskade – A text user interface for Kafka
> kafka is a piece of shit architecture

Hmmm interesting. I have only seen people rave about it, but haven't used it myself. Why is it shit architecture?

cosmic_quanta··on Safe Superintelligence Inc.
Unless AI starts being 1 000 000x energy efficient, my money is on a).

The amount of energy required for AI to be dangerous to its creators is so vast that I can't see how it can realistically happen.

cosmic_quanta··on Safe Superintelligence Inc.
Yann LeCun said it best in an interview with Lex Friedman.

LLMs don't consume more energy when answering more complex questions. That means there's no inherent understanding of questions.

(which you could infer from their structure: LLMs recursively predict the next word, possibly using words they just predicted, and so on).

cosmic_quanta··on I learned Haskell in just 15 years
> Why write in a statically-typed language when dynamically-typed languages have adapted the best bits and pieces from statically-typed languages?

Unfortunately, dynamically-typed languages haven't adapted the best bit from statically-typed languages: that all types are enforced at compile-time!

← PreviousPage 4 of 9Next →