Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 02:30

    drujensen on dj-upgrade-micrate

    (compare)

  • 02:29

    drujensen on master

    Upgrade to latest micrate (#124… (compare)

  • 02:29
    drujensen closed #1241
  • Nov 22 22:22
  • Nov 22 11:24
  • Nov 22 04:02
    drujensen synchronize #1241
  • Nov 22 04:02

    drujensen on dj-upgrade-micrate

    upgrade node (compare)

  • Nov 22 03:48
    drujensen synchronize #1241
  • Nov 22 03:48

    drujensen on dj-upgrade-micrate

    upgrade docker version (compare)

  • Nov 21 17:28
    drujensen opened #1241
  • Nov 21 17:27

    drujensen on dj-upgrade-micrate

    Upgrade to latest micrate This… (compare)

  • Nov 17 15:42

    drujensen on master

    Unify AbstractStore#update API … (compare)

  • Nov 17 15:42
    drujensen closed #1240
  • Nov 17 15:42
    drujensen closed #1239
  • Nov 17 14:46
    bcardiff opened #1240
  • Nov 16 00:54
  • Nov 14 22:48
    drujensen commented #1239
  • Nov 13 20:02
    bcardiff opened #1239
  • Nov 13 15:48
    bcardiff opened #434
  • Nov 12 13:52
    Blacksmoke16 labeled #433
Elias Perez
@eliasjpr
@andrewc910 when do you think the Motion library will be ready? I would like to use it in a project I am working on
Andrew
@andrewc910

@eliasjpr Define done. The initial release would probably be this time next week. I want to do another pass on all the code this coming week.

However, i wouldn't recommend putting it in a production application. It is definitely still alpha. The initial release will only have invoking motions from frontend interactions. It won't have timers or model broadcasts for some time if those are the features you are looking for.

Elias Perez
@eliasjpr
timers = interval refresh?
Andrew
@andrewc910
Yeah
Elias Perez
@eliasjpr
That should be straightforward to add
Andrew
@andrewc910
Yeah i am actually looking into it now. I just want to make sure the whole repo is stable (enough) before i keep adding more features.
Andrew
@andrewc910
Okay, I've been doing some research. Rails offers a websocket event loop that is pretty easy to hook into to do a periodic timer. It doesn't look like amber has such a complex setup. @eliasjpr how would you recommend I go about doing a timer in amber? I have only worked with the JavaScript event loop, never even thought about building one. I have also never worked with fibers, parallelism or concurrency. What do you recommend I read on to begin thinking about an implementation?
Andrew
@andrewc910
So given that crystal can spawn millions of fibers on a 64bit machine. I am thinking that may be best?
The user hits a page, that registers a new WS sub. Spawn a fiber that will do some action, then sleep for x, then do it again. When the user leaves the page, kill that fiber? Does anything sound inheritently wrong with that?
Elias Perez
@eliasjpr
Maybe something like
def every(duration : Time::Span, &block)
      spawn do
        while connected?
          sleep duration
          block.call if connected?
        end
      end
    end
Andrew
@andrewc910
Perfect! That's exactly what I came up with earlier today.
Stephen Jackson
@sjackson
Hi I'm new to amber really liking the speed but I was wondering if it supports crystal 35.1?
Andrew
@andrewc910
@sjackson Yes 0.35.1 is supported. Its the crystal version I use 😁
Massimiliano Bertinetti
@maxbertinetti

Hi guys

Unable to satisfy the following requirements:

- `pg (~> 0.21.1)` required by `amber 0.35.0+git.commit.4e749b4cc6a6abab470f9fd2c147d77b018a6a17`
- `pg (branch master)` required by `clear 0.8+git.commit.4120e5e9bdea4d1ea78c9c7c74b6deb65bfcebe2`
Failed to resolve dependencies

It’s something that can be resolved?

(Also I think is the same version….)
Andrew Smith
@silentworks
I'm trying to upgrade from amber 0.9.0 to 0.35 and I am being hit with errors all over, I am now getting this error which doesn't have much meaning to me right now and I can't see anything in the controllers in 0.35 that has changed this drastically.
Error: can't infer the type of instance variable '@comment' of CommentController
George Dietrich
@Blacksmoke16
wew, 0.9.0 to 0.35.0
Andrew Smith
@silentworks
hehe
Yeah I haven't touched this project in a while and haven't done much with amber since
George Dietrich
@Blacksmoke16
i imagine most of the errors are going to be due to crystal changes
Andrew Smith
@silentworks
Screenshot 2020-09-04 at 21.22.13.png
So in my newly installed amber 0.35 app, I can't get it to build either because its complaining about log ^
George Dietrich
@Blacksmoke16
what crystal version are you on?
Andrew Smith
@silentworks
0.30.1
George Dietrich
@Blacksmoke16
yea you'll need to update
0.35.1 is latest
and required
Andrew Smith
@silentworks
ok trying again now with that version
If that works then it might be easier to rewrite all my code in this new project than trying to upgrade the 0.9.0 one
George Dietrich
@Blacksmoke16
whats the project?
Andrew Smith
@silentworks
its a reddit clone
just a pet project
George Dietrich
@Blacksmoke16
gotcha
Andrew Smith
@silentworks
ok the build worked on the new amber project now that I upgraded to 0.35.1 of crystal
George Dietrich
@Blacksmoke16
:tada:
Elias Perez
@eliasjpr
Nice!
Andrew Smith
@silentworks
if I modify a model, would that create a new migration if amber watch is running?
George Dietrich
@Blacksmoke16
i doubt it, prob easy enough to try it tho
Andrew Smith
@silentworks
I'm almost certain in 0.9.0 there was something like rails g migration where you could also pass the filed names amber g migration add_new_fields_to_model name:string email:string
was this ever the case or was I dreaming
its so hard to remember things from 2 years ago
George Dietrich
@Blacksmoke16
i think it is, granted i never used amber so only going off of what i heard :P
Andrew Smith
@silentworks
oh right, I thought you were a amber core dev
George Dietrich
@Blacksmoke16
more so granite
Stephen Jackson
@sjackson
@andrewc910 Excellent!
Andrew Smith
@silentworks
The code examples in the documentation is hard to read due to the colours chosen
Screenshot 2020-09-08 at 11.55.17.png
George Dietrich
@Blacksmoke16
mine has white text, try clearing cache/refreshing
or maybe you have some extension thats altering it
Andrew Smith
@silentworks
That's weird, because in Firefox its that way but in Chrome I see white text