@loke@functional.cafe avatar

loke

@loke@functional.cafe

Lisp, Emacs, APL and a bunch of other stuff.

From Sweden, living in Singapore.

I always work on a bunch of projects. My current major ones are:

A graphical frontend to Maxima: https://github.com/lokedhs/maxima-client

Kap: An APL-based programming language: https://codeberg.org/loke/array

#lisp #commonlisp #apl #retrocomputing #linux #kap #climaxima #emacs #atari #fedi22

This profile is from a federated server and may be incomplete. Browse more on the original instance.

loke, to random
@loke@functional.cafe avatar

There is a risk I'm going to anger half the Fediverse but it has to be said:

I see people posting about the correct way to use pyenv and not following it up with "...and this is why the Python ecosystem is horrible", and my immediate thought is that these people suffer from Stockholm syndrome.

loke, to random
@loke@functional.cafe avatar

Wow... I was reading the comments to this article about the DMA, and how Apple now will have to (finally) allow other browsers and open up the appstore.

Just read them... Wow.

https://forums.macrumors.com/threads/apples-app-store-safari-and-ios-officially-designated-gatekeepers-in-eu.2400592/

loke, to random
@loke@functional.cafe avatar

I wonder how much it would cost me to pay someone to clean up the web-based REPL interface to Kap.

Despite it being an open source project, it's so niche that no web designers is going to be interested. All the code and behaviour there, but it needs a rehaul of the visual presentation.

Where can I find someone willing to do this, and how much money do they charge? Any suggestions?

I really need this thing to stop looking like crap, since it's hard to get people interested unless the UI looks pretty.

loke, to random
@loke@functional.cafe avatar

One of the nicest spots on my usual mountain bike ride.

loke, to random
@loke@functional.cafe avatar

I have some free space. Is there something I can archive for the good of humankind?

# zpool list mediaserver<br></br>NAME          SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP    HEALTH  ALTROOT<br></br>mediaserver  18.2T  6.71T  11.5T        -         -     9%    36%  1.00x    ONLINE  -<br></br>
loke, to random
@loke@functional.cafe avatar

If you sort your bits prior to gzipping, the file will be much smaller.

loke, to random
@loke@functional.cafe avatar

Whenever I want to open the thread of a post that only contains an image, the only way to do so seems to be to click on the lower half of the tiny sliver of whitespace between the sender's name and the picture.

I'm surprised this has not been fixed. Am I the only one with this problem?

@Sandra I hope you're OK with me using your toot as an example.

loke, to random
@loke@functional.cafe avatar

I was playing and saw an NPC named John McCarthy. @shinmera nice reference.

loke, to random
@loke@functional.cafe avatar

I absolutely despise Zoom for many reasons (mostly because they've lied numerous times about everything they do).

But, I've seen far too many hot takes on their saying that it's not a 100% replacement for human interaction as some kind of admission that their entire business model is built on a lie to be exhausting.

There is a middle ground between spending every waking hour of your life in a videocall and the complete dismissal of remote work.

loke, to random
@loke@functional.cafe avatar

Another little fun thing I did to show what Kap looks like. This time I didn't go overboard with tacit programming and instead decided to make it more imperative. Perhaps it will be more appealing. 😃

Try clicking this link to load the web-based interpreter and then just click "send".

loke, to random
@loke@functional.cafe avatar

Something that has always annoyed me in Swedish sports new reporting.

They. Never. Write. Which. Sport. They. Report. On.

Here's an example: https://www.svt.se/sport/friidrott/daniel-stahl-diskusfinal

If you don't speak Swedish, go ahead and run it through a translator, or just trust me. At no point in the article do they mention which sport it is.

I read it, and it mentions winning with a distance of 71.46 metres, so I thought it was javelin.

It was only when looking at the URL that I noticed it mentions "diskus", which is discus in English.

EDIT OK, upon re-reading I note it says he "..threw the discus..." some distance. My point still stands though. I will never understand why they never put this somewhat vital information in the headline or even where people can be expected to find it.

loke, (edited ) to random
@loke@functional.cafe avatar

I built something.

https://kapdemo.dhsdevelopments.com/clientweb2/#(%7Bgui%3Adraw%20%E2%8A%83%201%20%E2%8D%B5%20%E2%88%A8.%E2%88%A7%203%204%20%3D%20%2B%2F%20%2C%C2%AF1%200%201%20%E2%8A%A3%C2%AB%E2%8A%96%E2%8C%BB%C2%BB(%E2%8C%BD%C2%A8)%20%E2%8A%82%E2%8D%B5%7D%E2%8D%A3100)%20%3F50%2050%20%E2%8D%B4%202
Click "send" to run the code in the dialog box.

It's a demonstration of Conway's Game of Life in Kap, utilising a new feature that allows a Kap program to draw graphics.

If you want to change the number of generations it animates, change the number 100 to something more appropriate.

This is all running in the browser by the way.

The code is a version of the classic Dyalog demo, but the code has been rewritten a bit to make it shorter, and probably less readable.

loke, to random
@loke@functional.cafe avatar

What do french people have to say about this?

loke, to random
@loke@functional.cafe avatar

@jannem I updated the tutorial a bit to mention the character set issues in the introduction, according to your recommendations. Is this better?

I also added references to bot J and Ivy (by @robpike, please let me know if you're OK with that) in case people want an array language without special symbols. 🙂

https://codeberg.org/loke/array/src/branch/master/docs/quick-tutorial.asciidoc

loke, to random
@loke@functional.cafe avatar

@robpike I listened to you being a guest on Array Cast. I noted that you wished there was a more detailed description as to what the different operators actually do.

I had the same problem when implementing Kap, since I wanted the basic functions to be compatible with APL. The solution was to look at ISO 13751. It's the ISO specification for APL, which is very close to APL2.

It's not hard to find online, but do let me know if you need a pointer.

loke, to random
@loke@functional.cafe avatar

I need some advice from someone who knows CSS.

In the web interface for the language interpreter that I'm working on, I dynamically create a canvas where some stuff can be drawn. I would like that one to float on top, independent of scrolling position, and I want the user to be able to drag it using the mouse.

I clearly need to do something with z order and absolute position? What if I want to create a border around the canvas?

loke, to random
@loke@functional.cafe avatar

I realise that trying out Kap is is difficult for most people. This is because of multiple reasons:

  • Most people find learning new programming languages a hassle
  • Especially if it's so dense that it looks like line noise
  • And even more so if the fundamental concepts are very different from mainstream languages
  • And even most so if there is no useful documentation available

I can't do much about the first three points, but I have started working on a completely new tutorial to address the last one.

Now, I've only gotten so far as to introduce the reduction operator, but in getting there I think I have introduced features in an order that makes sense, focusing on the important points while still making sure it's correct.

If anyone wants to help alpha test this tutorial by reading a complete work in progress and provide comments, that would be incredibly useful.

Now it's early enough that I haven't even put this on the website, so you'd have to read it on the Codeberg repository.

The direct link to the document is here: https://codeberg.org/loke/array/src/branch/master/docs/quick-tutorial.asciidoc

If you want to experiment while reading and you have no interest in installing the interpreter on your computer, you can always try it out online: https://kapdemo.dhsdevelopments.com/clientweb2/

Again, the reason it's not on the website yet is because it's very early, so don't assume you'll learn everything by reading it.

loke, to random
@loke@functional.cafe avatar

This is amazing. The "crypto industry" is already so ridiculous that the people who are in cannot tell if they're being trolled.

https://youtu.be/xmVt8lC74ns

loke, to random
@loke@functional.cafe avatar

I've come to realise that no one will even consider spending any time looking at Kap, the programming language I've been working on since the start of COVID.

It doesn't matter how many neat posts I write explaining how to do various cool things. If there is no reference documentation, even the most dedicated people will not even consider it.

So I started writing some reference documentation. I've only documented a small number of functions so far, but I still want to share my progress.

Also, this document is really only useful for people who already know the syntax (probably by learning APL). I started writing a tutorial as well (it's liked from the main page) but it isn't very good and should be rewritten.

With all those disclaimers done, here's the link: https://kapdemo.dhsdevelopments.com/reference.html

I guess I'm just fishing for comments (good or bad). Just knowing there are a handful of people out there that cares a little about this would be joyful.

loke, to random
@loke@functional.cafe avatar

I think it may be time to replace my laptop

My current machine is a Lenovo T490 which, with a 40 GB memory upgrade, has sevred me well running Qubes OS for the last few years.

So I guess now is the time to ask the Fediverse for suggestions.

  • It obviously needs to run Qubes OS well. Most laptops that support Linux will work fine.
  • I need to support lots of memory. 40 GB has been good, but I think 64 would be better.
  • I have no need for a GPU. Qubes can't use it anyway.
  • It shouldn't be too heavy. My work laptop is a Dell Precision 5550 and it's way too heavy. It doesn't need to be super light though.
  • I have a preference for AMD CPU's, but it's not a strict requirement.
  • It needs to have an acceptable keyboard. This is of course very subjective, but those super flat ("butterfly style") keyboards are horrible.
  • I don't need the Thinkpad-style nub. I've tried using it, but never felt comfortable with it.
  • I absolutely cannot stand the differently-sized cursor keys on the Dell Precision (the left and right keys are normal sizes, but the up/down keys are half height). If you want to make the cursor keys smaller, fine, but they should have the same size.

Boosts welcome.

loke, to random
@loke@functional.cafe avatar

I've been reading up of electronics and circuit design, and I find it very interesting. However, I don't have any hardware to experiment with at the moment, and I'd probably break things even if I did.

Is there a simple circuit simulation tool I can use to learn how to build simple things?

I don't need a full design tool, and I just want something that is simple and easy so that I can test things as I read about them.

loke, to random
@loke@functional.cafe avatar

So twitter decided to send a threatening letter to an organisation who were researching hate speech on twitter.

They fired back with a beautiful letter on their own.

I'm sure twitter isn't going through with their threat, but I kinda hope they will. The discovery will be gorgeous. https://counterhate.com/wp-content/uploads/2023/07/Letter-to-A.-Spiro-from-R.-Kaplan-re-CCDH.pdf

loke, to random
@loke@functional.cafe avatar

I don't use twitter, but I kinda enjoy watching the drama. I went to the main page to see what it looks like now, and really? How incompetent can you get?

loke, to random
@loke@functional.cafe avatar

I remember back in the 90's, when I was doing military service in the airforce. I was in a forest with my unit, and it was dark, cold, we were all tired and it was all in all a terrible time.

At the time, someone (maybe me?) said: "Don't worry, years later we won't remember this. We'll only remember the good parts".

It's now been 25 years or so, and you know what? They were right. I'm thinking back on that time as having had a fun time with my friends.

I see people post rose-coloured representations of past times over here on a variety of topics. The good old days were never as good as you think they were.

loke, (edited ) to random
@loke@functional.cafe avatar

So BBC starts a mastodon instance. Good. But some time ago, they started delaying releases of their podcasts by a month. If you want to hear them at release you have to use Spotify.

Updated: it was kindly pointed out to me it wasn't Spotify but the dedicated application BBC Sounds. To me that's still bad, but perhaps not on the same level

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines