#Kap

KAP Jasa - kite team Sloveniakap_jasa
2025-05-21

It was a hard and nervy kite aerial photography session - but we got one of the most fascinating lakes in Slovenia: the nearly circular Podpeč lake, a true Eye of the Marshes.

kapjasa.si/en/eye-of-the-marsh

Elias Mårtensonloke@functional.cafe
2025-05-15

@ksaj @praetor @screwlisp Kap is certainly very high level compared to something like C. It doesn't even expose much in the way of system level access. It's more like Python in that respect, except being faster. 🙂

To briefly explain how to read the tacit expressions, all you really have to understand is how functions combine when there is no argument given to it.

Let's take the function - as an example. Just like in standard maths, it has two roles: subtraction (when called with two arguments x-y) or negation (when called with one argument -x).

All right, so let's take a look at the simplest possible function definition using a tacit expression:

foo ⇐ -

After this, you can type 5 foo 2 to get the result 3. Or foo 11 to get -11.

Let's try a so-called 'train'. A train is just a sequence of functions:

foo ⇐ -×

Let's call it with two arguments to see what happens:

    10 foo 4
-40

So, we can see how this actually evaluates as -(10×40). This is a general rule when a train is evaluated with two arguments: the right function is called with the two arguments, and then the result is passed to the left function.

Let's call it with one argument:

    foo 4
-1

This is the same as -×4. I.e. call ×4 and then pass the result to -. The function × is extended to support called with one argument, and when it does, it returns the absolute value, i.e. 1. This value is negated by calling -.

Now, the rest is just an extension of this. There are several special operators, including , and the pair « and » which can be used to combine functions in more fancy ways than just using trains as explained above. All of this is documented in the reference: kapdemo.dhsdevelopments.com/re

I hope this gives a bit of insight into how these functions can be created.

#kap #apl

Elias Mårtensonloke@functional.cafe
2025-05-14

I was reading this article by @johndcook which makes a good argument that the up- and down-arrow notation is better for logs and exponents.

In APL (and Kap) the symbols are and which does have symmetry, but perhaps the arrows would be even better.

johndcook.com/blog/2025/05/13/

#apl #kap

Elias Mårtensonloke@functional.cafe
2025-05-11

Here's one of those interesting posts by @gregeganSF which talks about some interesting properties of hexadecimal numbers: mathstodon.xyz/@gregeganSF/114

I wanted to play around with this myself, and since I used Kap to do it, I just wanted to share what this looks like. Here's the original list of numbers, computed from first principles by splitting up each number into a binary array, performing the shifts, grouping the bits in groups of 4, encoding each group in binary and then encoding each group in base 16: example

It could have been shorter if I had encoded the entire number in binary first, but I didn't do that because what I actually wanted to do was to work with the groups of 4 bits to show the symmetry where each group adds up to 8. Here's the code to do this: example

The output is as follows:

    +/[1] ⊃ (64⍴1 0 0 0) ⊆ ⊃ (⍳5) ⌽¨ ⊂ (64⍴2) ⊤ 0xaf9d03c6be215748
┌→──────┐
↓8 8 8 8│
│8 8 8 8│
│8 8 8 8│
│8 8 8 8│
│8 8 8 8│
└───────┘

If you change the value to a number which doesn't have the symmetry mentioned in the post, the array will not be all the same number.

#maths #kap #apl

KAP Jasa - kite team Sloveniakap_jasa
2025-05-08
KAP Jasa - kite team Sloveniakap_jasa
2025-05-01

Celebrating May Day with some glorious shots of Ljubljana Marshes glowing in the late afternoon sun.

kapjasa.si/en/a-glorious-day/

KAP Jasa - kite team Sloveniakap_jasa
2025-03-31

Lake Palčje, Slovenia. The star of Pivka seasonal lakes nature park. Ephemeral and timeless.

And hard to get with a camera on a kite.

This is a story that concludes a seven year quest for a successful KAP session here. It was worth the wait.

Enjoy!

kapjasa.si/en/gotcha/

moongoldmoongold
2025-03-28

"Landscape with footpath and shadow."

Spirit of Air 10' Delta. Almost no wind.

Elias Mårtensonloke@functional.cafe
2025-03-17

Bit art bot is kind of fun: freeradical.zone/@bitartbot/11

I tried to express the same in Kap, but this is the best I could do. I guess I don't fully understand the bit art expressions.

kapdemo.dhsdevelopments.com/cl

#kap #programming

KAP Jasa - kite team Sloveniakap_jasa
2025-03-12

We flew our kite above a hillfort of St.Mary of the Snows on Podgorje karst, Slovenia.

This story starts with Neolithic dentirstry, goes through Bronze and Iron Age, and ends with a cute little church. Enjoy! ;-)

kapjasa.si/en/mothers-and-godd

EshaHaberEshahaber
2025-03-08

Beşiktaş'tan Bankalar Birliği için kritik hamle! KAP'a bildirildi: Beşiktaş, Kamuyu Aydınlatma Platformu'na (KAP) bedelli sermaya artırımı kararı ve SPK başvurusu yaptığını bildirdi.

Açıklamada siyah-beyazlı kulübün sermayesini yüzde 400 oranda artırma kararı aldığı aktarıldı.

BEŞİKTAŞ'IN KAP AÇIKLAMASI!

Beşiktaş'ın açıklamasında, "Şirketimizin 6.000.000.000.-TL olarak belirlenen kayıtlı… eshahaber.com.tr/haber/besikta EshaHaber.com.tr

KAP Jasa - kite team Sloveniakap_jasa
2025-03-04

The fortified church of the Holy Trinity in Hrastovlje, Slovenia.

The walls and the towers are guarding a veritable treasure, the frescoes of Janez of Kastav, including the famous Danse Macabre. And the stony defenders are still quite nervous when something wants to peek inside - even if it is just a kite. 

kapjasa.si/en/a-fight-above-th

KAP Jasa - kite team Sloveniakap_jasa
2025-02-26

Sometimes a kite aerial photo seems dull ... Wrong camera settings? Lack of post-processing skills? Is it the old adage - dull weather, dull photos?

Perhaps.

But, at least to us, the real question is - is there really such a thing as a "dull" kite aerial photo? 😉

kapjasa.si/en/when-the-skies-a

Elias Mårtensonloke@functional.cafe
2025-02-26

I rewrote yesterday's blog post a bit to make the code simpler, and hopefully a bit more understandable.

blog.dhsdevelopments.com/findi

#programming #kap

Elias Mårtensonloke@functional.cafe
2025-02-18

I was reading the linked thread, and since I didn't want to take away from the discussion about using Binet's formula, I paste my straightforward iterative solution for Fibonacci numbers in Kap (the example below prints the first 100 numbers, if you want to start a different pair of numbers, change the final 1 to the pair you need):

The computation will automatically use bigint when needed, so there is no real upper limit to the numbers)

↑¨ (+/«⍮»↑ ⊣)\ 100⍴1

mastodon.social/@code_report/1

#kap #programming

Verfassungklage@troet.cafeVerfassungklage@troet.cafe
2025-02-12

LIVE: 5.885 km #Winter-#Roadtrip ans #Kap - Etappe 9 - Rückfahrt durch Finnland - Inari nach Rovaniemi

youtube.com/live/uDL-meKDTGk?s

Verfassungklage@troet.cafeVerfassungklage@troet.cafe
2025-02-11

LIVE: 5.885 km #Winter-#Roadtrip ans #Kap - Etappe 8 - Rückfahrt von Honningsvåg nach Inari Finnland

youtube.com/live/-BZhmcOx1Uk?s

Verfassungklage@troet.cafeVerfassungklage@troet.cafe
2025-02-09

LIVE: 5.885 km #Winter-#Roadtrip ans #Kap - Etappe 6 - Von Kautokeino nach Honningsvåg in Norwegen

youtube.com/live/MsjUrXaXyLw?s

Verfassungklage@troet.cafeVerfassungklage@troet.cafe
2025-02-08

LIVE: 5.885 km #Winter-#Roadtrip ans #Kap - Etappe 5 - Durch Finnland bis nach Kautokeino in Norwegen

youtube.com/live/07hQrCKsF9w?s

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst