Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 04:00
    MarcSteven starred dry-rb/dry-monads
  • Jan 19 22:36
  • Jan 19 21:53

    dry-bot on master

    [devtools] update CHANGELOG.md (compare)

  • Jan 19 21:52

    solnic on master

    Update changelog.yml (compare)

  • Jan 19 21:50
    Travis dry-rb/dry-view (master) errored (697)
  • Jan 19 21:47

    dry-bot on master

    [devtools] sync configs (compare)

  • Jan 19 21:47

    dry-bot on master

    [devtools] sync configs (compare)

  • Jan 19 21:47

    solnic on master

    Update sync_configs.yml (compare)

  • Jan 19 21:46

    solnic on master

    Update sync_configs.yml (compare)

  • Jan 19 21:46

    dry-bot on master

    [devtools] sync configs (compare)

  • Jan 19 21:46

    dry-bot on master

    [devtools] sync configs (compare)

  • Jan 19 21:46

    dry-bot on master

    [devtools] sync configs (compare)

  • Jan 19 21:46

    solnic on master

    Update sync_configs.yml (compare)

  • Jan 19 21:46

    dry-bot on master

    [devtools] sync configs (compare)

  • Jan 19 21:46

    solnic on master

    Update sync_configs.yml (compare)

  • Jan 19 21:46

    dry-bot on master

    [devtools] sync configs (compare)

  • Jan 19 21:46

    solnic on master

    Update sync_configs.yml (compare)

  • Jan 19 21:46

    solnic on master

    Update sync_configs.yml (compare)

  • Jan 19 21:45

    solnic on master

    Update sync_configs.yml (compare)

  • Jan 19 21:45

    dry-bot on master

    [devtools] sync configs (compare)

Andy Holland
@AMHOL
https://twitter.com/beanieboi/status/646307001195200512 is the best thing I've seen in ages :joy:
Luca Guidi
@jodosha
:cry:
Andy Holland
@AMHOL
String#red, String#green and String#colorize, this is the epitome of why Rails best practices are Rubys worst practices
Luca Guidi
@jodosha
@AMHOL Which gem defines these methods?
Andy Holland
@AMHOL
Looks like colored, from reading railsbp/rails_best_practices#256
Piotr Solnica
@solnic
@AMHOL I didn't
Andrew Kozin
@nepalez
Ruby is missing a feature that randomly switches between those implementations
Andy Holland
@AMHOL
:laughing:
Luca Guidi
@jodosha
@nepalez :joy_cat:
Andy Holland
@AMHOL
Pretty decent talk IMO
Piotr Solnica
@solnic
@AMHOL re coercions, in rom-http, we need a way to specify resource schema along with types for coercions, I wouldn’t put it in mappers
as in, not in higher-level mapper layer
Andy Holland
@AMHOL
That's an excellent point
I wish my brain worked like yours :laughing:
I completely failed to see that we want coercion regardless of whether we map to stucts, models or whatever else
https://github.com/fazibear/colorize I think Github should follow in Facebooks footsteps and add the equivalent of a "Dislike button"
Luca Guidi
@jodosha
String.colors OMG
Andy Holland
@AMHOL
:joy:
Piotr Solnica
@solnic
@AMHOL you don’t, trust me :joy:
(re my brain)
@AMHOL in rom-sql you have a) db schema with column names and types b) a driver that loads data and handles lower-level coercions (good ones do that in C ext, so it’s fast) and finally c) sequel code loading coerced tuples into hashes
with rom-http you don’t those, so you gotta provide that
...to make things sane
Andy Holland
@AMHOL
Is that with the rom header stuff?
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