Peter Homola
Peter Homola
MModular
Created by Lil'Nish on 10/22/2024 in #questions
Could Mojo be the first all purpose language?
Lean is actually pretty cool.
15 replies
MModular
Created by eggsquad on 10/16/2024 in #community-showcase
EmberJson: High level JSON library
I've removed unnecessary heap allocations and now my parser seems to be faster again :)
Benchmark results
--------------------------------------------------------------------------------
name , met (ms) , iters , min (ms) , mean (ms) , max (ms) , duration (ms)
JsonParseSmall , 0.026477, 45358, 0.026477, 0.026477, 0.026477, 1200.923000
JsonArrayMedium , 0.068801, 17439, 0.068801, 0.068801, 0.068801, 1199.816000
JsonArrayLarge , 0.167700, 7155, 0.167700, 0.167700, 0.167700, 1199.890000
JsonArrayExtraLarge, 17.921433, 67, 17.921433, 17.921433, 17.921433, 1200.736000
JsonArrayVeryBig , 57.036952, 21, 57.036952, 57.036952, 57.036952, 1197.776000
JsonBig3 , 146.449375, 8, 146.449375, 146.449375, 146.449375, 1171.595000

--------------------------------------------------------------------------------
Benchmark results
--------------------------------------------------------------------------------
name , met (ms) , iters , min (ms) , mean (ms) , max (ms) , duration (ms)
JsonParseSmall , 0.011757, 100000, 0.011757, 0.011757, 0.011757, 1175.731000
JsonArrayMedium , 0.025958, 46269, 0.025958, 0.025958, 0.025958, 1201.055000
JsonArrayLarge , 0.064550, 18595, 0.064550, 0.064550, 0.064550, 1200.308000
JsonArrayExtraLarge, 7.059231, 169, 7.059231, 7.059231, 7.059231, 1193.010000
JsonArrayVeryBig , 26.120578, 45, 26.120578, 26.120578, 26.120578, 1175.426000
JsonBig3 , 91.799231, 13, 91.799231, 91.799231, 91.799231, 1193.390000
Benchmark results
--------------------------------------------------------------------------------
name , met (ms) , iters , min (ms) , mean (ms) , max (ms) , duration (ms)
JsonParseSmall , 0.026477, 45358, 0.026477, 0.026477, 0.026477, 1200.923000
JsonArrayMedium , 0.068801, 17439, 0.068801, 0.068801, 0.068801, 1199.816000
JsonArrayLarge , 0.167700, 7155, 0.167700, 0.167700, 0.167700, 1199.890000
JsonArrayExtraLarge, 17.921433, 67, 17.921433, 17.921433, 17.921433, 1200.736000
JsonArrayVeryBig , 57.036952, 21, 57.036952, 57.036952, 57.036952, 1197.776000
JsonBig3 , 146.449375, 8, 146.449375, 146.449375, 146.449375, 1171.595000

--------------------------------------------------------------------------------
Benchmark results
--------------------------------------------------------------------------------
name , met (ms) , iters , min (ms) , mean (ms) , max (ms) , duration (ms)
JsonParseSmall , 0.011757, 100000, 0.011757, 0.011757, 0.011757, 1175.731000
JsonArrayMedium , 0.025958, 46269, 0.025958, 0.025958, 0.025958, 1201.055000
JsonArrayLarge , 0.064550, 18595, 0.064550, 0.064550, 0.064550, 1200.308000
JsonArrayExtraLarge, 7.059231, 169, 7.059231, 7.059231, 7.059231, 1193.010000
JsonArrayVeryBig , 26.120578, 45, 26.120578, 26.120578, 26.120578, 1175.426000
JsonBig3 , 91.799231, 13, 91.799231, 91.799231, 91.799231, 1193.390000
38 replies
MModular
Created by eggsquad on 10/16/2024 in #community-showcase
EmberJson: High level JSON library
Your code should be faster then because I first tokenise the input.
38 replies
MModular
Created by eggsquad on 10/16/2024 in #community-showcase
EmberJson: High level JSON library
Yes, I think reading from raw bytes is better here.
38 replies
MModular
Created by eggsquad on 10/16/2024 in #community-showcase
EmberJson: High level JSON library
I just ran your benchmarks.
38 replies
MModular
Created by eggsquad on 10/16/2024 in #community-showcase
EmberJson: High level JSON library
I wrote a similar parser a few weeks ago. Seems to be ~2.5 faster. https://github.com/phomola/mojolibs/tree/main/src/textkit
38 replies
MModular
Created by a2svior on 9/30/2024 in #questions
Runtime Reflection in Mojo?
I'd like to have macros like in Julia (or Rust) but I think I read somewhere that this isn't planned.
16 replies
MModular
Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
HTML given the context.
70 replies
MModular
Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Do you plan on having some sort of templates? I wrote a PoC, can be seen here: https://arax.ee/mojo I’d be interested in having something similar to Go.
70 replies
MModular
Created by Jack Clayton on 5/11/2024 in #community-showcase
Lightbug HTTP: Mojo web framework
Do you have some benchmarks?
70 replies
MModular
Created by Peter Homola on 9/17/2024 in #community-showcase
Mojo web apps
I don’t have any requirements, not planning to use Mojo in production for this at the moment. Generally I like the way Go’s http package is designed. I have some ideas about the high level API (like working with JSON) though.
7 replies
MModular
Created by Peter Homola on 9/17/2024 in #community-showcase
Mojo web apps
I don’t want to do things from scratch. And lightbug doesn’t have a good API.
7 replies
MModular
Created by Peter Homola on 9/17/2024 in #community-showcase
Mojo web apps
I wrote a shared library in Go which the Mojo app uses. Once there’s a pure Mojo implementation I’ll switch to that. The apps are compiled on the server and run via Docker.
7 replies
MModular
Created by Peter Homola on 8/22/2024 in #community-showcase
Tokeniser & CSV parser
3 replies