Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ivan Yonchovski
    @yyoncho
    Something interesting on vscode side - https://twitter.com/hediet_dev/status/1359093978570907648
    David DeSimone
    @DavidDeSimone
    I think we could do something similar
    honestly looking at their codebase we could run half of their code within ng, we would just need to write logic to translate the code/directory structure into buffers instead of vs code objects
    its a very interesting concept. The authors could take it further beyond just GH
    David DeSimone
    @DavidDeSimone
    image.png
    my latest experiment. Since we included all of deno, there's no reason why emacs can't literally do anything deno can do from the command line
    David DeSimone
    @DavidDeSimone
    it also lets emacs be a typescript/javascript lsp server
    brotzeit
    @brotzeit

    it also lets emacs be a typescript/javascript lsp server

    nice :D

    Ivan Yonchovski
    @yyoncho
    @DavidDeSimone that will have access to elisp, right?
    David DeSimone
    @DavidDeSimone
    right now the repl doesn't, but I'm working to hook it up
    my first implementation is just as if you invoked deno <FLAGS> on the command inline
    one of the nice thing for us is that now we can use deno fmt, deno lint and deno test right from emacs without having to install deno stand alone
    David DeSimone
    @DavidDeSimone
    image.png
    @yyoncho latest iteration
    Murilo Pereira
    @mpereira
    noice
    David DeSimone
    @DavidDeSimone
    going to merge emacs-ng/emacs-ng#170 unless anyone has any issues
    brotzeit
    @brotzeit
    :+1:
    brotzeit
    @brotzeit
    I have a working solution for git blame, but I was disappointed of the performance which didn't really improve much. And then I found this libgit2/libgit2#3027 :(
    maybe we can improve it a little more by creating the overlays with rust functions...
    brotzeit
    @brotzeit
    it also times out for very large files
    petr-tik
    @petr-tik
    I find that standard magit blame chokes on files with a 10+ year history
    brotzeit
    @brotzeit
    @petr-tik but it still works right even if it takes longer ?
    petr-tik
    @petr-tik
    Yes
    David DeSimone
    @DavidDeSimone
    has anyone tried spacemacs on emacs-ng?
    1 reply
    David DeSimone
    @DavidDeSimone
    I think that will be in 1.8 based on the chatter I'm hearing
    petr-tik
    @petr-tik

    also unrelated but this is fun: https://twitter.com/caspervonb/status/1361903415278723079

    Why unrelated? It's time to add some 3D rendering to emacs like vim-cubed
    https://github.com/oakes/vim_cubed

    David DeSimone
    @DavidDeSimone
    unrelated to me question about spacemacs, I should have clarified
    petr-tik
    @petr-tik
    the vim cubed idea was a joke - although
    David DeSimone
    @DavidDeSimone
    We might want to put in the README we dont support Windows at the current moment
    brotzeit
    @brotzeit
    makes sense
    but macos works right ?
    I mean without any errors that have open issues
    David DeSimone
    @DavidDeSimone
    As far as i am aware, macOS is working fine
    David DeSimone
    @DavidDeSimone
    I'm going to make a push on windows tonight - same idea as last time, if I can get it working, I am going to upload a precompiled binary for now so people can try it, and document the general build steps
    but no CI integration
    Ivan Yonchovski
    @yyoncho
    Btw I did some benchmarking on forge package, because it seems like is slower than what I would expect. It turned out that it is slow due to sql layer
    David DeSimone
    @DavidDeSimone
    forge package?
    Ivan Yonchovski
    @yyoncho
    forge is a fronted for github
    it allows you to browse PRs
    David DeSimone
    @DavidDeSimone
    ah, gotcha
    Ivan Yonchovski
    @yyoncho
    Issues and so on.
    (defvar db (emacsql-sqlite "company.db"))
    (emacsql db [:create-table people ([name id salary])])
    (emacsql db [:insert :into people
                         :values (["Jeff"  1000 60000.0] ["Susan" 1001 64000.0])])
    (emacsql db [:select [name id] :from people])
    => (("Jeff" 1000) ("Susan" 1001) ("Jeff" 1000) ("Susan" 1001))
    the good thing is that everthing in emacssql is defgeneric
    David DeSimone
    @DavidDeSimone
    LNK1189 "library limit of 65535 obj exceeded"
    Ivan Yonchovski
    @yyoncho
    @DavidDeSimone you had somewhere sqlite example?
    Ivan Yonchovski
    @yyoncho
    NVM, the sqlite example from their docs is good enough
    Ivan Yonchovski
    @yyoncho
    @DavidDeSimone what is the right way to do this:
    lisp.setq(lisp.symbols.my_result, new DB("test.db"));
    
    lisp.defun({
        name: "db",
        func: (db) => {
            return Array.from(db.query("SELECT * FROM people"));
        }
    });
    is there a way to wrap js object, pass it to elisp layer and then unwrap it in the opposite direction?