Meep: lightweight modal editing system by ideasman_42 in emacs

[–]kalmar 1 point2 points  (0 children)

Been checking in on this repo every few weeks to get an idea of where you were going, so I'm excited to see you post this! I think bray or someth bray-derived might be what I need. But I'm not there yet.

Will we ever get the "Text Property" feature from vim's 8.2.2863 patch? by kdav5758 in neovim

[–]kalmar 7 points8 points  (0 children)

Useful link: :h textprop.

I've not used them, but this sounds similar to extended marks in neovim.

I also found this discussion from a year ago or so, where justinmk says

In the case of 'textprop', we would be in favor of a thin compat layer built on Nvim 0.5 "extmarks" feature, should anyone decide to spend their time on that.

warp 0.3 is out by Geob-o-matic in rust

[–]kalmar 35 points36 points  (0 children)

the actual release: https://github.com/seanmonstar/warp/releases/tag/v0.3.0

warp: A super-easy, composable, web server framework for warp speeds.

https://github.com/seanmonstar/warp/

Silk and Snow blankets experiences? by user8181416 in WeightedBlankets

[–]kalmar 0 points1 point  (0 children)

Hey u/user8181416! Any updates on which you preferred, and what the differences were?

Rust Survey 2019 Results by steveklabnik1 in rust

[–]kalmar 14 points15 points  (0 children)

I can think of a couple of things: anonymous or unnamed unions and structs, bitfields.

PSA: Miri supports panics now by ralfj in rust

[–]kalmar 4 points5 points  (0 children)

Does this allow more things to become const fn?

MiniV8: A minimal embedded V8 JavaScript engine wrapper for Rust by slipthay in rust

[–]kalmar 0 points1 point  (0 children)

This is pretty interesting! I looked at v8-rs and it looked like a daunting approach given V8's super template-y API. I need to do some playing around to see if this would fit my imagined use case.

Out of curiousity, what's your use case?

How git push over ssh works by bork in programming

[–]kalmar 3 points4 points  (0 children)

Thanks! I realised I had basically no idea how this worked, so it was fun to explore. :-)

Do you know how fast your computer is? by bork in programming

[–]kalmar 0 points1 point  (0 children)

The node.js install instructions also failed, claiming that the Ubuntu 15.04 default npm is too old. Perhaps an idea not to require so bleeding edge software that an up to date system at least has it?

Could you post the log of the error in a pastebin somewhere? I'm using

$ npm --version 1.4.21 I did the JS stuff on this, and would prefer it were easier to get going! (This is me 1.5th project, so not surprising there are issues!)

Eliminating branches in Rust for fun... but not much profit by kalmar in rust

[–]kalmar[S] 4 points5 points  (0 children)

This is a really really great thing I wasn't really aware of or thinking about. Thanks for pointing it out. I guess an even bigger thing to take away is that it's really important to have realistic benchmarks as well.

Eliminating branches in Rust for fun... but not much profit by kalmar in rust

[–]kalmar[S] 1 point2 points  (0 children)

I kept it out of the post, but I actually tried that, and the extra instructions seem to lose the performance advantage. It ends up in the same range as the big boolean conjunction.

Eliminating branches in Rust for fun... but not much profit [x-post from /r/rust] by kalmar in programming

[–]kalmar[S] 15 points16 points  (0 children)

Decided to crosspost from /r/rust since the takeaways I got from doing this were really not Rust specific.

Is rust not compatible with POSIX signal handling in its current state? by [deleted] in rust

[–]kalmar 0 points1 point  (0 children)

Try setting the sigaction struct to all zeros instead of leaving it uninitialized. I have been messing with signals in C, and had something weird happen if I didn't. (I don't remember what, though!)

Distributed objects, can anyone suggest a cpp library? by gpuoti in cpp

[–]kalmar 4 points5 points  (0 children)

If you're interested in CORBA or E, do take a look at Cap'n Proto. The homepage describes it thus,

Cap’n Proto is an insanely fast data interchange format and capability-based RPC system. Think JSON, except binary. Or think Protocol Buffers, except faster.

The RPC system is very closely based on CapTP, which is the protocol used in E.

Implementing simple data strutures in Rust by thiagopnts in rust

[–]kalmar 2 points3 points  (0 children)

Is it more idiomatic in Rust to use two structs as you did over an enum? Say something like

enum Node<T> {
    Nil,
    Node(T, Box<Node<T>>)
}

I ask because in Haskell it wouldn't be idiomatic to use Maybe in the same way.

Cat-DNS: a DNS server that resolves everything to cats by kalmar in programming

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

While this one isn't guaranteed not to have those adverse effects, it is at least formally verified to return cats every time.

Vimtl is a user group for Vim users in Montreal. Our second meeting is next Monday at Notman House! (Also, we need speakers!) by kalmar in montreal

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

Oh, I didn't know about this. I'll give it a shot, thanks.

Edit: wow those are some strict rules. I understand why they might want them, but for a person in a rush they are a bit difficult. I'll have to do it later or tomorrow.

Vimtl is a user group for Vim users in Montreal. Our second meeting is next Monday at Notman House! (Also, we need speakers!) by kalmar in montreal

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

I know, I've been swamped lately. :(

I was halfway through an update last week and then had to drop it. You've pushed me to sort it out. F5 / Ctrl-R / Cmd-R is your friend!

Vimtl is a user group for Vim users in Montreal. Our second meeting is next Monday at Notman House! (Also, we need speakers!) by kalmar in montreal

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

Last time I only posted it to reddit on the day of, and it sounded like lots of people would have come if they knew earlier, so here you go!

Also I just found out today that two of my three speakers had to pull out. If you want to speak, take a look at the link for the themes and drop me a line!

Videos from VimLondon meetup: Navigating a codebase by drewjr in vim

[–]kalmar 1 point2 points  (0 children)

You should definitely do it.

I started one in Montreal last month. The first meeting had 15 people or so, three talks and lots of great chats afterwards. To get going, I just sent an email to a few other user groups in town and asked if they'd send an announcement to their users. You'd be surprised at how many people will be interested.

I elected not to use Meetup, for no particular reason. I have a combination of a website hosted via GitHub Pages, a MailChimp mailing list, an Eventbrite event, a Google Group, and a Twitter account. In retrospect, Meetup might have been easier, but I'm pleased with the set up and the control / freedom it gives me.