Replies: 13 comments
-
Following... |
Beta Was this translation helpful? Give feedback.
-
The project is currently in maintenance mode due to low time resources (unfortunately), but I'd say 2.x is essentially complete. I've been slowly working in the background on a redesign (I started researching this around 2018), but one of the hardest parts is improving on Mithril's current API. And so I had to multiple times table my work for over a year trying to look for more flexible models in some areas. I've iterated and tossed many ideas. My ultimate goal is that you're writing much less view code.
Here's some of the stuff I looked at:
Unfortunately, I don't have code to share at the moment, and it's currently failing some critical tests, but I've actually gotten to the point of writing code now. |
Beta Was this translation helpful? Give feedback.
-
Will caution, it may be several months to a year before that redesign comes out. I'm not moving quick, and I don't want us to have to do a quick v4 like we did from v1 to v2 to fix missed design bugs in v1. |
Beta Was this translation helpful? Give feedback.
-
Do I see it correctly that this is basically a one person project? |
Beta Was this translation helpful? Give feedback.
-
@modir The redesign is, yes. Maintenance has multiple people, but the maintenance burden's been very light outside the Zulip. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the additional infos. Would it make sense to build a core team so that the redesign moves quicker? I am asking as well because I see man pull requests which are just laying around and are sometimes waiting for a second person to approve. |
Beta Was this translation helpful? Give feedback.
-
I just want to tell you that Mithril is the best framework I have worked
with.
Some improvements I would look for:
1. Lazy loading like Qwik when working in large applications.
2. Vite + ts bundling
3. Maybe some tools to help debug and see component information during
development.
All other things are amazing and don't need updating.
Tal Yaron
052-607-9419
CEO & Founder at delib.org
Head of Full-stack development at INT College
Full-stack web developer, UX architect, Lecture at both
- General blog <http://talyaron.com>
- Wiki on deliberative democracy <http://delib.org/wiki>
- Research group for deliberative democracy - past
<http://deliberationresearch.wordpress.com/>, present <http://delib.org>
…On Fri, 17 May 2024 at 11:29, Raffael ***@***.***> wrote:
@modir <https://github.com/modir> The redesign is, yes. Maintenance has
multiple people, but the maintenance burden's been very light outside the
Zulip.
Thanks for the additional infos. Would it make sense to build a core team
so that the redesign moves quicker? I am asking as well because I see man
pull requests which are just laying around and are sometimes waiting for a
second person to approve.
—
Reply to this email directly, view it on GitHub
<#2891 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADIOTFOGZLQ43EB3QMDLMDZCW5UZAVCNFSM6AAAAABHT42WMGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJXGAZDCNRTGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
On 5/17/24 04:45, Tal wrote:
I just want to tell you that Mithril is the best framework I have worked
with.
Seconded!
Mithril is essentially "complete" for what the project initially aspired
to do. And those aspirations were the "right" ones for supporting a
Single Page App that leverages JavaScript and CSS to the maximum.
No doubt there are minor things that could be improved in any system,
even Mithril (as Tal mentioned). Or there may be new ideas that could be
added on eventually (as Claudia mentions). So I don't want to discourage
tweaking existing code or exploring new ideas.
That said, in Mithril's case, evaluating its value based mainly on the
amount of current code churn is misguided. Code churn is common in many
JavaScript libraries that never got things right in the first place. For
what Mithril aspired to do (originally via Leo Horie and then others) ,
Mithril got things right mostly from the start with the idea of
redrawing by default after every user action, and so it does not need
much maintenance now. It's true v2 improved greatly on Mithril's
component story and related concerns, but that is many years behind us now.
Think of Mithril at this point like, say, a library routine to format
numbers into text in standard ways -- how much maintenance does such a
library routinely need?
Short of a major change to how HTML/JavaScript/CSS in browsers work,
Mithril as-is should work fine indefinitely for what it does. Granted,
as Tal wrote, there may be some convenience issues in special cases,
especially ones outside of the original Mithril use case for
(non-server-rendered) Single-Page Apps loading a stand-alone library,
but they are generally not showstoppers.
Mithril does only a few essential things and it does them well. And
JavaScript is so flexible and composable that you can add on other
things as needed (like, say Tachyons or other approaches for CSS).
By contrast, a library like React needs endless Rube-Goldberg updates
and new supporting libraries like Redux and new approaches for dealing
with stale closures in hooks introduced by the previous move from class
components to functional components and so on. That is because React got
the initial design wrong with a premature optimization on insisting
state be stored in components that trigger updates when changed. And
coding in React is still so much harder that Mithril given React's
unexpected gotchas -- despite a vast amount of human resources poured
down that black hole of React's original core design flaw of wrapped
state. JSX was also another conceptual design mistake. More on all that
by me:
https://github.com/pdfernhout/choose-mithril
…--Paul Fernhout (pdfernhout.net)
"The biggest challenge of the 21st century is the irony of technologies
of abundance in the hands of those still thinking in terms of scarcity."
|
Beta Was this translation helpful? Give feedback.
-
Part of what's motivated me to work a little more actively now is because some major changes are starting to shape up, mostly on the JS side.
I'm not planning in using all of these, but I do want to at least set the groundwork for a future where those are commonplace and Mithril can then evolve to depend on them directly. (And |
Beta Was this translation helpful? Give feedback.
-
I absolutely love Mithril and am very thankful for all the work everyone involved has put in. Personally I dislike decorators but that's maybe a future-me problem :-) All the best and again, thank you! |
Beta Was this translation helpful? Give feedback.
-
@purefan I'm moderately right there with you. As I said, "I'm not planning in using all of these", and decorators are one of the things I'm not planning to use. Decorators are useful for some things, but core framework logic is not one of those things that needs to rely on them. |
Beta Was this translation helpful? Give feedback.
-
I think the "printf" analogue is what I am aligned with. We all have a lot of time invested in the codebase to use Mithril. I personally would like to see that an "LTS" branch that:
If these goals are met, I do not feel it is necessary to add a whole bunch of new features to the base framework that will make it slower and bigger. Can't we "plug-in" new features beyond the basic DOM manipulations, network IO, and event handling? Super-light and no dependencies with other framework is a big draw for me. |
Beta Was this translation helpful? Give feedback.
-
I've been a fan and user of mithril.js for years now. It offers the best balance between features, performance, and ease-of-use. Honestly I don't mind writing a lot of code to create the views, so I have no wishes for the API. A dream feature (or sub-project) though is to have a clear, optimized path to running mithril.js apps on mobile. It can be a deep integration with capacitor or even compilation into flutter. I understand it is a huge project, but it would be the single missing piece to make mithril really popular. |
Beta Was this translation helpful? Give feedback.
-
Just wondering if there's anyone developing mithril any further, perhaps its feature complete now and stable enough so it doesn't require updates as frequently as other packages?
Beta Was this translation helpful? Give feedback.
All reactions