Hacker Newsnew | past | comments | ask | show | jobs | submit | foldl2022's commentslogin

So, show me the model weights, please.

A nice side-effect of "variables at the top": you keep your functions short.


"Functions should always be short" is also one of those guidelines that people treat like a hard rule. There are occasions when a 100 line function is easier to read than 5 20 line functions, or god forbid 20 5 line functions.

Stop being overly dogmatic, it ALSO leads to worse code.


There are occasions => There are only rare occasions.


One would assume that, but in practice, the predominant style is not one of many short procedures. Instead it feels that there's a preference to just inline the code unless the resulting procedure will have more than one caller.

For example, search for "PROCEDURE Scan" here: https://people.inf.ethz.ch/wirth/ProjectOberon/Sources/Texts...

Control structures are deeply nested and this goes on for 64 (very dense) lines. The low line count but is an artifact of how Oberon is conventionally formatted. When reformatted to mimic the conventions of languages like C, Java or Python it works out to more than 120 lines.

When I program in Oberon (recreationally) I tend to follow this style even though I would extract the same code into a separate method were I writing in Java.


Lazarus is still my favorite when developing desktop apps.

Language is not a problem. Pascal is just C/C++ in another favor. LCL/VCL is a wonderful library, everything just works like what I am expecting.


Me too! I have a software in production for a client made with Lazarus 3 (in Pascal of course) and everybody loves the "Windows feel" of the Gui. On Linux there is Gambas [1] wich is like Lazarus but for Basic.

[1] https://gambaswiki.org/website/en/main.html


Lazarus is available on Linux too, and on some other platforms as well, is what I've read on its site.


I had a client habing trouble with and old vb6 software they where using in production. Replaced it with a lazarus app, and been running for 10 years now without problems.


Pascal is more ALGOL than C


ALGOL-60 was huge, in around 1960. Niklaus Wirth had a detailed proposal for the next version of ALGOL, to be called ALGOL-X.

The ALGOL committee rejected it, choosing a competing and much more complex language headed by Adriaan van Wijngaarden. This became ALGOL-68 -- and killed ALGOL.

Wirth took what was known as ALGOL-W and turned it into Pascal.

FWIW I wrote about this:

https://www.theregister.com/2024/01/04/niklaus_wirth_obituar...

https://www.theregister.com/2025/01/07/algol_68_comes_to_gcc...

Another offshoot of Algol-60 was CPL, intended to be more general-purpose and capable. But it was big and hard work to get it working.

So Martin Richards designed, a simpler intermediate version, BCPL. (He also built an OS in it, TRIPOS. This formed part of AmigaOS 1.x.)

BCPL was further stripped down to B, and then evolved into C.


Tan looks like Pat. Amazing.


Tan is much taller apparently.


Just open-wights it. We need this. :)


Off the topic: I am also in favor of minimalist.

In the case of AlphaGeometry, I made AlphaGeometryRE to get rid of tensorflow/jax/flax, and 100+ Python packages.


Author here. It took quite a lot of time and efforts to implement this old model. The situation is worsened by `meliad` framework. Glad to see that `meliad` is not active now.


Is one ESP32 enough?


I don't see why it needs two. Should be plenty of RAM left, unless I underestimate how much esp-idf and co consumes.


Glad that Nim had solved this problem with a macro `capture`.

It's up to the developers to capture loop variables or not.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: