1,604 karma · joined Mar 1, 2017 (9y ago) · 403 submissions
comment 4y ago · link · parent
The author focuses on metaprogramming (something like hygienic macros that are more efficient) as the only real needed extra feature over C. He says that with this other stuff can be built at need using libraries.
The upside is that new language features are just libraries that gain or lose popularity as time goes on, allowing the core language to be more or less the same as it was at its inception while still staying alive. This advantage is shared by Common Lisp for the same reasons.
The disadvantage is that since anybody can make a new sublanguage simply by writing a library, you're left with a fight between libraries on what language features are important for the whole group, splintering the group into different sub language dialect camps. This is part of the curse of lisp. The upside might be that it's still probably pretty difficult to write meta programming in Pliant relative to lisp because of its focus on efficiency. Perhaps this will save it from most of the curse. Time will tell.
I have never yet seen a "C++ Replacement" language's more carefully argued or justified using simpler arguments than this language. That the core language will probably endure easily is very exciting to me, especially after seeing the evolution that C and C++ has gone through over the years and how hard changing the language is nowadays. In the language overview the author makes some very good points about why he chose what he chose in his design decisions.
Other replacement languages try to simply make design decisions based on taste. This is not a bad thing; some language designers have excellent taste. But it is nice to have a plain explanation as to why specific features were included in a language.
One last thought I did have was that if language features are libraries, there had better be a very good dependency manager and packaging solution for this language from day one if it is to be usable.
4.
I Tried Removing Python's GIL Back in 1996(github.com ↗)
3 points · by djhaskin987 · 4y ago · discuss
5.
The first flying bike can stay in the air for 40 minutes(interestingengineering.com ↗)
12 points · by djhaskin987 · 4y ago · 6 comments
comment 4y ago · link · parent
Storing changesets can handle very very large sets of files much more easily, but you pay the price with having to compute what file is stored whem which lengthens check out time even in the small. It is not a good trade off if you have to check out the entire thing anyways. This is why get is more popular with the open source community which is more like a bazaar than a cathedral
7.
The Uber Hack Looks Bad(twitter.com ↗)
44 points · by djhaskin987 · 4y ago · 2 comments
9.
JetBrains Mono, A typeface for developers (2021)(jetbrains.com ↗)
2 points · by djhaskin987 · 4y ago · 2 comments
10.
Tim Cook revealed the real reason Apple won’t fix green bubbles(theverge.com ↗)
3 points · by djha-skin · 4y ago · 2 comments
comment 4y ago · link · parent
comment 4y ago · link · parent
That was my experience when looking at Matrix and Mastodon. So I am skeptical of projects like this.
That said the UI looks very nice and the idea very promising.
comment 4y ago · link · parent
comment 4y ago · link · parent
It happens in my family and I'm sure everyone else's, it's why there's always drama when someone dies. Who gets Grandpa's estate, who gets Grandma's money, Grandpa loved me more but he's not here to defend himself so I can just say whatever I want about Grandpa and you just have to believe it. Using their legacy to improve our status in the family, or their money.
A great deal of heartache has come from how this has happened in my family when my grandpa passed some 20 years ago. It's all behind me now but only recently, it took a long time to settle the affairs of his prior belongings.
comment 4y ago · link · parent
17.
Not Your Grandfather’s Perl(stackoverflow.blog ↗)
321 points · by djha-skin · 4y ago · 243 comments
19.
Paths with Spaces, I Give Up (2013)(yo-dave.com ↗)
2 points · by djhaskin987 · 4y ago · 1 comment
20.
Pwnie Awards(en.wikipedia.org ↗)
2 points · by djhaskin987 · 4y ago · 1 comment
comment 4y ago · link · parent
1. Various interactions I frequently have:
- `va(C-cC-c`. Select the current parentheses text object (s-expression) and send it to the repl.
-`C-aC-a`, switch to repl to view output, interact with debugger, etc.
- `ggVGC-cC-c`, select the entire file and send it to the repl.
- I've never done this one but since you mentioned it as useful to you: `?^(<CR>va(C-cC-c`, evaluate a top level form. Not perfect, but probably good enough especially if a line formatter is used to enforce sane indenting like this one for Clojure[6]. If a line formatter does not exist, the usual `ggVG=` built-in vim indenting works just fine.
- `:set makeprg=<command to run unit tests with line numbers>:make`. Batch error reporting and fixing, very useful[1]. In Clojure, e.g. `lein test` with some additions to set error format might be the `make` program.
vim-slime does not have an understanding of s expressions but vim itself does, using the parentheses object. See `:help text-objects`. I like that vim-slime does not have this understanding because what if I'm using it with Ruby or something. But vim support of text objects is good enough that it's never a problem. While I'm on the subject, `])` and `[(` searching for parens in vim is awesome.
Vim operates using an entirely different set of values than emacs. Selecting and searching for text should not be the purview of a plug-in, it should be built into the editor. Compiling code should be delegated to compilers. Vim does a great job of this kind of separation of concerns, it is the Zen of vim, its core philosophy. Emacs is great and it works fantastically, it just operates using a different philosophy.
2. I work more in Clojure but I'm trying to get more into common lisp. Clojure has suggestions in neovim via language server protocol[2]. The suggestions are very good[3]. This is not as developed for the common lisp story[4] but I'll try it out and see how good it is.
I've never had much patience for autocompletion. I don't even like it when the editor puts in pairs of parentheses when I've only typed the first left parentheses. Vim does have autocomplete through the language server protocol, but I don't use it.
Regarding suggestions as I type, there's ale[5], but I think I would find suggestions as I type a little too distracting and might slow me down. I find the normal LSP stuff to be good enough.
1: https://vim.fandom.com/wiki/Errorformat_and_makeprg
2: https://blog.inkdrop.app/how-to-set-up-neovim-0-5-modern-plu...
3: https://github.com/clojure-lsp/clojure-lsp
4: https://github.com/cxxxr/cl-lsp
comment 4y ago · link · parent
Even better! It's not useful for just Lisp! It works for python, bash, whatever. That's not a bug, that's a feature. It's simple, lets the editor be the editor and the multiplexer be the multiplexer. It's much more "vim zen" than importing an entire repl process into the editor.
I've always known about slimv, I just like vim-slime better. My only complaint is that when it copies and paste texts around it's slower using interprocess communication than it is using TCP. But the nice thing I can see exactly what's happening instead of having it all hid from me. Makes debugging problems much easier.
Even describing slimv as a "mode" belies its emacs-ness. Vim doesn't have major and minor modes. It has insert mode and normal mode, that's it.
I don't even use fugitive. Why do it when the git CLI is faster? I've already learned the cli, why do I have to learn an entirely new set of commands to do the same things I already know how to do? Especially when I'm using vim inside GNU screen? C-a 2, boom, I'm in a CLI. Switching back and forth is a breeze. I have a few key bindings in vim that allow me to see the git blame line of a particular line, that's it.
Don't turn vim into a user interface for $x. Embed vim into other user interfaces. Vim plugin for intellij, vscode, vim inside a multiplexer, ... This works much better in my opinion.
comment 4y ago · link · parent
Transcript: http://backreaction.blogspot.com/2022/08/no-sun-no-wind-now-...
comment 4y ago · link · parent
On the one hand, solar panels will not fix this problem. Sun and wind both die down in the UK in the winter. You need hydrocarbons.
Honestly, if it were me, I'd ask them to turn my gas off and just heat a few rooms with electric heaters, and buy lots of blankets. It's not very convenient, but wearing a coat indoors is free. That feels more honest than stealing their gas and then not paying for it. Sure, they're probably ripping me off. Doesn't mean I should do the same.
28.
Hackers infiltrate second-largest US school district in growing trend(theguardian.com ↗)
1 points · by djhaskin987 · 4y ago · discuss