« first day (1834 days earlier)      last day (837 days later) » 

12:35 AM
OOOOoooo itd be fun implementing raycasting in apl. idk how many of you remember my "game" but im sure i could make raycasting and make it a 1d game... and maybe... even... make it 3d then make a 3d game engine??? maybe im getting ahead of myself but it'd be a fun project :DDD
 
12:58 AM
I don't know anything about raycasting, but am seriously tempted to use the APL Lua bindings with Love2D
 
 
6 hours later…
7:26 AM
@Adám yes but I do not know which book I should start with.
 
RGS
8:23 AM
Hey @xpqz, here's a minor issue that affects your APL books as well github.com/Dyalog/MDAPL/issues/19
 
8:35 AM
@ChampS Cool. If you tell me a little about your background, I might be able to give you a recommendation. Do you have any programming experience?
 
8:56 AM
@RGS Apple trying to be smart. Rarely ends well. Thanks for pointing this out.
 
@RGS Doesn't the solution from SO solve it?
 
RGS
@Adám Probably yes, the issue is that I don't want to be doing that, by hand, whenever the output has some digits :P
 
But you could add it globally.
 
This ought to work: <meta name="format-detection" content="telephone=no">
I'll try it now.
 
RGS
@xpqz Oh, that's something that goes in the header?
 
9:09 AM
yeah
 
RGS
Oh right, then my objection makes no sense. I only glanced at the SO solution and thought I needed that in every single output cell :P
Do you have a phone w/ safari where you can test the solution? If not, I may be able to get my hands on one
 
@RGS Yes, I have an iPhone as my daily driver so can test.
Trying to figure out how you add stuff to the html header in jupyter-book; do you know?
 
9:24 AM
@RGS I can confirm that adding the above meta tag as the first line in the generated index.html fixes the issue. However, I'd rather find a way to do this through jupyter-book, instead of a post-processing dirty hack.
 
@xpqz jupyterbook.org/advanced/… might have to be a hack unless you discover an "extra HTML head" feature
 
And there I was hoping that using jupyter-book would insulate me from the wild west that is html and css.... :)
Makefile it is, then.
 
9:45 AM
@RGS I think it can be done with the sphinx config: docutils.sourceforge.io/docs/ref/rst/directives.html#metadata
 
RGS
@RikedyP nice try, but I don't think it covers our use case.
@xpqz Nice catch
Jupyter book allows you to add arbitrary configurations to sphinx
I'll try to do it now and then show you how it's done
So you can save some time by not having to look for it yourself
 
I tried:
sphinx:
    config:
        html_show_copyright: false
        html_favicon: favicon.ico
    meta:
        format-detection: telephone=no
but that didn't seem to do the job.
 
@xpqz @RGS Once you've figured all these things out, it'd be nice to publish a guide and/or template for using Jupiter Books with APL, so others can have an easier time. Maybe you could even publish the guide as a Jupyter notebook document. Then you could compile it to a book…
 
RGS
That is not a bad idea :P
 
10:00 AM
APL is so fun for prototyping stuff and quickly coming up with things
(⊂{' '~⍨⍕(?⍵),('+' '-' '*' '/'[?⍵⍴4])(,,⍤0)?⍨⍵}¨50⍴10000)⎕NPUT '/home/palaiologos/tests.txt'
i've had to write this to test one of my entires for a competition and it'd probably be much more painful to write it in C or something like this
 
RGS
@xpqz The bottom of this docs page seems to suggest that the meta: ... has to be nested under config, but now building the book and I got a red message saying meta was unknown and being ignored :P
 
Yeah I tried that too...
yaml is a bit of a dumpster fire, in my opinioin
 
RGS
10:34 AM
I think I'll open an issue with jupyter book?
I can't seem to figure this out.
 
RGS
10:56 AM
Right, that doesn't work because the thing we saw is a directive that works on rst files and is not related to the sphinx configuration
We'd need a Sphinx extension that lets you set “book-wide” meta tags. Seems simple enough, so I'll try to do that :P
 
You'll knock up a Sphinx extension? Power to you.
Seems unfathomable that no one else will have needed something like this...
 
RGS
@xpqz If this is anything like the last time I tried to create a pandoc extension, it'll be peanuts.
@xpqz People have needed similar things. I commented on the issue and linked to another issue on the Sphinx docs where someone wanted something similar.
 
11:13 AM
Do you have a link to the issue?
 
 
2 hours later…
RGS
1:22 PM
@xpqz Which one? This is the similar issue in the sphinx docs (maybe there are others, haven't looked) where the person there wants to add some metadata to the book. This is the MDAPL issue where I documented my findings
 
 
2 hours later…
3:28 PM
Is there an elegant pattern to do a power-fixed-point (⍣≡) but in "scan fashion", ie returning all intermediates? In k I can do something like this:
 {_x%2}\32
32 16 8 4 2 1 0
Or do I roll my own accumulator?
 
@xpqz Nothing elegant, but what did you search APLcart for?
 
I didn't :/
scan power yields X(f{⍺←⊢ ⋄ r⊣⍺ ⍺⍺{⍺←⊢ ⋄ r,∘⊂←⍺ ⍺⍺ ⍵}⍣⍵⍵⊃r←⊂⍵}Y)Z
 
And that's what you need, right?
      {⌊⍵÷2}{⍺←⊢ ⋄ r⊣⍺ ⍺⍺{⍺←⊢ ⋄ r,∘⊂←⍺ ⍺⍺ ⍵}⍣⍵⍵⊃r←⊂⍵}{⍺=0}32
32 16 8 4 2 1 0
 
Trying to figure out how it works.
 
I'd like to toy with running APL on a server. Would my best bet be Dyalog's JsonServer, Conga, or something like April or ngn-apl?
To be a tad more specific, I'd like a front-end of my own, written primarily in JS, to communicate with such server. (I want to demonstrate some stuff to another front-end dev)
 
3:37 PM
Dyalog is your best bet. April could work too
@AndréLeria You want MiServer
 
If using Dyalog, should I try JsonServer or Conga? I couldn't understand JsonServer from the (limited) docs, and Conga seems a lot lower level
@FawnLocke Doesn't MiServer generate its own front-end?
 
I'm not 100% sure. I know it fits your use case, I'd be very surprised if you couldn't customize it. Conga is the second option
 
@AndréLeria Look into Jarvis (which has replaced JSONServer).
 
@Adám Thanks, hadn't heard of it
 
Oh, yeah, Jarvis exists now too.
 
3:39 PM
@FawnLocke Will still look up on it, thanks for the suggestion
 
Jarvis is perfect for serving some static HTML/CSS/JS (and any other files) then getting and responding to requests from that frontend using JSON.
This is what TryAPL is powered by.
 
Serving static files is nice, even if not required for such setup
I'm more interested on its REST capabilities
 
That is its other main feature. Jarvis = JSONServer + RESTServer
 
I see, I'm taking a look at its wiki
 
Jason And Rest serVIS
 
3:44 PM
... neat
servis from service really looks like a brazilian pun
There was this brazilian comedian who put "is" at the end of the last word of each sentence, reminded me of him
 
Apparently "servis" is Bosnian for "service".
 
4:40 PM
The docs and samples are taking me quite a while to understand, but I believe I am really slowly getting it
I guess Sinatra/Flask/Express/friends just made me too soft with their routers
 
I don't know if this is the place, but in case anyone here are interested in both APL and Plan 9 (the operating system), I have started work on an APL interpreter for that system. Most primitives are there, but are slow. Feedback is very welcome. The half done website is apl.pmikkelsen.com
 
Neat
 
Super cool!
 
I still want to implement either an AssemblyScript version inspired by ngn-apl, or another language inspired by APL. As I've said some times, it's a long term goal (that I will never even start and if I do I'll give up)
If I were to create an APL-inspired language, the first changes that come to mind would be lazyness (which AFAIK is hell to implement) and different error handling
 
@AndréLeria KAP is lazy.
@pmikkelsen That looks really nice. The fact that you've got Rank already is impressive.
 
4:52 PM
I remember you telling me. I'll take a look at its source if I ever venture into this
 
@pmikkelsen About the double-letter things: I completely agree with aversion to ∘. but the idea of adding even-higher-order functions ("hyperators") to the language exists (in fact, NARS2000 already does so). For those, you'd need a way to reference the "hyperands" besides for the operands and arguments, as well as a way to self-reference. ⍺⍺⍺ ⍵⍵⍵ ∇∇∇ are the obvious choice.
 
@Adám Ah I haven't thought of that :)
 
(Core) APL is such a simple language that it is tempting to want to implement it (and "fix" "mistakes"), but there's a risk of making hasty conclusions without having in-depth knowledge of reasons for historical design decisions.
 
I am well aware of such. I have no ambitions of creating the next Dyalog. But it will certainly be an experience
A fun experience? Maybe not. But an experience indeed
(I've always wanted to implement a programming language)
 
Btw, don't get me wrong as trying to squelch the competition. I'm often engaged in design discussions and advise for those implementing APL.
 
5:04 PM
I'm aware. If you wanted to bash the competition you wouldn't point out to BQN, J, K and other languages when asked about, I guess
 
 
2 hours later…
6:58 PM
what does NONCE ERROR mean? how was this name derived?
 
@KamilaSzewczyk You can see the meaning on APLcart. It is idiomatic English and means For the time being, with the expectation that the situation may change.
 
oh, makes sense. When you google "nonce", weird stuff comes up.
 
 
3 hours later…
10:06 PM
@Adám @emanresuA Can't talk in The Nineteenth Byte (I thought I was supposed to have permissions?) but the answer to the question about BQN errors is that there's a function fmtErr in docs/bqn.js to convert an error into a string for display.
 
@Marshall Thanks. (Access is granted per-room.)
 
@Adám I mean I thought someone gave them to me when BQN was Language of the Month. But maybe not.
 
I wasn't involved. Maybe it was temporary. Apparently TNB doesn't have a tradition of giving permanent access to people (nobody has that status atm), but it shouldn't be too hard for you to to get two upvotes on code golf posts (or anything else on Stack Exchange)…
 
@Marshall Oh, thanks!
 

« first day (1834 days earlier)      last day (837 days later) »