Readit News logoReadit News
tgamblin commented on enclose.horse   enclose.horse/... · Posted by u/DavidSJ
freakynit · 2 months ago
Im over 35 years of age. I have 15+ years of programming experience. And I generally consider myself as someone who has good breadth of tech in general. Yet, this is the first time in my life I've heard of ASP. And gosh. I was completely blown away by this as I read more about it and went through some examples (https://github.com/domoritz/clingo-wasm/blob/main/examples/e...)

Therefore, like a good little llm bitch that I have become recently, I straight away went to chatgpt/sonnet/gemini and asked them to compile me a list of more such "whatever this is known as". And holy cow!! This is a whole new world.

My ask to HN community: any good book recommendations related to "such stuff"? Not those research kinds as I don't have enough brain cells for it. But, a little easier and practical ones?

Thanks..

tgamblin · 2 months ago
The more recent Lifschitz book is the easiest to learn from IMO:

- https://www.cs.utexas.edu/~vl/teaching/378/ASP.pdf

It starts with basics of using ASP and gives examples in clingo, not math.

The Potassco book is more comprehensive and will help you understand better what is going on:

- https://potassco.org/book/

Things I don't like include that it's more dense, doesn't use clingo examples (mostly math-style examples so you kind of have to translate them in your head), and while the proofs of how grounding works are interesting, the explanations are kind of short and don't always have the intuition I want.

I still think this is the authoritative reference.

The "how to build your own ASP system" paper is a good breakdown of how to integrate ASP into other projects:

- https://arxiv.org/abs/2008.06692

The Potassco folks are doing amazing work maintaining these tools. I also wish more people knew about them.

EDIT: I forgot to mention that specifically for games stuff like enclose.horse, look at Adam Smith's Applied ASP Course from UCSC:

- https://canvas.ucsc.edu/courses/1338

Forgot to mention that one... we use clingo in Spack for dependency solving and other applications frequently slip my mind.

Deleted Comment

tgamblin commented on Show HN: Wetlands – a lightweight Python library for managing Conda environments   arthursw.github.io/wetlan... · Posted by u/arthursw
vindex10 · 9 months ago
it was also my first thought on abstractions of abstractions, thanks for sharing :)

could you elaborate a bit more on why HPC world is special when it comes to configuring the environment?

I always feel it is a typical problem in software development, to separate operating system env from the application env.

do you use spack / easybuild on your personal computer, for example if you need to install a package that is not part of the distribution?

tgamblin · 9 months ago
I do for macOS and Linux :). Windows support is also coming along.

There isn’t anything particularly special about the HPC world other than the need for many different configurations of the same software for many different CPU and GPU architectures. You might want to have several versions of the same application installed at once, with different options or optimizations enabled. Spack enables that. Environments are one way to keep the different software stacks separate (though, like nix, spack uses a store model to keep installs in separate directories, as well).

tgamblin commented on The Simplicity of Prolog   bitsandtheorems.com/the-s... · Posted by u/thunderbong
lionkor · a year ago
How can I use Prolog to actually get something done, other than academic tasks?

Say I want to use it as a database query language, presumably that's not going to happen, right?

tgamblin · a year ago
> Datalog is a declarative logic programming language. While it is syntactically a subset of Prolog, Datalog generally uses a bottom-up rather than top-down evaluation model. This difference yields significantly different behavior and properties from Prolog. It is often used as a query language for deductive databases.

https://en.m.wikipedia.org/wiki/Datalog

tgamblin commented on Apple. Apple Please   digipres.club/@misty/1129... · Posted by u/ciclotrone
KolenCh · 2 years ago
Oh, wow. Glad I asked. I thought you mean port but while they are related it is something I’ve never heard of.

Brew has transitioned into primarily bottled (pre-compiled binary). Compiling with the local march sounds great and it is quite difficult to find one consistently do that. On top of that, I’m trying to look for one that can be installed on arbitrary prefix too and recently I’ve been eyeing on pkgsrc, gentoo prefix, and spack.

tgamblin · 2 years ago
Spack doesn't require any particular prefix... it has a deployment model like nix, and the store can go anywhere. Binary caches are relocatable.

u/tgamblin

KarmaCake day594June 11, 2015View Original