

A more convenient link format:
!india@lemmy.zip
Note also:
(there may be others - didn’t re-search).
Although I don’t live there, I’d like to see more discussion of India on Lemmy.


A more convenient link format:
!india@lemmy.zip
Note also:
(there may be others - didn’t re-search).
Although I don’t live there, I’d like to see more discussion of India on Lemmy.
I used to sing while riding a bicycle around hilly edinburgh, can testify it’s good for positive psychology.


I’d like to see something like this proposal. I’d been following that pre-SIP but was rather dismayed by so many negative comments.
I respect those who urge caution to be sure that it’s not too hard to implement in the tooling - smooth-running metals etc. is very important. But it’s a pity to see all those remarks like “we shouldn’t put data in code”.
I’m a scientist, I make an interactive climate / socio-scenarios system model. It now works in scala.js (even wasm), but was derived from a java applet, evolving over 25 years.
This is real world stuff, there are many small sets of ‘constants’ (not user data) with irregular structures, setting up gases and aerosols, regions, socioeconomic sectors, sources of energy, land use biomes, pledge (NDC) definitions, parameter sets tuned from other models and scenarios, etc. etc. Of course the model loads big historical datasets separately, but small sets of numbers should be in the code where it’s easy to see and adjust them (real world and science changes…), that’s an essential part of the transparency. And don’t tell me to put these within multi-line strings, then the compiler doesn’t check the structure, so we’d get runtime errors instead (scala is great - because when once it compiles, it just works).
As noted in the discussion, there are various workarounds with aliases, which I use, but it could be neater.
A related topic that was on scala-contributors which I’d like to see reopened is multi-level (nested) enums, for similar reasons. To get around the limitations of enums, I recently started to write my own macros, which works but … (another story…).


Yes. Also I’m using Zed editor. So getting the three to work together was a puzzle, as this combo lacks documentation, but now it’s working fine.
I recall it helped to force bloop re-install ( ./mill --import ivy:com.lihaoyi::mill-contrib-bloop: mill.contrib.bloop.Bloop/install )
Can also use metals doctor - but to see that needed to add to zed settings to enable metals http interface.
Maybe if sbt also hangs around (if you try both) the editor resets bloop and its gets confused - you have to disable one.


My dog certainly has a theory of my mind, she’s always out in front guessing where I’ll go and happiest when she gets it right, or suggesting ideas when it seems I lack one.


I recently switched to Mill, after years with sbt - find it easier to customise as my project gets more complex. But I’m using it mainly for scala.js ( retain the structure to compile a jvm version too, but rarely using that, may switch to scala-native for probabilistic calculations and data-processing, for which I used to use jvm).


OK so I read "Here the key concept is that some of the effects of the large herbivores, such as eradicating trees and shrubs or trampling snow, will result in a stronger cooling of the ground in the winter, leading to less thawing of permafrost during summer and thereby less emission of greenhouse gases".
I know the big impact of trees and shrubs on albedo - in spring they absorb sunlight and shake off snow, which remains on flat grassland. But regarding trampling - compaction- I’m not convinced. Winters are long and summers short, so accelerating cooling by some weeks wouldn’t make so much difference, as accelerating warming in the summer - that’s when the gases are released.
Anyway what we do urgently need is global science cooperation to try to save the carbon and ecosystems of that permafrost, in that spirit such projects might help to thaw geopolitical obstacles.


Where are these mammoths meant to roam ? And does anybody get why they think trampling grass and snow is going to protect permafrost ?


Indeed so. I also intend (eventually) to try running my model with scala-native - a purpose could be to ‘pipe’ runs connected with other climate model / tools (mostly written in python nowadays) for probabilistic analyses over thousands of scenarios (as I used to do with my old java JCM from which SWIM descends). So both native and wasm offer ways to connect with other languages (without any jvm). But for such complex systems modeling it’s great to rely on the intelligence of scala compiler (and metals, as typing) - basically if it compiles it usually runs correctly, the graphical image with all the plots is my main ‘test’.


To follow up my previous comment - recently I did try compiling my interactive climate scenario model (written in scala) as wasm, and hey presto it just works, didn’t have to change one line of code (except in build.mill). You can have a look:
My interactive climate model (SWIM) run with wasm
But first enable ‘experimental webassembly’ in your browser e.g. in Chrome chrome://flags/#enable-experimental-webassembly-features, in Vivaldi vivaldi://flags and enable “experimental webassembly”, in Firefox (recent) - it just works, only Safari doesn’t seem to be ready yet.
You can check with devtools, it’s mostly wasm, with a little js (beware devtools really slow it down).
To compare same scala code running as normal js, just remove the ?wasm in the url.
Initial setup won’t be faster with wasm as it’s mainly data loading, but model re-run should be a little faster, although I suspect writing to console and rotating cogs etc. slow it down. Ideally I’d keep gui stuff as js, and model calculation as wasm, but we can’t currently influence this division. What’s remarkable it’s that it’s so easy and reliable ‘out-of-the-box’, for such complex calculations (in this case including all future projections and generation of many svg plots).


Looking forward - eventually - to trying out the wasm option, which might eventually help speed up my interactive climate-scenario model which already runs with scala.js. Although speed is not currently the limiting factor, a wasm option might expand the potential scope - for example to increase regional resolution. However I presume to do this I’d have to refactor the code a lot, to keep all the gui and io in js while pushing the intensive calculations to wasm, and create data interfaces between these (at a rather low level if i understand correctly?), which could get tricky as it’s tightly coupled, code evolved over 24 years …
Puzzled why wasm is promoted for “backend”, which already has other compilation targets (jvm, native), seems to me this is a bigger opportunity to do complex calculations in the browser.


Trying to imagine what’s the application of mats of electric seaweed - if the energy could somehow make them self propelling, and self replicating, could get interesting, big potential surface area …?


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.
Have kids age 13,15, they are fun, and independent, but sometimes it’s difficult to be in the parent role. General issues of motivation to do anything off-screen, or indeed anything suggested by parents, even to come outdoors in summer. We still have ideas, skills to share, but conversations became so short, little chance for in depth discussion, or constructive projects. Traveling together can still be good.
As a small kid I learned i = i +1, before any maths teacher told me it couldn’t.


Still around. But it seems parents don’t count to teens, just provide food, sign docs, until switch off the wifi … We did go on a cycling trip recently - this worked - have to be active and look at distance rather than screens.


Of all the placard photos to choose to highlight, Nature could have found better than “science = fact” which seems to me more a proclamation of faith than encouragement of experiment.
Regarding the somewhat strange differences between countries, I suspect there may be a linguistic issue - words like “science” and “trust” have different scope in different cultures and systems - hard to ask the same questions everywhere.
That’s a rate of only 1.2% per year, was that your intention ?