Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Nathan Zender
    @zendern
    ❤️❤️❤️
    Andrew Fitzgerald
    @fitzoh
    So what are y'all's preferences regarding check granularity
    For instance, @DarthHater 's license check PR is failing with this message:ci/circleci: build — Your tests failed on CircleCI
    Nathan Zender
    @zendern
    @fitzoh eh.... I'd ask how easy is it to do in circleci first. Like if we wanted lint, test, license, integration test , etc.... are we just talking individual jobs unlike our one big one now??
    Jeffry Hesse
    @DarthHater
    It would be nice if it gave more useful feedback, for sure
    Jeffry Hesse
    @DarthHater
    Also welcome @protoworlock69 to gitter! This is one of my interns I'm teaching Golang too. @zendern thanks for getting Dahlia the approval on that PR!
    Dahlia (and a slew of others) are learning to code from me right now (big mistake, right?) so if any of you want to help out, I figured I'd intro them as they join
    @zendern @fitzoh , I've been talking with @nblair and when I looked deeper at Google's Addlicense, it actually doesn't have a pattern google/addlicense#38
    Which means, dun dun dun, we could go implement it!
    It's funny that it's in the docs
    Jeffry Hesse
    @DarthHater
    @fitzoh @zendern I'm gonna kill badger today
    Or attempt to
    I seem to remember @fitzoh saying he had a branch in motion to do that?
    Jeffry Hesse
    @DarthHater
    LOL I kinda wanna use this:
    Just because it says this in the README
    Author of project don't work at Google or Facebook and his name not Howard Chu or Brad Fitzpatrick. But I'm open for issue or contributions.
    Nathan Zender
    @zendern
    lol...but thats in the Disadvantages :laughing: :laughing:
    Andrew Fitzgerald
    @fitzoh
    nice
    Nathan Zender
    @zendern
    I'm fine with whatever but if @fitzoh is already deep into sqllite....id say kind up to him
    I'm not attached to anything
    Jeffry Hesse
    @DarthHater
    Lemme see if I can latch on to what you did
    Andrew Fitzgerald
    @fitzoh
    there are still open questions on how the cgo stuff looks w/ multi-platform
    Jeffry Hesse
    @DarthHater
    Yeah that scares me
    Nathan Zender
    @zendern
    @fitzoh in that WIP do you deal with TTL anywhere?? am i just missing it??
    Andrew Fitzgerald
    @fitzoh
    not really
    that was next on the list
    this was the start of that effort:
    func purgeExpiredEntries(db *sql.DB) error{
        db.Exec("DELETE FROM nancy_cache WHERE insert_time < ?", )
    }
    Jeffry Hesse
    @DarthHater
    It's funny, but in looking for simple key value stores, it's damn near impossible to find anything
    Everything is engineered for like millions of keys, etc...
    So it's got locking, etc... transactions, blah blah blah
    And for what we are doing it's like uhhhhh, that's way too heavy for a mostly single use process
    Nathan Zender
    @zendern
    yeah......pudge looks to be the simplest thus far so that might be a good find all depending.
    Jeffry Hesse
    @DarthHater
    The only thing I don't like about pudge is it's in memory and then saved to disk every second or so
    That's how it avoids transactions, etc...
    Nathan Zender
    @zendern
        Default store system: like memcache + file storage. Pudge uses in-memory hashmap for keys, and writes values to files (no value data stored in memory). But you may use inmemory mode for values, with custom config:
    
    cfg = pudge.DefaultConfig()
    cfg.StoreMode = 2
    db, err := pudge.Open(dbPrefix+"/"+group, cfg)
    ...
    db.Counter(key, val)
    
    In that case, all data is stored in memory and will be stored on disk only on Close.
    If i read this right though ..... it stores in memory and on Close will be flushed to disk....seems fine
    Jeffry Hesse
    @DarthHater
    There's an interval thing I saw too
    Where you can say every second or whatever
    And yeah that SEEMS ok
    It's a single use process, more or less
    Jeffry Hesse
    @DarthHater
    I'm game to give it a twirl
    I'll probably extract the DB shit from OSS Index if I do that, too
    Or at least make it internal
    Nathan Zender
    @zendern
    :+1:
    Jeffry Hesse
    @DarthHater
    First step mostly just moving it out of ossindex
    Jeffry Hesse
    @DarthHater
    Aight just got to where it's extracted
    Nancy still works, too