

Too true, and good analogy with building a house extension…
Too true, and good analogy with building a house extension…
Zed, for the last few months, and happy with it (previously vscode) - I code in Scala, so Metals provides the complex hints / actions.
Can use Scala to gradually transition away from java - convert code module by module, interop just works, until eventually no java left, can then compile instead as js, native or even wasm (i recently tried this for my climate-system model which evolved from old java). Also, btw, made in europe, not big-tech, and scala3 looks more like python.
A wee quote from the author of the original little red book …:
“the two slogans – let a hundred flowers blossom and let a hundred schools of thought contend – have no class character; the proletariat can turn them to account, and so can the bourgeoisie or others. Different classes, strata and social groups each have their own views on what are fragrant flowers and what are poisonous weeds”.
Seemed a good idea at the time (1957?), remember how that trick evolved thereafter …?
I was concerned about the gap between climate science and policy. So, having learned to program as a kid, I made an interactive model to help bridge that gap, to let people experiment. This evolved over 25 years - recently moved to scala.js, still developing, not for money but because we have to keep trying to solve complex problems.
As a kid, I learned to write i = i +1, before school maths taught me it can’t. The point is, computers do iteration well, especially to model dynamics of real non-linear systems, while classical maths is good at finding algebraic solutions to equilibria - typically more theoretical than real. Calculus is great for understanding repeatable dynamics - such as waves in physics, also integrating over some distributions. But even without knowing that well you could still approximate stuff numerically with simple loops, test it, and if an inner-loop turns out to be time-critical or accuracy-critical (most are not), ask a mathematical colleague to rethink it - believe in iteration rather than perfect solutions.
Hmm. I’m still using a 2014 iMac, as its 27" 5k screen still very good for coding (with added memory). Sometimes develops a bunch of thin vertical lines, which come and go maybe dependent on temperature, but hasn’t changed for for ten years and i can live with those. Just wish they’d continue providing security updates for it.
Indeed to use scala-native you’d need pure-scala libraries, but the core lib re-implements most java lib, and there are now small simple external libs available for common tasks like file management, database, etc. - for example check out the lihaoyi suite.
I mainly use scala-js (to make this) which was formerly a java app - as it compiles to both js and jvm (cross-project) can gradually convert stuff you already wrote. I’ve tried native for stuff like pre-processing data files.
Scala compiles either to native, js or jvm - obviously the IO / interface options vary between these envs, but the lang is the same. Recently Scala 3.5 incorporates a simple-to-use CLI which makes it easier to compile to native (or just run a small file as a script, or experiment with a repl), native binaries are small and fast, and there are some simple io libraries. Since you can also compile to jvm to interop with java, that might help with transition.
I now use Scala 3, and very happy with syntactic whitespace (combined with an intelligent compiler)
Scala-js is working on it - as its compiler design may facilitate this.
I haven’t yet tried (on todo list) and am not an expert, but bookmarked in passing:
recent github implementation, some history, following older discussion
Although not an expert on that specific country, I can be sure that ’ almost all ’ is very misleading, even if it gets a lot upvotes because people find it convenient to blame some big bad other. Even if you have specific data for electricity, don’t forget a lot of CO2 is emitted by cars, and also by fuel to heat homes (including some peat in special case of ireland - and in that country a large fraction of GHG emissions is also methane from agriculture).
I use vscode as I develop this model in Scala3, whose language-server ‘metals’ integrates well with vscode, and when scala3 was new in mid-21 this was the platform they first targeted. But the scala command-line tools do the clever analysis, vscode provides the layout, colours, git integration, search/regex, web-preview etc… Now considering other options (eg zed) as vscode too dependent on potentially unsafe extensions (of which too much choice), also don’t want M$ scraping my code. Long ago when same model was in java I used netbeans, then eclipse. Would prefer a pure-scala toolset.
Thanks, fixed! As you can see parts of the science code are already accessible via the ‘cogs’, but not yet the structural code - anyway keeps evolving, update soon.
Similar - I thought about codeberg for the source of my interactive climate model,
but am not yet ready to give it a pure-foss license - might split in parts with different licenses. Could try self-hosting.
I don’t buy this. I’m still using SMTP on my own domain and it’s working fine, a bit of spam but not unmanageable, real messages get read. Main challenge is digesting so many potentially-interesting list messages, indicating email’s continued dominance for professional topics. Seems this author has another agenda.
Having said that, it’s a pity the world never agreed a protocol for micro-payment for emails (and for many other services), which would resolve the spam problem, and not be a burden for honest users.
From the tasks described, it seems to me they were not measuring ‘Computer Skills’ as reasoning, patience, tenacity - people could have similar issues with similar tasks involving a pile of papers.
Hi, excuse me for replying so late, but i’ve been away from lemmy for.a while.
Well, to summarise, the model calculates the future trajectories, of population, economy, emissions, atmospheric gases, and climate response etc., according to a set of (hundreds of) diverse options and uncertainties which you can adjust - the key feature is that the change shows rapidly enough to let you follow cause -> effect, to understand how the system responds in a quasi-mechanical way.
Indeed you are right, complexity is beautiful, but hard. A challenge with such tools is to adjust gradually from simple to complex. Although SWIM has four complexity levels, they are no longer systematically implemented - also what seems simple or complex varies depending where each person is coming from, so i think to adapt the complexity filter into a topic-focus filter. Much todo …
As it happens I’ve been calculating per capita emissions for 28 years, since COP2.
You can see my model here.
No I certainly don’t include Russia nor Turkey, although europe is more than EU. Korea is indeed notable.
Regarding what they call ‘consumption emissions’, you can get such data from Global Carbon Project, on that I’m less an expert but my hunch is that industry emissions are dominated by heavy products like steel and cement for construction (made with help of gigatons of coal), rather than light consumer goods for export. Over-construction is the root of the problem, global emissions will peak (maybe now) as that bubble bursts.
I’d like to have no phone at all, I don’t like small screens, nor being interrupted. Problem is that phone apps are now almost obligatory for IDs, transport tickets, passes, banking, etc. So I’d just like a phone-receiver (modem) with a sim card on a USB stick that can enable phone-app-stuff via my laptop or tablet. (Yes some tablets have data sim cards, but we still need sms and occasional phone functions for ‘verification’ etc.). Any suggestions?