profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/maennchen/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Jonatan Männchen maennchen JOSHMARTIN GmbH Speicher - Switzerland https://maennchen.dev Partner and Software Engineer @jshmrtn

LuvDaSun/angular-hal 119

HAL client for angularjs

jshmrtn/iona 21

Document generation from Elixir, using LaTeX. (Alpha: Do not use in production yet.)

c-rack/quantum-elixir 4

Cron-like job scheduler for Elixir

jshmrtn/latex-zeplin-extension 0

Latex Zeplin Extension

maennchen/awesome-elixir 0

A curated list of amazingly awesome Elixir and Erlang libraries, resources and shiny things. Updates:

maennchen/bash-utils 0

A collection of pocket-size bash script utilities

maennchen/BazingaHateoasBundle 0

Integration of the Hateoas library into Symfony2.

maennchen/bootstrap-bundle 0

BraincraftedBootstrapBundle integrates Bootstrap into Symfony2 by providing templates, Twig extensions, services and commands.

maennchen/countriex 0

All sorts of useful information about every country. A pure elixir port of the ruby Countries gem

maennchen/crowd-radius-server 0

A RADIUS server that delegates authentication to a Atlassian Crowd installation via the Crowd REST API.

push eventelixir-lang/elixir

José Valim

commit sha 8fca53ad314501e193a4ab21ec2191a0f37600ce

Ensure deprecated macros emit warnings

view details

push time in 4 hours

push eventelixir-lang/elixir

José Valim

commit sha dac03b17c214689f940864de37c2286bed87d336

Ensure deprecated macros emit warnings

view details

push time in 4 hours

created repositorymcrumm/dos

created time in 5 hours

pull request commentelixir-lang/elixir

Fix normalization of partial keyword list elements

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:

doorgan

comment created time in 7 hours

push eventelixir-lang/elixir

Dorgan

commit sha fb7179ff713c7fc9444307eb563c289a03505c1c

Fix normalization of partial keyword list elements (#11084)

view details

push time in 7 hours

PR merged elixir-lang/elixir

Fix normalization of partial keyword list elements

The Elixir.Normalizer lets us feed any arbitrary AST to the formatter, but if the user provides a list, and an element is a 2-tuple that is not one of the last elements, and the first element is a wrapped atom with format: :keyword metadata, then the formatter will happily print it as a keyword list element, despite it being invalid syntax, for example:

iex> opts = [literal_encoder: &{:ok, {:__block__, &2, [&1]}}]
iex> {_, _, [[tuple]]} = Code.string_to_quoted("[a: b]", opts)
iex> Macro.to_string([tuple, :not_a_tuple, tuple])
"[a: b, :not_a_tuple, a: b]"

With this PR we would get the expected output:

iex> Macro.to_string([tuple, :not_a_tuple, tuple])
"[{:a, b}, :not_a_tuple, a: b]"
+43 -1

0 comment

2 changed files

doorgan

pr closed time in 7 hours

PR opened elixir-lang/elixir

Fix normalization of partial keyword list elements

The Elixir.Normalizer lets us feed any arbitrary AST to the formatter, but if the user provides a list, and an element is a 2-tuple that is not one of the last elements, and the first element is a wrapped atom with format: :keyword metadata, then the formatter will happily print it as a keyword list element, despite it being invalid syntax, for example:

iex> opts = [literal_encoder: &{:ok, {:__block__, &2, [&1]}}]
iex> {_, _, [[tuple]]} = Code.string_to_quoted("[a: b]", opts)
iex> Macro.to_string([tuple, :not_a_tuple, tuple])
"[a: b, :not_a_tuple, a: b]"

With this PR we would get the expected output:

iex> Macro.to_string([tuple, :not_a_tuple, tuple])
"[{:a, b}, :not_a_tuple, a: b]"
+43 -1

0 comment

2 changed files

pr created time in 7 hours

push eventjshmrtn/hygeia

Leo Zurbriggen

commit sha a4b33265df4835c9b1da25c54ae306035714c351

fix surface formatting

view details

push time in 10 hours

push eventjshmrtn/hygeia

Leo Zurbriggen

commit sha 15c4806e4669618cde6c0a8d611986662ef957bf

fix inbox apply card styles

view details

push time in 10 hours

push eventjshmrtn/hygeia

Leo Zurbriggen

commit sha 3a0075cc36221197fec3247c10b1af744cb26d2f

import header, apply styles

view details

Leo Zurbriggen

commit sha 94c6901735797c6668a4150f8d563e0a95d2079d

import show styles

view details

Leo Zurbriggen

commit sha f40535d470719eccde9e52f2544cd6b7d4766026

import table styles

view details

Leo Zurbriggen

commit sha a7e69c2106f62fd3ff1743b52bf56bd4ace126b4

style file upload form

view details

push time in 10 hours

release elixir-cldr/cldr_html

v0.5.0

released time in 11 hours

release elixir-cldr/cldr_collation

v0.5.0

released time in 13 hours

issue commentmaennchen/ZipStream-PHP

Getting it working on php 5.4

till we update their php soon

'bout time! :p

KennySmash

comment created time in 14 hours

issue commentmaennchen/ZipStream-PHP

Getting it working on php 5.4

@maennchen Thanks for the heads-up on the older ver, Its much appreciated. I don't need any support for it since its just a stop-gap till we update their php soon

KennySmash

comment created time in 14 hours

issue openedmaennchen/ZipStream-PHP

Getting it working on php 5.4

Not an Issue but is there any remote chance of getting this working in php 5.4?
I know I shouldn't but we have a feature that I need to ship in a 'good enough'
state till we are able to update our client systems?

created time in 14 hours

push eventelixir-lang/elixir

sabiwara

commit sha 2a4312412be39303af08ccd0cef81b5bbcd55eac

Optimize Enum.zip/2 (#11083)

view details

push time in 16 hours

pull request commentelixir-lang/elixir

Optimize Enum.zip/2

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart:

sabiwara

comment created time in 16 hours

PR merged elixir-lang/elixir

Optimize Enum.zip/2

Hi! I noticed that the generic implementation of Enum.zip/2 relying on zip_with with an anonymous function was significantly slower on lists than having dedicated private functions. Some quick benchmarks suggest a speedup of 2.5~3x compared to the current implementation: https://github.com/sabiwara/elixir_benches/blob/main/bench/fast_enum_zip.results.txt

Note: I went with a tail-recursive implementation, but I benchmarked a body-recursive version as well and it seems noticeably slower (due to the JIT?) so I kept the former.

+11 -8

0 comment

1 changed file

sabiwara

pr closed time in 16 hours

create barnchjshmrtn/hygeia

branch : dependabot/hex/jsone-1.6.0

created branch time in 18 hours

PR opened jshmrtn/hygeia

Bump jsone from 1.5.7 to 1.6.0

Bumps jsone from 1.5.7 to 1.6.0. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/sile/jsone/commit/aff8c09dfe09bd98d4d9e40a09835b7cb4f55370"><code>aff8c09</code></a> v1.6.0</li> <li><a href="https://github.com/sile/jsone/commit/fe55cc584706b388cfdd2318525f052dc879bdb4"><code>fe55cc5</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/sile/jsone/issues/60">#60</a> from sile/optimize-encoding-unescaped-string</li> <li><a href="https://github.com/sile/jsone/commit/cd831d48418c8430c5482befa4d4b53be32014a8"><code>cd831d4</code></a> Optimize encoding functions for unescaped strings</li> <li><a href="https://github.com/sile/jsone/commit/25cc8f37a292139a7afd29b3807cb5bcc1a04c67"><code>25cc8f3</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/sile/jsone/issues/59">#59</a> from sile/github-actions</li> <li><a href="https://github.com/sile/jsone/commit/9a6b8ef659f77853ed97c2f39e1cdba929dc096d"><code>9a6b8ef</code></a> Switch to GitHub Actions</li> <li>See full diff in <a href="https://github.com/sile/jsone/compare/1.5.7...1.6.0">compare view</a></li> </ul> </details> <br />

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


<details> <summary>Dependabot commands and options</summary> <br />

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>

+1 -1

0 comment

1 changed file

pr created time in 18 hours

PR opened elixir-lang/elixir

Optimize Enum.zip/2

Hi! I noticed that the generic implementation of Enum.zip/2 relying on zip_with with an anonymous function was significantly slower on lists than having dedicated private functions. Some quick benchmarks suggest a speedup of 2.5~3x compared to the current implementation: https://github.com/sabiwara/elixir_benches/blob/main/bench/fast_enum_zip.results.txt

Note: I went with a tail-recursive implementation, but I benchmarked a body-recursive version as well and it seems noticeably slower (due to the JIT?) so I kept the former.

+12 -8

0 comment

1 changed file

pr created time in a day

startedQuinnWilton/easywire

started time in a day

push eventelixir-lang/elixir

José Valim

commit sha 76dfedb2e39f9bdfce68cd2bdca36c41370e5e31

Compile most recently changed files first

view details

push time in a day

push eventelixir-lang/elixir

José Valim

commit sha d9028a8d0405d19076418376ab50bdc83ff72974

Compile most recently changed files first

view details

push time in a day

pull request commentelixir-lang/elixir

Add `--cerl` flag to `elixir` shell script.

Btw, note that you can currently do this:

ELIXIR_CLI_DRY_RUN=1 elixir -e "IO.puts :ok"

And that will print the whole command we run. You can then modify it to use cerl. Could this be enough? It definitely gives more flexibility.

hansihe

comment created time in a day

Pull request review commentelixir-lang/elixir

Add `--cerl` flag to `elixir` shell script.

 if [ -n "$RUN_ERL_PIPE" ]; then   mkdir -p "$RUN_ERL_PIPE"   mkdir -p "$RUN_ERL_LOG"   ERL_EXEC="run_erl"-  set -- "$ERTS_BIN$ERL_EXEC" -daemon "$RUN_ERL_PIPE/" "$RUN_ERL_LOG/" "$ESCAPED"+  set -- "$ERTS_BIN$ERL_EXEC" $CERL_ARGS -daemon "$RUN_ERL_PIPE/" "$RUN_ERL_LOG/" "$ESCAPED"

Not sure if this makes a difference here because we are setting ERL_EXEC="run_erl" just above.

hansihe

comment created time in a day

Pull request review commentelixir-lang/elixir

Add `--cerl` flag to `elixir` shell script.

 while [ $I -le $LENGTH ]; do     --werl)         if [ "$OS" = "Windows_NT" ]; then ERL_EXEC="werl"; fi         ;;+    --cerl)+        if ! [ -x "$(command -v cerl)" ]; then+          echo 'Error: cerl not found in path.' >&2+          exit 1+        fi+        S=2+        ERL_EXEC="$(which cerl)"

Can this be cerl instead?

        ERL_EXEC="cerl"
hansihe

comment created time in a day

pull request commentelixir-lang/elixir

Add `--cerl` flag to `elixir` shell script.

This would be a dramatic ergonomic improvement from before, the way I usually did it was to hack changes into the elixir script manually.

hansihe

comment created time in a day

PR opened elixir-lang/elixir

Add `--cerl` flag to `elixir` shell script.

The primary use case for this is making it easier to debug NIFs.

A new --cerl argument is added to elixir.

This will run elixir by the cerl command, which contains a variety of utilities for debugging, including:

  • --cerl "-lldb" - will run the erts within lldb, for debugging hard crashes
  • --cerl "-valgrind" - will run the erts within valgrid, useful for finding memory issues
  • all other flags documented within the cerl script from OTP

I am not a shell script expert, so I would very much appreciate comments on anything that could be done better.

+12 -2

0 comment

1 changed file

pr created time in a day

push eventelixir-lang/elixir

José Valim

commit sha e5fa840b1cf9888e8a5bc53fe3bf6ba270033144

Allow :eof on IO.getn (#11081)

view details

push time in 2 days