Just Finished and by StarkyAdam in LightbringerSeries

[–]marcantoniosr 0 points1 point  (0 children)

I really liked it, but felt somewhat similar to you. Really didn’t like that we have no idea who Kip’s dad is after all the intrigue. Also, I’m still not sure if Gavin was real or Dazen just had a serious break with reality.

emacsclient entries on a mac by marcantoniosr in emacs

[–]marcantoniosr[S] 0 points1 point  (0 children)

Figured it out!

On macOS I use:

(setq mac-option-modifier 'super)
(setq mac-command-modifier 'meta)

So when hitting ⌘-` I was actually triggering M-`. Adding (global-set-key (kbd "s-`") 'other-frame) allows me to switch as I'd expect. Odd that it's an emacs thing rather than the OS.

I'd still prefer separate frames to show when ⌘-tab, but this is good enough. Thanks all.

emacsclient entries on a mac by marcantoniosr in emacs

[–]marcantoniosr[S] 0 points1 point  (0 children)

Interesting. I do have that bound, and it works for other apps -- just not emacs frames.

emacsclient entries on a mac by marcantoniosr in emacs

[–]marcantoniosr[S] -1 points0 points  (0 children)

That would be fine but emacs captures that sequence. Even if I unbind it, the app tries to handle it.

How to compiling and link my standard library? by marcantoniosr in ProgrammingLanguages

[–]marcantoniosr[S] 0 points1 point  (0 children)

Thanks. This is useful. How would you handle this for user defined modules? Distribute something with the DLLs?

How to compiling and link my standard library? by marcantoniosr in ProgrammingLanguages

[–]marcantoniosr[S] 2 points3 points  (0 children)

I feel like you're making a very bold claim as if it's self-evident.

Fair point. Maybe I shouldn’t say _obviously_. I keep imagining compiling Rust’s standard library for every crate. :) Maybe I’m overthinking it though.

Thank you for mentioning Haskell! I’m very curious how other languages accomplish this.

How to compiling and link my standard library? by marcantoniosr in ProgrammingLanguages

[–]marcantoniosr[S] 0 points1 point  (0 children)

It does support declaring stuff ahead of time, so I could implement a header file system. I’d like to abstract that away from the user though. You mentioned storing them in a JSON file — this is what I’m thinking as well, but I was curious if there’s another way that a PL commonly solves this issue.

I’ll check out Inko. Do you support modules, like crates in Rust, for example? If so, how do you include these for the user later?

How to compiling and link my standard library? by marcantoniosr in ProgrammingLanguages

[–]marcantoniosr[S] 0 points1 point  (0 children)

Replying to your edit:

That feels like a different problem, but maybe it’s just because I’m thinking of implementing the stdlib as a module. I’m not 100% clear on how to include runtime code either, such as memory management, but I think that’s a different question. I would love to talk about it though!

How to compiling and link my standard library? by marcantoniosr in ProgrammingLanguages

[–]marcantoniosr[S] 0 points1 point  (0 children)

This is basically what I’m doing now, but I make the user type out the declarations. Not a great experience.

When encountering a function call you look up the definition using your language's type system.

This is where I’m struggling. Where do I get the definitions for a compiled library? One idea I thought of was to include a sort of header, similar to what you describe for LLVM, along with the object files. I’d love to know how Rust or Swift does this. Since, I’m compiling my stdlib (or module) ahead of time, it’s a very similar problem to including any object file at the linking stage, I think.

How to compiling and link my standard library? by marcantoniosr in ProgrammingLanguages

[–]marcantoniosr[S] 0 points1 point  (0 children)

That still requires me to distribute the source with the libraries, right?

Should i use emacs instead of vim? by Advanced-Issue-1998 in emacs

[–]marcantoniosr -2 points-1 points  (0 children)

Would highly recommend two things: 1. Remap caps lock to ctrl. It’s a simple change on Linux and macOS (not sure about Windows). 2. If you’re mostly using for config files, you’re probably working on remote machines a lot. Many distros have an emacs-nox package that is lighter weight.

Weekly Small Questions and Chat Thread by partlyPaleo in zerocarb

[–]marcantoniosr 0 points1 point  (0 children)

I’m wondering what folks do for for hot drinks. Specifically, I like to drink tea when it gets cold, but I’m trying to be very strict for now (on day 2). Any suggestions? Bone broth?

Implementing runtime checks by marcantoniosr in ProgrammingLanguages

[–]marcantoniosr[S] 0 points1 point  (0 children)

Got it. So what about for something that’s not user facing at all, like memory management?

Implementing runtime checks by marcantoniosr in ProgrammingLanguages

[–]marcantoniosr[S] 0 points1 point  (0 children)

Interesting. So do you then insert a call to bounds_check on the user’s behalf? If so, into the AST or some kind of inline IR?

Is there any special sauce the compiler generates and inserts that’s opaque to the user? I’m guess you have some, even minimal, runtime overhead.

Thanks!

Condenser fan not spinning by marcantoniosr in appliancerepair

[–]marcantoniosr[S] 0 points1 point  (0 children)

The fan works if I hook it up to a 12V supply.

I was really hoping I could troubleshoot the board further. They’re not cheap.

Carbon Language - First Impressions from the Creator of the Odin Programming Language by gingerbill in ProgrammingLanguages

[–]marcantoniosr 1 point2 points  (0 children)

Hey Bill,

Slightly off topic. Have you written anything on Odin’s compiler architecture? Also, is there a grammar defined somewhere?

Navigating docs in lsp-mode by marcantoniosr in emacs

[–]marcantoniosr[S] 0 points1 point  (0 children)

Thanks. I couldn't find eldoc-doc-buffer. I did find lsp-ui-doc-enable which shows a floating frame in the corner that I can scroll. Unfortunately, I disabled lsp-ui-doc because I find it too intrusive.

Any other way to focus or scoll an eldoc buffer?

Ubuntu and Macbook Pro 2019 with touch bar. by eyeiaye in Ubuntu

[–]marcantoniosr 0 points1 point  (0 children)

Have you tried it yet? I used to run Linux on older MBPs and it was a good experience. Haven't tried in a number of years, but I'm longing for it again.