orif
Re:Aral Sea Disaster: Why One of the Biggest Inland Seas Dried Up?
on Sunday January 08, 2023 @01:24AM (#34296611)
I don’t think Aral will be coming back to its original size. Once Afghanistan starts developing it will start consuming more water from Amudarya, and Central Asia’s population is still growing. The climate change going to hit Central Asia pretty hard, the ice glaciers that feed the major rivers are receding already.
Re:Aral Sea Disaster: Why One of the Biggest Inland Seas Dried Up?
on Sunday January 08, 2023 @01:11AM (#34296551)
Actually, the Russian textile industry needed cotton, they were a major customer of US cotton, then they saw an opportunity to grow cotton in Turkestan. So they started growing cotton there. Even after the 1917 revolution, Turkestan remained a major cotton producer, and population growth, increasing demand for cotton, the ruthless Soviet central planning dried the lake. That YouTube clip might have a point about water leaks, but even with 100% efficiency they would dry up the lake anyway, the inertia to grow cotton was too strong.
Re:First look: adding type annotations to JavaScript
on Thursday March 10, 2022 @01:53PM (#30630850)
Actually, I would prefer a C/C++ dialect in TypeScript’s type notation. Parsing time/complexity would reduce drastically, and would allow type inference.
Re:Go performance from version 1.2 to 1.18
on Friday February 04, 2022 @01:48AM (#30203603)
Just check .NET Framework 4 to .NET Core transition. You can dig MSDN blogs. While Go should be lauded for their performance improvements, it should not be done by reducing other languages/stacks’ achievements.
Re:Microsoft Surface Go 2 review
on Monday May 11, 2020 @08:09AM (#23141229)
I own a Surface Book 2 as well. At work I use MBP 16. And before that I used ThinkPad W520 for 6 years. SB2 is the best laptop. There are issues like glossy screen or not repairable/sturdy/modular like ThinkPad, but ergonomics and performance is just too good.
Re:Microsoft Surface Go 2 review
on Monday May 11, 2020 @08:00AM (#23141179)
Sketch app was one of the most useful apps in Windows 10. It was snappy and just one click away. Hate its replacement, wish they at least let us to keep Sketch app instead of just replacing it.
Re:TypeScript support in Electron
on Friday June 02, 2017 @05:43PM (#14473539)
TypeScript would complain about that snippet too.
function getOptions() { return { num: 42, str: "val" }; }
var __options__ = getOptions();
type Options = typeof __options__;
var options: Options = {
^^^^ Type is not assignable
num: "hi",
str: 42
};
Re:Ask HN: What “new” programming languages will you be using in 2017
on Tuesday January 03, 2017 @02:11PM (#13312050)
For packages with default export, you can use synthetic imports options in tsconfig.
For non-js imports, you can create global module declarations (like the below snippet):
declare module "*.css" { const value: any; export { value }; export default value; }
But you will still need to use some bundler tool like webpack. It will just stop TypeScript from complaining.
Type definitions are the biggest issue even today, but things are much better now. Most popular npm packages already have type definitions, but if you need some exotic package, then you can write your own defnitions (probably only necessary bits).