[HN Gopher] Parsing PNG Images in Mojo
___________________________________________________________________
Parsing PNG Images in Mojo
Author : nojito
Score : 20 points
Date : 2024-05-11 14:32 UTC (1 days ago)
(HTM) web link (fnands.com)
(TXT) w3m dump (fnands.com)
| neonsunset wrote:
| Meh. Just use C# and its cross-platform SIMD API instead.
|
| These will guarantee you the performance, might even be terser,
| certainly easier to deploy, and actually open-source.
| simonw wrote:
| Won't help you much if your goal is to learn Mojo.
| neonsunset wrote:
| Fair enough, though I'd argue - don't, F# is well-loved by
| certain research labs for these use cases :)
| Conscat wrote:
| But then you have to be capable of stomaching Dotnet.
| Modern C++ is the best tool for this job, currently.
| neonsunset wrote:
| You mean...not suffering through cmake and co and having
| your project build the first time you type dotnet build
| -c Release?
|
| (I suppose a valid excuse for suffering from C++ tooling
| would be getting to use something like ISPC)
| williamcotton wrote:
| I started using F# late last year in a *nix environment
| and it is really well done. There's .NET Interactive
| which allows for F# in a Jupyter Notebook. You can create
| .fsx scripts that are interpreted at runtime and handle
| inline dependencies from NuGet. There's the Fable which
| compiles F# to JS, TS, Python and Rust.
|
| And of course it's a full on functional language with
| some great syntactic sugar, especially computation
| expressions.
|
| The stomaching of .NET basically means getting a much
| larger set of third-party libraries than OCaml or Haskell
| can offer.
|
| It is well worth checking out!
| melodyogonna wrote:
| Excited to see what Mojo will look like by the end of the year.
| mhh__ wrote:
| The MLIR aspects of Mojo are really interesting but I can't help
| but feel that the language itself is basically just going to be a
| hodge-podge of semi-random crap bolted onto python (which is
| already a few decades of semi-random shit held together with a
| committee and a dream).
|
| I've written a tiny bit now and I can feel some new
| dimensionality that I'm not used to (e.g. the ownership and
| borrowing story in a language that doesn't really let you
| syntactically express ref/value seems a bit like marketing-
| driven-design), which can't be a good thing given that I'm not
| just an "AI programmer" that the mojo people seem to be aiming
| for.
|
| I'd gladly switch the python code I have now over to mojo -
| python is slow and ugly - but in the long term the joined-at-the-
| hip relationship with python could put the language in a weird
| position: It might get you some early customers (every python-
| but-faster variant has) but what happens after that? It's an odd
| place to be (that and culturally your main influence is now going
| to be python programmers who are often either inexperienced or
| plain mediocre - selection effects)
| fbdab103 wrote:
| I am not sure what other options are really on the table. I
| have several grievances with Python, but it has the biggest
| community. If I want a library for...well anything, there is
| going to be one written in Python. Stuck on a problem? There is
| probably a blog post or SO thread from someone in the exact
| same situation.
|
| Bootstrapping a new scripting language sounds incredibly
| difficult unless you have the cash or mindshare to get others
| to follow. Which is unfortunate, because I think a new language
| with lessons learned since Python could have a lot of
| performance and usability improvements vs where we are now.
| fbdab103 wrote:
| I know it is not technically Python, but seeing `list` used as a
| parameter made my eye twitch.
___________________________________________________________________
(page generated 2024-05-12 23:01 UTC)