Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 19:07
    jjw starred dry-rb/dry-types
  • 18:13

    flash-gordon on master

    Remove unreachable method (compare)

  • 18:11

    flash-gordon on master

    Remove Dry::Types.type_keys It… (compare)

  • 18:09

    flash-gordon on master

    Remove unreachable code (compare)

  • 18:04

    flash-gordon on master

    Coverage for function.rb (compare)

  • 17:15

    flash-gordon on fix-maybe-call-safe

    (compare)

  • 17:15

    flash-gordon on master

    Fix behavior of Maybe#call_safe… Merge pull request #380 from dr… (compare)

  • 17:15
    flash-gordon closed #380
  • 17:13
    flash-gordon synchronize #380
  • 17:13

    flash-gordon on fix-maybe-call-safe

    Fix behavior of Maybe#call_safe… (compare)

  • 17:12
    flash-gordon opened #380
  • 17:11

    flash-gordon on fix-maybe-call-safe

    Fix behavior of Maybe#call_safe… (compare)

  • 17:00

    flash-gordon on fix-maybe-try

    (compare)

  • 17:00

    flash-gordon on master

    Fix behavior of Types::Maybe#try Merge pull request #379 from dr… (compare)

  • 17:00
    flash-gordon closed #379
  • 15:09

    flash-gordon on master

    Fix typo Merge pull request #67 from gru… (compare)

  • 15:09
    flash-gordon closed #67
  • 14:43
    flash-gordon opened #379
  • 14:43

    flash-gordon on fix-maybe-try

    Fix behavior of Types::Maybe#try (compare)

  • 14:30

    flash-gordon on master

    Lax coverage (compare)

Andy Holland
@AMHOL
WRT the schema?
Piotr Solnica
@solnic
yes, more or less, we had a schema concept but I removed it, we can introduce it in a better way, hopefully it could be reusable across adapters that need it
oops, just realized that’s not rom-rb chat :joy:
Andy Holland
@AMHOL
:p
Piotr Solnica
@solnic
much chats, such confusion, wow
Piotr Solnica
@solnic
Comparison:
            dry-data:   383813.7 i/s
              virtus:    36612.4 i/s - 10.48x slower
I’m going to count that as a win
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