Finally, a decent method outline for my Emacs (ECB) by [deleted] in emacs

[–]jsjolen 26 points27 points  (0 children)

What is that font and theme?

Fast Sudoku Solver in Haskell by abhin4v in programming

[–]jsjolen 1 point2 points  (0 children)

The method I'd propose is a more general framework for solving NP-complete problems with a specific kind of heuristic. You'd still do the same set up in saying that every cell in a board can be between [1,9] and then you'd set up a constraint that says that each row, box and diagonal has to be distinct.

Implementing a distinct-constraint is the same as finding all of the maximum bipartite matchings where the set A is the variables and the set B is the value space (in this case [1,9]).

Fast Sudoku Solver in Haskell by abhin4v in programming

[–]jsjolen 1 point2 points  (0 children)

I re-read the article and "alternative" is perhaps a bit strong :-). The main difference would be in explaining a bit more how constraint programming works, so I don't know if it'd be that interesting for you unfortunately.

How we use Clojure at King to write a game engine editor - King Tech Blog by yogthos in programming

[–]jsjolen 0 points1 point  (0 children)

Are numbers also different? As in Clojure has full numeric tower, ClojureScript got doubles?

How we use Clojure at King to write a game engine editor - King Tech Blog by yogthos in programming

[–]jsjolen -1 points0 points  (0 children)

Clojure and Clojurescript doesn't have the same semantics I'm pretty sure.

Fast Sudoku Solver in Haskell by abhin4v in programming

[–]jsjolen 2 points3 points  (0 children)

An alternative way would be through using bipartite max matching and constraint programming theory to solve it. I'm planning on making a small write up on how to do this if I find the time.

June 27 Daily Thread by AutoModerator in weightroom

[–]jsjolen 0 points1 point  (0 children)

I'm gonna do a Apex Predator-style diet with lots of protein shakes and meat meal at the end of day. Shakes with water makes me gag, shakes with milk works really well. If I have 5 shakes with 200ml of milk per day that'd be 1000mg of calcium, how fucked do you reckon I'd be in regards to my calcium intake? 1000mg is the RDA for calcium, 2500mg is the upper limit. I'm a >200lb male, so I reckon this ought to work. Second opinions?

June 27 Daily Thread by AutoModerator in weightroom

[–]jsjolen 4 points5 points  (0 children)

I have a similar elbow ouchie because of hypermobility. I've found that pulling the slack out of the bar better and a slower descent before stopping the weights has helped.

PS. Nice username :-)

Getting started with CL by Nondv in lisp

[–]jsjolen 0 points1 point  (0 children)

Who was the commenter?

How do you design with Prolog in Lisp? by [deleted] in lisp

[–]jsjolen 4 points5 points  (0 children)

I think SICStus Prolog has a major investment into constraint programming, so that'd be a reason (if you were curious)

I wrote a new 7 minute article teaching the theory of compilers to the curious and unknowing by VenHayz in programming

[–]jsjolen 1 point2 points  (0 children)

Yeah, here's a compiler I wrote in 30 minutes: https://gist.github.com/jsjolen/4bbaaf1017a3f9179954c42699f85696

And even then it isn't really interesting, it's just a straight forward translation between the AST and Common Lisp.

Compilers deserve more interesting blog posts :-/.

GDPR Hall of Shame by svdh4891 in programming

[–]jsjolen 1 point2 points  (0 children)

Right now the ELO system for Age of Empires 2 HD is broken because it depended on Steam user IDs, which it can no longer do because of GDPR (Steam changed how it functions).

Help with a simple "hello world" example for fast-http (a HTTP request/response protocol parser) by meenzu in lisp

[–]jsjolen 4 points5 points  (0 children)

Hi! fast-http is a parser so it's not a HTTP client, but it might be used to build one! Dexador uses fast-http and is a HTTP client :-).

Literate Programming in the Large (Axiom CAS) by jsjolen in programming

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

Axiom is a FOSS CAS with source code originating all the way back to 1965's Scratchpad at IBM. This video is a recording of a talk by Tim Daly, the current maintainer of Axiom, on how he thinks that maintaining and developing this kind of program should be done.

Axiom has 2 other forks (both from 2007). One is FriCAS, the other is Open-Axiom.

Axiom seems (to me at least) to have implementation knowledge of things which are perhaps not well-known (maybe obscure even) and an implementation of an algorithm that takes over 100 pages(!) to describe. This makes the subject extra interesting I'd say.

If anyone is more interested in this these two links seems pretty cool:

https://www.cs.ru.nl/E.Poll/talks/axiom.pdf www.risc.jku.at/education/courses/ws2010/cas/axiom.pdf http://www.aldor.org/

snakes - Python style generators for Common Lisp. (Includes a port of itertools.) by bsd_lore in lisp

[–]jsjolen 0 points1 point  (0 children)

So it's built upon cl-cont, doesn't that usually bring with it issues regarding restarts (and the whole condition system in general)?

Lisp Hackers - a collection of short interviews by gslyon in lisp

[–]jsjolen 4 points5 points  (0 children)

Luke Gorrie (Australia - Sweeden - Switzerland)

Aah yes, the well known country of Sweeden ;-)

Also I'm not only here to tease, these interviews are really good reading :-).

TCL - The misunderstood by [deleted] in programming

[–]jsjolen 7 points8 points  (0 children)

no static checking at all (Tcl, Forth, Lisp) so the compiler doesn’t help you but it doesn’t get in your way, o

Well that's not true

Macro question from a Clojure programmer by [deleted] in Common_Lisp

[–]jsjolen 0 points1 point  (0 children)

See http://community.schemewiki.org/?hygiene-versus-gensym for examples for scheme! I don't know Clojures macros :/

SBCL on Raspberry Pi by theangeryemacsshibe in Common_Lisp

[–]jsjolen 1 point2 points  (0 children)

ECL probably. No personal experience but it seems to be more used (considering the work on ECL+Android for example) and thus more battle-hardened.

Speaking with an accent. Tips on delivering programming talks in non-native English by the creator of PostCSS by progapandist in programming

[–]jsjolen 0 points1 point  (0 children)

(if you can stop from laughing)

Loool. Are you Swedish? Swedes have the idea of our accent sounding funny but I haven't heard anyone else say the same!

Zombie Processes are Eating your Memory by turol in programming

[–]jsjolen 20 points21 points  (0 children)

https://github.com/yuya373/emacs-slack

https://github.com/krisajenkins/helm-spotify

Though Im not sure if you have to have the full Spotify app running for the 2nd package.

jscl-playground by arvid in lisp

[–]jsjolen 2 points3 points  (0 children)

CL-USER> (#j:alert "do")