Hacker News new | past | comments | ask | show | jobs | submit | more kitsuac's comments login

I've been programming C++ and assembly for 23 years. Few years ago I became a huge fan of Python. In my opinion Python is amazingly well suited for rapid first revision and can then be swapped out for C++ / asm.


This is fine as long as you can convince management to spend the money to rewrite your software. That's usually a hard sell though. In my experience this plan usually ends up with a python monstrosity that everyone hates but is forced to deal with forever.


I'm speaking in terms of the reality of what is effective in development. Not in terms of what management at particular companies will approve.


Type hints and dataclasses are a game-changer for Python. Much easier to reason about programs that use them.


> Type hints and dataclasses are a game-changer for Python. Much easier to reason about programs that use them.

Type hints made large python codebase switch from "Any change will blow up to my face" to "I can touch it carefully with protection gloves".

Through, it is still pretty easy to fool mypy and very far of the compile time guarantees that provide most static typed AOT compiled language.

And unfortunately, it also does not bring any advantage in term of performance.


> Type hints...

At that point it makes more sense to use a statically typed language.


You just have to write a tiny part that uses a lot of CPU in C++/asm or anything else.

Much of code's performance isn't really reflected on to the scalability since mostly a tiny part of code is really ran a lot of time, and the other parts are just glues or management stuff or rarely used(not used in scale) features.


It depends. You aren't going to make a very fast modern codec encoder or decoder using Python. The hotspot ends up being the vast majority of the process. That management/glue layer becomes very thin, amounting only to feeding in the bitstream and reading back the raw video frames.


The site should be unattractive but functional. Gotta drink your own koolaid.


What's coming through is alive What's holding up is a mirror But what's singing songs is a snake Looking to turn this piss to wine They're both totally void of hate But killing me just the same


Problem is a tribe and all its associated organizations become dependent on a fresh supply of racists, sexists in order to justify its own continued existence. Evolutionarily, it must continue to find more and more of them to survive, even if they are mostly imaginary


God bless you all HN.


It sounds like a non-renewable energy source which changes the natural flow of the water permanently. Isn't there bound to be negative environmental effects?


Non-renewable? All that salt in the ocean isn't going anywhere and we'll have fresh water as long as the water cycle continues. You could even use grey water waste from fresh water that was originally desalinized for human use.

I mean, you could say solar is non-renewable because the sun die one day. After all, there is a finite supply of solar energy.


This is actually a form of solar energy anyway because it is the sun that provides the initial energy to separate the water, and move the water into the atmosphere against gravity.


Hah, great point. I guess you could take the unnecessarily further and state that all energy potential on Earth ultimately derives from the sun. We're 100% solar already!


I'd say most of the chemical energy on the surface of the planet is derived from solar power, in contrast to nuclear (fusion or fission) power.

Of course, solar is nuclear too. So we're actually 100% nuclear powered.


Well, no not all. Batteries (non-rechargeable) and nuclear are given energy by previous supernovae, I would assume.


Not nuclear or geothermal power


We could have never developed nuclear without the sun getting us started though...


> a non-renewable energy source

The sea will remain salt and as long as rivers will flow the ion potential will exist along the coastline. Are you referring to other parts of the method?


Really this is a roundabout way of harnessing the power of the Sun. In this case the energy used to liberate water vapor from the ocean.

When you think about it this way, all of our energy sources are just repackaged solar except for nuclear.


> all of our energy sources are just repackaged solar except for nuclear

And nuclear is just repackaged supernovae!


What about geothermal energy? Part of it is nuclear, but the other part is left-over heat from the formation of the planet.


I dunno, the article said that one square meter of the membrane could power 400 homes. And they believe the material can be made even more effective with a proper manfucaturing process. That would not seem to disrupt waterflow. I personally think this sounds incredibly promising.


If you use a small membrane there will be basically no way that a sufficiently large gradient between the two sides exist to produce meaningful amounts of electricity. This article is total bullshit even if the material science is nice.


> the article said that one square meter of the membrane could power 400 homes

The article was updated to correct this number, it was actually 3 instead of 400.


This doesn't sound terrible but it will have effects on the ecosystem similar to hydro at least - blocking fish migration paths, reducing river flow rate and potentially causing algae blooms, fish die-offs or water toxicity increases as sediments are disturbed in fun new ways.

All that said, it's certainly miles above either coal or natural gas.


Me too. Loved it so much. Had to try every combination of pieces to see them all


I ran my own personal GitLab EE on EC2 and it cost a fortune per year to use an instance type with enough memory. Then I realized GitLab.com private is... free and unlimited? How is that even possible?


When on the private, free, you get the features of the unlicensed EE (which behaves as the opensource version).

You can still pay us money if you want, by going with one of the paid tiers, which gives you access to other features and additional CI minutes.

But "free GitLab" is, really, good enough for personal use and small / medium companies when they are starting their digital transformation, or can afford to some manual inefficiencies.

The extra features on the paid tier become more important and urgent as you grow, so by having you already familiar and invested in the product, it becomes more obvious and easier the choice of becoming a paid customer.


This was a very effective way to describe it, I've read a great deal about QM and you made it click much better.


It will depend from which sources you get your information. Maybe the legwork will be done by someone sufficiently motivated to definitively prove one way or another, but I wouldn't really consider this a closed case. I'm shocked if anyone alive in 2017 really thinks this is something the media would never do.

http://newsdiffs.org/article-history/www.nytimes.com/2017/01...


That's useful. It shows minor changes being made during the first 9 hours after the article appeared on line. The title changed from "Inquiry on Aides To Trump Studies Wiretapped Data" to "Wiretapped Data Used in Inquiry Of Trump Aides" two hours after the first posting. That's an editor at work.


Yea, I never knew these news diffing sites existed. Looks like "Wiretapped" was indeed removed at some point in time, which seems to contradict the description given in the redaction/apology article. But this tool doesn't give any insight as to when that change occurred since its final snapshot was only a day after the original article was posted.


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: