News for hackers. Stuff that matters.
Re:Stochastic gradient descent written in SQL by naasking on Tuesday March 07, 2023 @04:13PM (#35061316)
You just reinvented defunctionalization, which is a transformation from a domain that has first-class values to a domain where support is only second-class. Defunctionalization is typically used in programming languages to simulate first-class functions in languages where functions are only second-class citizens, like C and Pascal.

This perfectly illustrates my point. You had to manually defunctionalize your data model and queries to support what I'm saying should be inherently part of SQL.

Re:Stochastic gradient descent written in SQL by CRConrad on Thursday March 09, 2023 @05:08PM (#35087471)
> languages where functions are only second-class citizens, like C and Pascal.

1) Only if you define Pascal as only Wirth's very first version. That changed almost immediately.

2) Only if you refuse to equate “pointer to function” with “function”. Which in C, where “everything is a pointer” (a bit like in Unix Linux “everything is a file”), seems rather silly.