Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 10:56

    davydovanton on performance-improvements-for-rack-monitorring

    (compare)

  • 10:55

    davydovanton on master

    Improve memory allocation for R… Merge pull request #34 from dry… (compare)

  • 10:55
    davydovanton closed #34
  • 02:25
    DaiAoki starred dry-rb/dry-types
  • Apr 01 14:39
    davydovanton commented #34
  • Apr 01 14:24
    dry-bot commented #34
  • Apr 01 14:19
    davydovanton synchronize #34
  • Apr 01 14:19

    davydovanton on performance-improvements-for-rack-monitorring

    Improve memory allocation for R… (compare)

  • Apr 01 14:17

    davydovanton on runtime-deps

    (compare)

  • Apr 01 14:17

    davydovanton on master

    Fix dry-events dependency in th… Merge pull request #36 from dry… (compare)

  • Apr 01 14:17
    davydovanton closed #36
  • Apr 01 14:15
    davydovanton opened #36
  • Apr 01 14:15

    davydovanton on runtime-deps

    Fix dry-events dependency in th… (compare)

  • Apr 01 10:59
    solnic commented #35
  • Apr 01 10:50
    flash-gordon commented #35
  • Apr 01 10:43
    davydovanton synchronize #34
  • Apr 01 10:43

    davydovanton on performance-improvements-for-rack-monitorring

    Improve memory allocation for R… (compare)

  • Apr 01 10:27

    dry-bot on master

    [devtools] sync (compare)

  • Apr 01 10:27

    solnic on broken-master

    (compare)

  • Apr 01 10:27

    solnic on master

    Fix dry-event version in runtim… Merge pull request #35 from dry… (compare)

Piotr Solnica
@solnic
Thoughts on coercible vs noncoercible type identifiers?
atm we use kernel coercions for all primitives but quite often you want to skip that
`
"coercible.string" maybe but I dunno
Andy Holland
@AMHOL
Don't forget about namespace in container for that :)
How about strict.string ?
Could use maybe/always but would probably be a bit weird
Piotr Solnica
@solnic
Then you can have things like "form_input.date"
Andy Holland
@AMHOL
:clap:
Piotr Solnica
@solnic
Hmm I like that yeah, so strict is just typecheck and coercible will first coerce then typecheck
Notice that type check can be anything not just class verification
Andy Holland
@AMHOL
Cool, so could just be a respond_to?
Piotr Solnica
@solnic
@AMHOL any constraint you want but I would prefer strict type check in most cases
Benjamin Klotz
@tak1n
optional_string haters gonna hate, but I love it :D
Piotr Solnica
@solnic
I am optional_string haters hater ;)
Benjamin Klotz
@tak1n
hehe :P
u are using kleisli under the hood right?
love unneeded questions xD
Piotr Solnica
@solnic
@tak1n yeah, I like kleisli
Benjamin Klotz
@tak1n
awesome :D
Piotr Solnica
@solnic
hey so maybe (no pun intended) we should switch to namespaced names?
Andy Holland
@AMHOL
+1
Piotr Solnica
@solnic
”strict.string” ”maybe.string” ”form_input.maybe.string”
Andy Holland
@AMHOL
here
Benjamin Klotz
@tak1n
+2
:D
Piotr Solnica
@solnic
holy moly I’m gonna love this lib (self-biased optimism)
Andy Holland
@AMHOL
:joy:
@solnic worth defining constants?
Piotr Solnica
@solnic
I don’t think we need constants
Andy Holland
@AMHOL
Dry::Data::STRICT_STRING = 'strict.string'.freeze
Dry::Hash.new(name: STRICT_STRING)
Piotr Solnica
@solnic
it’s gonna be more words to type
Benjamin Klotz
@tak1n
less string allocs
:D
Andy Holland
@AMHOL
That was my thinking
Benjamin Klotz
@tak1n
premature opt :D
Andy Holland
@AMHOL
lol
Piotr Solnica
@solnic
it’s gonna be better in mri 3.0 ;)
Andy Holland
@AMHOL
:laughing:
Piotr Solnica
@solnic
OPTIMIZE FOR THE UNKNOWN FUTURE ;)
Andy Holland
@AMHOL
mri 3.0 is gonna be Perl 6
Piotr Solnica
@solnic
luls
@AMHOL nice work on roda-flow, did you start using it in your project after all?
Andy Holland
@AMHOL
Yeah
Piotr Solnica
@solnic
cool man
Andy Holland
@AMHOL
It's working out nicely
Only a simple app though
Piotr Solnica
@solnic
Type.new(method(:constructor).to_proc.curry.(primitive), primitive) HATERS GONNA HATE ;)