Help - Search - Members - Calendar
Full Version: Facets Of Judaism And Programming Languages
Hashkafah.com > Misc. Advice & Help! > Technology
shaya_getzl
(Numbing day at work ...)

To think about it, if C would correspond to the "normative" across the line Judaism, one could argue that

Brisk --> Ada
(
Largely irrelevant
Everybody tries to imitate it
Pathologically impractical
Retentive
Boring
The only compliant language in every sense of the word
Designed by a comittee
)

Chassidism --> C++
(
claims to do everything C does;
nobody remembers why it was invented
even more efficient in casting most arguments to void*
those who don't know it can't get enough bashing it;
" Tzadik = &God; " is a legitimate declaration
Templates can instantiate a totally new class out of just a village name : " chassidus<Tzelem> "
sizeof chassidus<Tzelem> == 0;
Many creative implementations over years
Almost all of them gone, and a mediorcity seems to have won
Designed by a anti-comittee
)

Chabad --> Java
(
Claims to be a better C++
Has some of the richest libraries around
Those library breaks a lot
Looks free but costs a lot
In theory, can interface with anything else
In practice, theory remains a theory
Those who know it can't get enough bashing it;
"Tzadik = God;" is a legitimate declaration
Designed by marketing dept.
)

Lakewood --> COBOL
(
Does in 12 pages what C++ does in three lines
Too much legacy to discard
Criminally mind-numbing
Designed by a comittee
)

Western Sepharade --> ALGOL 68
(
Was ahead of its time
Had some very nice ideas
Influenced almost everything that came afterwards
Is dead
)

Hungarianism --> FORTRAN
(
A "real coder" will write FORTRAN in any language
Defensively passive-aggressive
Often is the only tool to get the job done
Looks dead but isn't
)

Aish haTorah --> BASIC
(
Cripples minds and fingers
Sometimes teaches anti-values
Producing positive results that can be disorienting
"Sometimes good people do very bad things"
)

Classic Lurianic Kabbalism --> Assembler
(
Is underneath everything
Knowledge is very helpful even if not used directly
Very few use it directly
Even fewer use it properly
Even fewer use it with a benefit
Extinct as an Art
)

Modern Kabbalism --> INTERCAL
(
Look up INTERCAL
)
int
Why are only procedural languages covered!?

_ --> ML
(
...
)
shaya_getzl
I started covering Haskell, LISP and Erlang but that would be too offensive to some members ...

But C++ is a functional language. Here is why :

CODE
#include <map>

using namespace std;

template <typename T, int L>
class Lithpy
        : public map<T, Lithpy<T, L-1> >
{
  public:
  Lithpy(const T& t)
  {
  ;
  };
};

template <typename T>
class Lithpy<T,0>
: public map<T, int>
{
public:
Lithpy<T, 0> *myself;
Lithpy(const T& t)
{
  myself = (Lithpy<T, 0>*) new map<T, int>;
  (*myself)[0] = t;
}
}
;

int main()
{
    Lithpy<int, 10> L(20);
}
int
QUOTE(shaya_getzl @ Jan 17 2008, 12:58 PM) *
I started covering Haskell, LISP and Erlang but that would be too offensive to some members ...


Oh, but please do. The public demands to know!
Gabbe
Ten points to SG.
Kalashnikover_Rebbe
QUOTE(shaya_getzl @ Jan 17 2008, 07:58 PM) *
I started covering Haskell, LISP and Erlang but that would be too offensive to some members ...

Don't worry, only about 5 people understand WTH you are talking about anyway....
grend123
What about obfuscated languages? I'd like to see something about Malbolge or Ook!

Kudos to SG on that code - it's well known that c++ templates are turing complete, but template programming of this sort is still so fabulously ugly.
int
QUOTE(shaya_getzl @ Jan 17 2008, 12:58 PM) *
CODE
Lithpy(const T& t)
{
  myself = (Lithpy<T, 0>*) new map<T, int>;
  (*myself)[0] = t;
}
}
;


You mean (*myself)[t] = 0; ?

Also, yeah while templates provide for iteration (or even turing completeness?) this does not make <C++ with templates> a functional language <pedantic evil smilie>
int
QUOTE(grend123 @ Jan 17 2008, 03:33 PM) *
What about obfuscated languages? I'd like to see something about Malbolge or Ook!

Kudos to SG on that code - it's well known that c++ templates are turing complete, but template programming of this sort is still so fabulously ugly.


CODE
Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook! Ook? Ook! Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook? Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook. Ook! Ook? Ook? Ook. Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook! Ook. Ook? Ook! Ook! Ook? Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook! Ook? Ook. Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook! Ook? Ook! Ook! Ook? Ook. Ook! Ook? Ook? Ook. Ook. Ook. Ook. Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook! Ook! Ook? Ook! Ook? Ook. Ook! Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook! Ook! Ook! Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook! Ook! Ook! Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook! Ook! Ook! Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook! Ook! Ook! Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook! Ook! Ook! Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook! Ook! Ook! Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook! Ook! Ook! Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook! Ook! Ook! Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook! Ook! Ook! Ook? Ook. Ook? Ook! Ook? Ook! Ook! Ook? Ook! Ook. Ook? Ook. Ook? Ook. Ook. Ook. Ook? Ook. Ook? Ook! Ook? Ook! Ook! Ook? Ook! Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook. Ook! Ook! Ook! Ook? Ook. Ook? Ook. Ook. Ook? Ook. Ook! Ook! Ook? Ook! Ook? Ook! Ook? Ook! Ook? Ook! Ook? Ook! Ook? Ook! Ook? Ook! Ook? Ook! Ook? Ook! Ook? Ook! Ook? Ook! Ook. Ook? Ook. Ook? Ook! Ook? Ook? Ook. Ook? Ook. Ook. Ook. Ook. Ook? Ook. Ook? Ook! Ook! Ook? Ook! Ook. Ook. Ook. Ook? Ook. Ook? Ook. Ook? Ook? Ook! Ook? Ook. Ook? Ook. Ook? Ook. Ook? Ook!


What does this resemble?

Oh wait...I know! It resembles so many of my shidduch dates.
Milton
QUOTE(shaya_getzl @ Jan 17 2008, 12:36 PM) *
(Numbing day at work ...)


Funny smile.gif
shaya_getzl
QUOTE(grend123 @ Jan 17 2008, 03:33 PM) *
What about obfuscated languages? I'd like to see something about Malbolge or Ook!

Hey, look right there under Moder Kabbalism.

QUOTE
Kudos to SG on that code - it's well known that c++ templates are turing complete, but template programming of this sort is still so fabulously ugly.

No uglier then Lisp or Ocaml ;- I find STL beautiful in its own way. Thanks for kudos - I wrote it all myself ;-. Now you see what a day at work started looking like ...


So :

STL <--> Chachmei Ashkenaz

grend123
QUOTE(shaya_getzl @ Jan 17 2008, 04:43 PM) *
Hey, look right there under Moder Kabbalism.


Ha! I missed the INTERCAL reference on first glance.
shaya_getzl
QUOTE(int @ Jan 17 2008, 03:51 PM) *
You mean (*myself)[t] = 0; ?

No, because then it would make a tiny bit of sense and it is imperative for functional programming not to make any practical sense whatsoever.

QUOTE
Also, yeah while templates provide for iteration (or even turing completeness?) this does not make <C++ with templates> a functional language <pedantic evil smilie>

It's all semantics.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.