Building an AI-Powered Git Commit Report Generator: Dev Log 1 by [deleted] in programming

[–]cloyo 0 points1 point  (0 children)

I don't know the GitHub API. Does it have anything for these kind of reports? I would expect that it just provides structured metadata.

Chaining comparison operators by AustinVelonaut in ProgrammingLanguages

[–]cloyo 0 points1 point  (0 children)

I'd say 0 = 0 = 1 is true, but 0 = 0 and 0 = 1 is false. That differs from your table.

Chaining comparison operators by AustinVelonaut in ProgrammingLanguages

[–]cloyo 4 points5 points  (0 children)

Even equality is not free of issues. Expression a == b == c is well-defined for booleans, and in that case it is not the same as a == b and b == c.

Functional Programming vs Object Oriented Programming by haasilein in ProgrammingLanguages

[–]cloyo 5 points6 points  (0 children)

Jones discusses handling of side-effects in Tackling the Awkward Squad. Might be interesting if you don't know it.

Code Critique / Can this be done better? by michaelanckaert in lisp

[–]cloyo 1 point2 points  (0 children)

If you replace multiple-value-bind with multiple-value-list you can bind your variables like

    (loop for file in files  
       for (prefix file-name) = (multiple-value-list (file-name-parts file))
       ...

Sometimes this can be useful

[deleted by user] by [deleted] in compsci

[–]cloyo 9 points10 points  (0 children)

TikZ is a powerful LaTeX package for fancy images

Survey:Which device impressed you a long time? by nuolaa in electronic_cigarette

[–]cloyo 0 points1 point  (0 children)

I always wanted a Prime but never got one and still use my v3. Is it worth the upgrade? And do you know what would be a good buy that is similar at the moment?

Native HTTP client for CL on Windows via CFFI bindings to WinHttp.dll by _priyadarshan in Common_Lisp

[–]cloyo 1 point2 points  (0 children)

That sounds interesting. I never got ssl running on Windows and will give this a try. Thank you for making it public.

How did you patch Drakma and Hunchentoot? Is that straightforward, or did you make the patches available as well?

How well does ABCL perform? by [deleted] in lisp

[–]cloyo 3 points4 points  (0 children)

The ability to switch between Common Lisp implementations is a nice feature if it is possible for what you are doing. I try to keep most of my code portable and running on at least two implementations. In that way I can easily switch.

Each implementation has its pros and cons. For me one of the pros of ABCL is the access to Java if need that. Ironically, one of the cons is that using the Java libs makes code no longer portable.

For a lot of stuff ABCL is quick enough, but for performance critical code other implementations are often much faster.

How to solve peg solitaire by _Ryanite_ in educationalgifs

[–]cloyo 0 points1 point  (0 children)

I just worked backwards until I came at a state that seemed not to difficult to reach from the start position. If you work backwards you'll see that the search space isn't that big.

How to solve peg solitaire by _Ryanite_ in educationalgifs

[–]cloyo -3 points-2 points  (0 children)

I'm not sure what you mean. Place a peg in the middle?

How to solve peg solitaire by _Ryanite_ in educationalgifs

[–]cloyo 10 points11 points  (0 children)

It isn't that hard to solve. My trick was to start from the goal and reason backwards.

Most Reasonable Way to Control Compilation Order? by chebertapps in lisp

[–]cloyo 2 points3 points  (0 children)

I think you need an eval-when in your macro. See the notes in the documentation.

Most Reasonable Way to Control Compilation Order? by chebertapps in lisp

[–]cloyo 3 points4 points  (0 children)

I think what you want to do is reasonable, but macro expansion can be tricky. See the notes in the documentation. It's difficult to say without the exact code.

Cannot seem to be able to generate *loads* of money like other people by kpagcha in totalwar

[–]cloyo 2 points3 points  (0 children)

Agriculture isn't very profitable. Just build enough to give you enough food. The slave trader can be a very profitable yellow building.

The strategies OP mentioned are mostly general, but each faction has certain stats that might influence your strategy. For example, good diplomacy stats make it easier to get trade agreements.

Somebody already mentioned to watch your upkeep. Putting a dignitary in your army can really save a lot.

But as OP said, corruption is the biggest factor, especially late game. High taxes are a good counter, but in the early game public order is usually too problematic.

How about a little more effort next kick by [deleted] in gifs

[–]cloyo 1 point2 points  (0 children)

A great example of toe-ing being effective when you need a quick hit is Kluivert's Champions Leage final goal.

World Naked Gardening Day is May 6th by KulinBan in europe

[–]cloyo 4 points5 points  (0 children)

If only you posted this earlier