Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 12 21:34
    flash-gordon commented #376
  • Dec 12 21:34
    flash-gordon labeled #376
  • Dec 12 21:34
    flash-gordon opened #376
  • Dec 12 19:32
    RyanLafferty starred dry-rb/dry-types
  • Dec 12 05:53
    technofreak starred dry-rb/dry-monads
  • Dec 12 00:14
    thekuwayama starred dry-rb/dry-monads
  • Dec 11 09:29
    blasterun starred dry-rb/dry-monads
  • Dec 11 08:34
    flash-gordon closed #115
  • Dec 11 08:34
    flash-gordon commented #115
  • Dec 11 08:31

    flash-gordon on v1.3.3

    (compare)

  • Dec 11 08:30

    flash-gordon on master

    Bump version to 1.3.3 (compare)

  • Dec 11 08:30

    flash-gordon on master

    Update CHANGELOG (compare)

  • Dec 10 23:46
    johnmaxwell commented #116
  • Dec 10 21:54

    flash-gordon on master

    Halt with mutable backtrace Ex… Merge pull request #116 from jo… (compare)

  • Dec 10 21:54
    flash-gordon closed #116
  • Dec 10 21:54
    flash-gordon commented #116
  • Dec 10 21:49
    johnmaxwell commented #116
  • Dec 10 21:47
    johnmaxwell commented #116
  • Dec 10 21:43
    johnmaxwell commented #116
  • Dec 10 21:39
    johnmaxwell commented #116
Andy Holland
@AMHOL
w00t
Luca Guidi
@jodosha
Speaking of speed, did anyone played with Rust as native ext for Ruby?
Piotr Solnica
@solnic
no, but yehuda showed a rust ext that was 100000x shorter than its C equaivalent and few times faster at BaRuCo this year
so that is something I need to look into for sure
ie port transproc functions to rust
and have rom 10 x faster than AR rather than “just” 2 x :joy:
Andy Holland
@AMHOL
:joy:
Piotr Solnica
@solnic
Calculating -------------------------------------
              virtus     3.466k i/100ms
     fast_attributes    31.380k i/100ms
              attrio     6.127k i/100ms
            dry-data    30.888k i/100ms
-------------------------------------------------
              virtus     36.223k (± 3.6%) i/s -    183.698k
     fast_attributes    386.340k (± 3.0%) i/s -      1.946M
              attrio     62.879k (± 5.6%) i/s -    318.604k
            dry-data    390.033k (± 5.7%) i/s -      1.946M

Comparison:
            dry-data:   390032.7 i/s
     fast_attributes:   386339.9 i/s - 1.01x slower
              attrio:    62878.6 i/s - 6.20x slower
              virtus:    36222.8 i/s - 10.77x slower
Hannes Nevalainen
@kwando
much excite :clap:
Hannes Nevalainen
@kwando
@solnic ah, just found out you can register your own "constructor" for types in dry-data! then I can create a custom coercion =)
Piotr Solnica
@solnic
@kwando but please wait for a release, things are very likely to change ;)
unless you’re just OK with experimenting, feedback most welcome as always
Hannes Nevalainen
@kwando
@solnic I just took it for a spin =)
Piotr Solnica
@solnic
@AMHOL are you planning to tackle container-based dry-data refactor once more or do you want me to take care of this?
Andy Holland
@AMHOL
@solnic not sure when I'll have time TBH :(
Don't want to miss the point again either :joy:
Piotr Solnica
@solnic
@AMHOL I desperately need this project at work so I’d like to wrap it up and push a release
Andy Holland
@AMHOL
Ahh OK, anything wrong with releasing 0.0.1 as-is?
Piotr Solnica
@solnic
@AMHOL not sure, it doesn’t feel solid enough for me
Andy Holland
@AMHOL
What do you feel is missing?
Hannes Nevalainen
@kwando
@solnic +3 for releasing, need it too =)
Andy Holland
@AMHOL
lol
Piotr Solnica
@solnic
@kwando planning to do it on Friday
Hannes Nevalainen
@kwando
cool, I'll try to survive until then ;)
Piotr Solnica
@solnic
@AMHOL just took a look, typed-hash has a couple of things missing, like gathering type-errors from all keys, I’m also not sure if I want to release it with global container
@kwando haha ok ;)
Andy Holland
@AMHOL
Yeah, would be nice to get the container sorted, raises a few issues though, like auto-registration :laughing:
Piotr Solnica
@solnic
switching to a local container will require a different DSL so it needs some work
I’ll try to do that on Friday
Hannes Nevalainen
@kwando
it is really amazing what value types / objects can do for your code clarity =)
Hunter Madison
@hmadison
Dependent types also do a lot of work
If you never looked at them, its a cool concept
Hannes Nevalainen
@kwando
never looked at dependent types, do you know some short ruby code that would illustrate it?
Piotr Solnica
@solnic
@hmadison I haven’t thought about dependent types actually
@kwando no, sorry, nothing from the top of my head (also googling yields no concrete results)
Hunter Madison
@hmadison
No i dont
Hannes Nevalainen
@kwando
aw =/
Piotr Solnica
@solnic
@AMHOL @kwando ^
I also ported the thing to use dry-container so now we can simply register types under symbol keys
Luca Guidi
@jodosha
OMG it returns None :heart:
Piotr Solnica
@solnic
@jodosha hah yeah…I really really wanted that
I wonder if it makes sense to register optional types for all built-in primitives so that you get it OOTB hmmm
also optional_string vs maybe_string? I kinda like “maybe” more :)
@AMHOL I’m thinking about a predicate micro-system that we could share between dry-data and dry-validators, feels like this could be a generic functionality
Andy Holland
@AMHOL
@solnic v.nice :smile:
Piotr Solnica
@solnic
@AMHOL I’m sorry I didn’t pursue our “distributed TDD” idea…but I’m happy to do that next time with something that’s less urgent for me, sounds good?
another thing is separation between simple type-check and coercible-type-check, not sure how those things should be called in container :/
Andy Holland
@AMHOL
@solnic you did a much better job than I would have anyway
Piotr Solnica
@solnic
@AMHOL nah :) but thanks ;)