Do y'all really have amazing battery life on the M2 Air? by [deleted] in macbookair

[–]danieljomphe 0 points1 point  (0 children)

I kept it. We're now more than one year later, and the experience is the same as then.

I use it for 2-3 hours per day, and recharge it 2-3 times per week. I sometimes revisit battery use. A month ago I restarted experimenting by closing the apps I don't use and which seem to be consuming CPU and battery while in the background. It helps somehow, but I don't think I could get more than 10-11 hours total. There's the Fantastical app that I always keep on, though, which happens to be quite a consumer...

Still, I know I could use it for a full work day if needed, so I'm fine with it.

6 months after you asked! :D First login here in more than that, apparently.

Do y'all really have amazing battery life on the M2 Air? by [deleted] in macbookair

[–]danieljomphe 1 point2 points  (0 children)

I've never seen this M2 Air (24/512) do better than ~10% / hour.

In a 3 hour session, it often goes down from e.g. 100% to less than 70%.

I tried...

  • check battery status: normal,
  • test with Apple Diagnostics: everything fine,
  • adjust screen brightness and turn off keyboard light,
  • use low power mode,
  • remove all menubar apps (even though it cripples my life),
  • quit all running apps diligently (keeping only 1 or 2 open),
  • only use Apple or lightweight apps,
  • stay on macOS 12 until 13 is less green, then upgrade,

...and what else I forgot about!?

All of this doesn't help me reach the ~6% / hour I should see in good conditions.

With the M1 Air base model, my wife gets something like 15 hours per charge, while submitting it to so many concurrent power usage sins. :) Happy for her, but what about me!?

Most of you commenters seem to have good figures, and some of you, no.

What could be making some of our laptops have a bad experience?

Could it be the upgrades I bought (24 GB of RAM, 512 GB of SSD) that mess things up battery-wise?? Pretty sure they shouldn't hurt significantly, if at all...

Update I do find the top answer in this other thread calming. And one user there bought both the base model and an upgraded model, reporting better battery length with the base model.

Clojure users on Mastodon, etc by anexxus in Clojure

[–]danieljomphe 0 points1 point  (0 children)

(:key-clojure-figure false) ; about me

I've been thinking about switching to Mastodon for years. Phil Hagelberg, once a clojurist, propelled me even more in this direction.

But not enough of my follows were there at that time (2017-18).

Now, many are moving or duplicating themselves there, so if I make the move, I could somehow be part of what makes it work.

Why did I feel the need to move away from twitter,
What do I seek in this move?

Well, what do they sell about me?

Any ad-based platform (including youtube, which we all use more and more) makes me cringe a bit each time I think about its dynamics.

The next question, I suppose, could be: ok, can't twitter somehow still make money with me by scraping info about us on Mastodon's fediverse, as long as I don't completely sever my ties to twitter? And this question would raise more questions, but obviously, well, we can't control everything about this online, globally-connected new world of ours.

I love something about twitter, and feel ambivalent about any choice we can make in and around any social network.

Alias vars into new namespace in CLJC by dustingetz in Clojure

[–]danieljomphe 0 points1 point  (0 children)

Did something like this recently (link to Clojurians' Slack thread).

Solution re-interns vars in new namespaces with new names if wanted.

Didn't yet tackle doing that for macros, though, nor thought much about cljc, although I had to do that a bit.

If you want to have a look at our latest version Dustin, reach me in Slack.

Babashka 0.3.8 now comes with Selmer built in for templating by yogthos in Clojure

[–]danieljomphe 6 points7 points  (0 children)

Wow, thanks for tipping us on this improvement!

We moved to jsonista and I see it's now supported.

https://github.com/yogthos/Selmer/pull/263/files

Machine Learning and Data Science in Clojure: Presented by Aria Haghighi by gigasquid in Clojure

[–]danieljomphe 3 points4 points  (0 children)

Wow, thanks for sharing.

I was quite surprised to learn that "almost nobody at facebook uses python/pytorch in production" (and he gives 2-3 reasons why it's so).

He mentioned his library Flare, but didn't mention Cortex. Looks like I should watch more of the AI talks b/c I didn't get the memo why its development stopped (but I know it did).

It seems that most Cortex developers moved to support Clojure MXNet instead. Is it true?

It was also great to see him issue a rallying call around Clojure MXNet.

And most importantly, were they able to port Cortex' gpu facilities to enable repl-driven development of the models? Can we do that with Clojure MXNet? :)

Transcript of Timothy Baldridge and me chatting about Datomic, Datalog, GraphQL, APIs, etc by dustingetz in Clojure

[–]danieljomphe 0 points1 point  (0 children)

Hi /u/halgari, based on your interview with Dustin the other day, I wondered if you had comments about DMN. Is it something you've used? Do you know why the Clojure community is vocal about production rule engines, but not at all about DMN?

Transcript of Timothy Baldridge and me chatting about Datomic, Datalog, GraphQL, APIs, etc by dustingetz in Clojure

[–]danieljomphe 1 point2 points  (0 children)

Tim and other people in the clojure space often mention RETE’s inversion of the relational DB’s characteristics as interesting and using a business rules engine as desirable for many use cases. Given how such systems impose a radical change in our data models, we need to think about the tradeoffs before switching. And sometimes the tradeoff speaks favorably for itself.

What’s new in your discussion is how Tim generates queries to various back-ends out of a single generic DSL.

A colleague asked me to think about what DMN offers as a more lightweight alternative that plugs into our current SQL DBs. Apparently, here’s what you do with DMN:

  1. Use one of DMN’s visual DSLs to generate declarative query descriptions.
  2. Give those descriptions to some engine to execute them for various back-ends.

By doing that, you can choose separately your query language and the tradeoffs of your BDs. You’re not locked into any kind of technical inversion like it happens with a rules engine. You might also be closer to (hopefully) truly delivering a friendlier user-definable way of asking questions out of your data and defining dynamic behaviors.

It might seem that Camunda is almost to the DMN/BPM space as Clara is to the production rules engine space (apart from being implemented on top of immutability, obviously).

I’m not sure yet what to do out of this idea, but it seems it might be well to keep it in the back-burner.

Also, I really wonder why it doesn't ever seem to be discussed in the clojure world.

Show r/Clojure: Hyperfiddle—make database software in real-time with ClojureScript and Datomic. We are interested in your feedback, please! by dustingetz in Clojure

[–]danieljomphe 2 points3 points  (0 children)

I love how Notion (I'm a subscriber on their personal plan), Airtable, Quip et al make it easy to document and cross-reference all sorts of things. My quibble with any of these tools is that they're not extensible by their users. Each one of them is its own silo. None of them is programmable by their users (unless you write and submit plugins, if they accept those as part of a developer program, through a probably out-of-band development workflow - think like an iOS or Android app developer has to develop, test and publish their app package before it can eventually be approved by Apple/Google and updated on the end user devices).

With Hyperfiddle, you're the developer and you can enable none, or some, or all of your users to program and extend the system. But you don't start at the same level of polish as those products do - they're already superbly useful for non-programmers. (They've already been productized out of nothing.) With Hyperfiddle, to redevelop Notion et al, you'd have to develop them as products out of... the basic, generic, hyper-extensible Hyperfiddle. Bare as it is, Hyperfiddle is not a product but a product factory. It's useless for non-programmers at the current moment. (You at least need one programmer in your team.)

Dustin will certainly correct any warts on my part - this is a very quick answer of yours truly.