!NicAJNwJawmHrEhqZs:matrix.org

Ement.el

442 Members
Ement.el, a Matrix client for Emacs. | https://github.com/alphapapa/ement.el112 Servers

Load older messages


SenderMessageTime
24 Sep 2024
@phil.catalyst:matrix.orgPhil

I used gnuplot. Or more specifically, I installed gnuplot which I've never used before, looked up how to use it, and tried out some different options until I found one I liked :) It was just a matter of putting the numbers in a file, and running plot commands on that file from gnuplot's command line.

09:29:21
@gilganix:matrix.orgMist

Oh, ol' gnuplot. It's a very cool tool indeed! Used it for my math notes until I decided to go a little crazy and do some python plots

09:38:02
@gilganix:matrix.orgMist

Wonder if should do some lisp once for fun

09:38:07
@gilganix:matrix.orgMist

Interesting, there are some cool libraries on GH for lisp plotting 🤔

09:40:15
@phil.catalyst:matrix.orgPhil

I've occasionally seen screenshots of some nice embedded org-mode plots – people generating data via org-babel code blocks, and then passing that to gnuplot (or whatever), and having the resulting image embedded into the output block. Pretty nice. (And maybe more or less what you were doing?)

09:53:38
@gilganix:matrix.orgMist
In reply to Phil

I've occasionally seen screenshots of some nice embedded org-mode plots – people generating data via org-babel code blocks, and then passing that to gnuplot (or whatever), and having the resulting image embedded into the output block. Pretty nice. (And maybe more or less what you were doing?)

Yup, that is what I was doing indeed! Thinking about my setup atm and what I should go with for this new class

11:40:09
@gilganix:matrix.orgMist

Will come back with setup if you are interested :)

11:40:14
@suckless_shill:matrix.orgviz
In reply to Mist

Interesting, there are some cool libraries on GH for lisp plotting 🤔

Racket's plotting lib is solid
11:54:09
@alphapapa:matrix.orgalphapapa
In reply to @gilganix:matrix.org

The profiler I sent on the issue page was started after I had manually done (setq ement-auto-sync nil), so I think it should be good

Setting that variable stops future automatic syncs, but an outstanding sync won't be interrupted, so you may need to wait until the ement-syncs variable is nil before starting the profiler. Sorry that I forgot to mention that.
11:54:41
@alphapapa:matrix.orgalphapapa
In reply to @phil.catalyst:matrix.org

I've no idea why there's a relative cliff between the bottom and top timings. Maybe interesting, or maybe just GC happening or something.

I'm nearly certain that it's GC. If we start doing our thing and Emacs is close to doing GC anyway, then our work triggers it.

I wonder if using that package that does GC while idle would solve that.

11:56:35
@alphapapa:matrix.orgalphapapa
In reply to @ruther:ditigal.xyz
Hah, currently when I open this room in Element X on Android it crashes. I wanted to view the image since Fluffychat doesn't seem to handle authenticated media
Wow. Please be sure to report that.
11:57:06
@phil.catalyst:matrix.orgPhil
In reply to alphapapa
In reply to @gilganix:matrix.org

The profiler I sent on the issue page was started after I had manually done (setq ement-auto-sync nil), so I think it should be good

Setting that variable stops future automatic syncs, but an outstanding sync won't be interrupted, so you may need to wait until the ement-syncs variable is nil before starting the profiler. Sorry that I forgot to mention that.

Aha. My apologies for suggesting a driver error with the profiler then, Mist.

12:01:16
@gilganix:matrix.orgMist

No worries Phil! :)

12:14:06
@gilganix:matrix.orgMist

Also alphapapa, want me to redo the profile-report bit?

12:14:53
@alphapapa:matrix.orgalphapapa
In reply to Phil
In reply to alphapapa
In reply to @gilganix:matrix.org

The profiler I sent on the issue page was started after I had manually done (setq ement-auto-sync nil), so I think it should be good

Setting that variable stops future automatic syncs, but an outstanding sync won't be interrupted, so you may need to wait until the ement-syncs variable is nil before starting the profiler. Sorry that I forgot to mention that.

Aha. My apologies for suggesting a driver error with the profiler then, Mist.

Well, I think I was wrong too: ement-syncs may never be nil as long as you're "connected", but the sync value for the session may be. Anyway…

12:19:06
@alphapapa:matrix.orgalphapapa
In reply to Mist

Also alphapapa, want me to redo the profile-report bit?

Please see the comment I just posted on the GitHub issue.

12:19:13
@gilganix:matrix.orgMist

Want the whole report or just mentions (+ parens) of revert-buffer?

12:23:43
@gilganix:matrix.orgMist
          34   3%  - funcall-interactively
          34   3%   - revert-buffer
          34   3%    - ement-room-list-revert
          34   3%     - ement-room-list
          11   1%      - taxy-fill
          11   1%       - #<byte-code-function 1F2>
          11   1%        - #<lambda AEF>
          11   1%         - taxy-take-keyed
          11   1%          - taxy-take-keyed
          11   1%           - taxy-take-keyed
          11   1%            - taxy-take-keyed
          10   1%             - taxy-take-keyed
          10   1%              - taxy-take-keyed
          10   1%               - taxy-take-keyed
12:24:22
@gilganix:matrix.orgMist

Will post those bits in the issue if you confirm that this is enough

12:24:31
@gilganix:matrix.orgMist

No other mentions of revert-buffer besides above

12:24:56
@alphapapa:matrix.orgalphapapa

If the directions were followed carefully, then go ahead and post the whole thing, please.

12:25:19
@gilganix:matrix.orgMist

I did wait +1 minute -> room list -> profiler start + cpu -> g r for manual revert-buffer -> profiler-stop after a little bit -> report

12:26:12
@gilganix:matrix.orgMist

That is enough, yes?

12:26:15
@gilganix:matrix.orgMist

Left a comment in the issue page. Please check it out! :)

12:28:56
@alphapapa:matrix.orgalphapapa

FYI, I've pushed a commit to master that adds support for viewing other types of authenticated media requests (e.g. files and audio attachments; til now it was just image messages). Please report any problems. I'll probably delay the v0.16 release for another week to give this time to settle.

Also, I've yet to implement a separate action to download attached files rather than displaying them in Emacs. (It's all much more complicated now since the requests must be made with Matrix authentication, so you can't just get a URL to download in an external program.)

18:46:35
@gilganix:matrix.orgMist

How would one go on about viewing the other media types through Emacs? (never done that before tbh)

21:26:39
25 Sep 2024
@alphapapa:matrix.orgalphapapa
In reply to Mist

How would one go on about viewing the other media types through Emacs? (never done that before tbh)

I suppose one could write some code to pipe the data to external viewers or players, but other than that, you'd probably need to download them to a local file. I could even imagine a hacky thing that would serve a file from a local port to an external browser… Many possibilities, but basically, just download it. This is an unfortunate consequence of the move to authenticated media on Matrix servers: you can't just get a URL and request it from any program.

01:08:30
@alphapapa:matrix.orgalphapapa

But it's probably necessary, otherwise any media you post that's unencrypted can be accessed by anyone, if they know the URL.

01:09:07
@gilganix:matrix.orgMist

Maybe I should just add an audio player to my emacs setup then. That would make more sense to have it become a native solution :)

07:15:29
@alphapapa:matrix.orgalphapapa
In reply to Mist

Maybe I should just add an audio player to my emacs setup then. That would make more sense to have it become a native solution :)

Well, there is https://github.com/alphapapa/listen.el ;)

16:12:10

Show newer messages


Back to Room ListRoom Version: 6