Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Janitor Prime
Jan 22, 2004

PC LOAD LETTER

What da fuck does that mean

Fun Shoe

FamDav posted:

theres a distinction between what should be language level and what should be library level. c++ makes all the wrong choices.

also generics in java is basically a wrapper around void* containers that does some compile time checking to make sure you really didnt put the wrong kind of thing in there.

best description of java generics ever

Adbot
ADBOT LOVES YOU

JewKiller 3000
Nov 28, 2006

by Lowtax

yaoi prophet posted:

how much confusion do you think would be avoided if c used different words for functions returning void and like void pointers

none

JewKiller 3000
Nov 28, 2006

by Lowtax
if you don't know what a void pointer is, and don't intuitively understand that it can't possibly be a pointer to a void value, then you have no business writing C

i'm not saying void pointers are good design, just that people are stupid

Malcolm XML
Aug 8, 2009

I always knew it would end like this.

JewKiller 3000 posted:

if you don't know what a void pointer is, and don't intuitively understand that it can't possibly be a pointer to a void value, then you have no business writing C

i'm not saying void pointers are good design, just that people are stupid

They used to be char pointers which I guess made sense at the time

Brain Candy
May 18, 2006

it does but then does it mean a string, a byte array, a pointer of some unknown type, please look at any other argument(s) and the seven character name to figure it out.

Zlodo
Nov 25, 2006

Nomnom Cookie posted:

i wish c++ had sane and convenient features rather than a horrifyingly complicated and lovely compile-time environmemt for computation of types.

yeah that's basically what i dislike with c++. you can do all kind of neat compile time stuff but you are forced to use functional kinda programming with a very awkward syntax just because the entire thing grew out of a system that was originally only made to do generic containers

thing is there's no good alternative mature language with good metaprogramming facilities that compiles to native code

rust is promising but looks still quite some way from being a production quality language

unixbeard
Dec 29, 2004

jit compilation is better anyway cause it can make the most of whatever the current cpu supports

Zombywuf
Mar 29, 2008

FamDav posted:

considering it took until the yool 2012 for lambdas to make it into these languages, i await 2030 when we finally get typeclasses.

Koenig Lookup is far more powerful than typeclasses.

suffix posted:

like you don't sit there with your c# and java sometimes and think to yourself "boy, i wish i had a turing complete metaprogramming language based on type parametrization right now."

Oh man, all the loving time.

Zlodo
Nov 25, 2006

unixbeard posted:

jit compilation is better anyway cause it can make the most of whatever the current cpu supports

everything has p much the same cpus nowadays
desktop: core I whatever
mobile: some arm w/ neon

I thought the standard fantasy that jit is better than offline compilation was that it could detect hot code paths dynamically

Condiv
May 7, 2008

Sorry to undo the effort of paying a domestic abuser $10 to own this poster, but I am going to lose my dang mind if I keep seeing multiple posters who appear to be Baloogan.

With love,
a mod


vapid cutlery posted:

or having generics without type-erasure maybe

it's not a huge problem. when you run into situations where you need reified generics there are ways to carry that information into the function in p. much every jvm language, including java proper.

pretty much the only actual problem type-erasure has caused me is not being able to do like so:

code:
def fn(x: List[String]) {yosbutt.activate(x)}
def fn(x: List[Int]) {fart()}

Nomnom Cookie
Aug 30, 2009



type erasure is still a pain in the dick & you can't use primitives as type parameters. not that they'd let you anyway, the assholes

Condiv
May 7, 2008

Sorry to undo the effort of paying a domestic abuser $10 to own this poster, but I am going to lose my dang mind if I keep seeing multiple posters who appear to be Baloogan.

With love,
a mod


Nomnom Cookie posted:

type erasure is still a pain in the dick & you can't use primitives as type parameters. not that they'd let you anyway, the assholes

you actually can in scala if you specialize your classes/functions for the primitives

code:
def fn[@specialized(Int) T](x: T) = x

//creates this bytecode
  public <T extends java/lang/Object> T fn(T);
    flags: ACC_PUBLIC
    Code:
      stack=1, locals=2, args_size=2
         0: aload_1       
         1: areturn       
      LocalVariableTable:
        Start  Length  Slot  Name   Signature
               0       2     0  this   L;
               0       2     1     x   Ljava/lang/Object;
      LineNumberTable:
        line 7: 0
    Signature: #33                          // <T:Ljava/lang/Object;>(TT;)TT;

  public int fn$mIc$sp(int);
    flags: ACC_PUBLIC
    Code:
      stack=1, locals=2, args_size=2
         0: iload_1       
         1: ireturn       
      LocalVariableTable:
        Start  Length  Slot  Name   Signature
               0       2     0  this   L;
               0       2     1     x   I
      LineNumberTable:
        line 7: 0

tef
May 30, 2004

-> some l-system crap ->

Zombywuf posted:

Oh man, all the loving time.

why don't you just get over it and use common lisp

tef
May 30, 2004

-> some l-system crap ->
aside

remember amqp? the protocol that released a series of incompatible versions before abandoning the architecture for 1.0

anyway, ages ago, imatix went 'gently caress this poo poo' and wrote 0mq

the creator of 0mq then went gently caress this poo poo and forked crossroads.io

anyway, the author of that went gently caress this poo poo and made nanomsg

:v:

Notorious b.s.d.
Jan 25, 2003

by Reene

tef posted:

why don't you just get over it and use common lisp

common lisp sounds pretty great on paper. it is pretty much the only high level language other than java and .net that has a mature compiler (in fact it has several)

if i hadn't tried to use it to write applications then i would never have found out what a pain in the dick it is in real life

Posting Principle
Dec 10, 2011

by Ralp
hopefully nanomsg will be ok, since he's writing it in a language he knows instead of trying to learn as he goes

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

Posting Principle posted:

C++ code:
    rules.append({QRegExp{R"(\b[A-Za-z0-9_]+(?=\=))"}, attr});
with the power of c++11 my code is now more incomprehensible than perl :unsmigghh:

is there a language where a nice pile of regex isn't going to look like that, though?

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

prefect posted:

is there a language where a nice pile of regex isn't going to look like that, though?

ragel

Zombywuf
Mar 29, 2008

prefect posted:

is there a language where a nice pile of regex isn't going to look like that, though?

Perl

Posting Principle
Dec 10, 2011

by Ralp

prefect posted:

is there a language where a nice pile of regex isn't going to look like that, though?

the regex is the least scary part of that line

tef
May 30, 2004

-> some l-system crap ->
someone taught kids recursion today using my coursework. they drew fractals


awwwwww yissss

tef
May 30, 2004

-> some l-system crap ->
code:
                               --
                              ----
                             --  --
                            --------
                           --      --
                          ----    ----
                         --  --  --  --
                        ----------------
                       --              --
                      ----            ----
                     --  --          --  --
                    --------        --------
                   --      --      --      --
                  ----    ----    ----    ----
                 --  --  --  --  --  --  --  --
                --------------------------------
               --                              --
              ----                            ----
             --  --                          --  --
            --------                        --------
           --      --                      --      --
          ----    ----                    ----    ----
         --  --  --  --                  --  --  --  --
        ----------------                ----------------
       --              --              --              --
      ----            ----            ----            ----
     --  --          --  --          --  --          --  --
    --------        --------        --------        --------
   --      --      --      --      --      --      --      --
  ----    ----    ----    ----    ----    ----    ----    ----
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
----------------------------------------------------------------

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

tef posted:

code:
                               --
                              ----
                             --  --
                            --------
                           --      --
                          ----    ----
                         --  --  --  --
                        ----------------
                       --              --
                      ----            ----
                     --  --          --  --
                    --------        --------
                   --      --      --      --
                  ----    ----    ----    ----
                 --  --  --  --  --  --  --  --
                --------------------------------
               --                              --
              ----                            ----
             --  --                          --  --
            --------                        --------
           --      --                      --      --
          ----    ----                    ----    ----
         --  --  --  --                  --  --  --  --
        ----------------                ----------------
       --              --              --              --
      ----            ----            ----            ----
     --  --          --  --          --  --          --  --
    --------        --------        --------        --------
   --      --      --      --      --      --      --      --
  ----    ----    ----    ----    ----    ----    ----    ----
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
----------------------------------------------------------------

hmm... where have i seen that before?

Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
its the triforce from zelda

tef
May 30, 2004

-> some l-system crap ->
code:
                                                                                                                               --
                                                                                                                              ----
                                                                                                                             --  --
                                                                                                                            --------
                                                                                                                           --      --
                                                                                                                          ----    ----
                                                                                                                         --  --  --  --
                                                                                                                        ----------------
                                                                                                                       --              --
                                                                                                                      ----            ----
                                                                                                                     --  --          --  --
                                                                                                                    --------        --------
                                                                                                                   --      --      --      --
                                                                                                                  ----    ----    ----    ----
                                                                                                                 --  --  --  --  --  --  --  --
                                                                                                                --------------------------------
                                                                                                               --                              --
                                                                                                              ----                            ----
                                                                                                             --  --                          --  --
                                                                                                            --------                        --------
                                                                                                           --      --                      --      --
                                                                                                          ----    ----                    ----    ----
                                                                                                         --  --  --  --                  --  --  --  --
                                                                                                        ----------------                ----------------
                                                                                                       --              --              --              --
                                                                                                      ----            ----            ----            ----
                                                                                                     --  --          --  --          --  --          --  --
                                                                                                    --------        --------        --------        --------
                                                                                                   --      --      --      --      --      --      --      --
                                                                                                  ----    ----    ----    ----    ----    ----    ----    ----
                                                                                                 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
                                                                                                ----------------------------------------------------------------
                                                                                               --                                                              --
                                                                                              ----                                                            ----
                                                                                             --  --                                                          --  --
                                                                                            --------                                                        --------
                                                                                           --      --                                                      --      --
                                                                                          ----    ----                                                    ----    ----
                                                                                         --  --  --  --                                                  --  --  --  --
                                                                                        ----------------                                                ----------------
                                                                                       --              --                                              --              --
                                                                                      ----            ----                                            ----            ----
                                                                                     --  --          --  --                                          --  --          --  --
                                                                                    --------        --------                                        --------        --------
                                                                                   --      --      --      --                                      --      --      --      --
                                                                                  ----    ----    ----    ----                                    ----    ----    ----    ----
                                                                                 --  --  --  --  --  --  --  --                                  --  --  --  --  --  --  --  --
                                                                                --------------------------------                                --------------------------------
                                                                               --                              --                              --                              --
                                                                              ----                            ----                            ----                            ----
                                                                             --  --                          --  --                          --  --                          --  --
                                                                            --------                        --------                        --------                        --------
                                                                           --      --                      --      --                      --      --                      --      --
                                                                          ----    ----                    ----    ----                    ----    ----                    ----    ----
                                                                         --  --  --  --                  --  --  --  --                  --  --  --  --                  --  --  --  --
                                                                        ----------------                ----------------                ----------------                ----------------
                                                                       --              --              --              --              --              --              --              --
                                                                      ----            ----            ----            ----            ----            ----            ----            ----
                                                                     --  --          --  --          --  --          --  --          --  --          --  --          --  --          --  --
                                                                    --------        --------        --------        --------        --------        --------        --------        --------
                                                                   --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --
                                                                  ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----
                                                                 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
                                                                --------------------------------------------------------------------------------------------------------------------------------
                                                               --                                                                                                                              --
                                                              ----                                                                                                                            ----
                                                             --  --                                                                                                                          --  --
                                                            --------                                                                                                                        --------
                                                           --      --                                                                                                                      --      --
                                                          ----    ----                                                                                                                    ----    ----
                                                         --  --  --  --                                                                                                                  --  --  --  --
                                                        ----------------                                                                                                                ----------------
                                                       --              --                                                                                                              --              --
                                                      ----            ----                                                                                                            ----            ----
                                                     --  --          --  --                                                                                                          --  --          --  --
                                                    --------        --------                                                                                                        --------        --------
                                                   --      --      --      --                                                                                                      --      --      --      --
                                                  ----    ----    ----    ----                                                                                                    ----    ----    ----    ----
                                                 --  --  --  --  --  --  --  --                                                                                                  --  --  --  --  --  --  --  --
                                                --------------------------------                                                                                                --------------------------------
                                               --                              --                                                                                              --                              --
                                              ----                            ----                                                                                            ----                            ----
                                             --  --                          --  --                                                                                          --  --                          --  --
                                            --------                        --------                                                                                        --------                        --------
                                           --      --                      --      --                                                                                      --      --                      --      --
                                          ----    ----                    ----    ----                                                                                    ----    ----                    ----    ----
                                         --  --  --  --                  --  --  --  --                                                                                  --  --  --  --                  --  --  --  --
                                        ----------------                ----------------                                                                                ----------------                ----------------
                                       --              --              --              --                                                                              --              --              --              --
                                      ----            ----            ----            ----                                                                            ----            ----            ----            ----
                                     --  --          --  --          --  --          --  --                                                                          --  --          --  --          --  --          --  --
                                    --------        --------        --------        --------                                                                        --------        --------        --------        --------
                                   --      --      --      --      --      --      --      --                                                                      --      --      --      --      --      --      --      --
                                  ----    ----    ----    ----    ----    ----    ----    ----                                                                    ----    ----    ----    ----    ----    ----    ----    ----
                                 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --                                                                  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
                                ----------------------------------------------------------------                                                                ----------------------------------------------------------------
                               --                                                              --                                                              --                                                              --
                              ----                                                            ----                                                            ----                                                            ----
                             --  --                                                          --  --                                                          --  --                                                          --  --
                            --------                                                        --------                                                        --------                                                        --------
                           --      --                                                      --      --                                                      --      --                                                      --      --
                          ----    ----                                                    ----    ----                                                    ----    ----                                                    ----    ----
                         --  --  --  --                                                  --  --  --  --                                                  --  --  --  --                                                  --  --  --  --
                        ----------------                                                ----------------                                                ----------------                                                ----------------
                       --              --                                              --              --                                              --              --                                              --              --
                      ----            ----                                            ----            ----                                            ----            ----                                            ----            ----
                     --  --          --  --                                          --  --          --  --                                          --  --          --  --                                          --  --          --  --
                    --------        --------                                        --------        --------                                        --------        --------                                        --------        --------
                   --      --      --      --                                      --      --      --      --                                      --      --      --      --                                      --      --      --      --
                  ----    ----    ----    ----                                    ----    ----    ----    ----                                    ----    ----    ----    ----                                    ----    ----    ----    ----
                 --  --  --  --  --  --  --  --                                  --  --  --  --  --  --  --  --                                  --  --  --  --  --  --  --  --                                  --  --  --  --  --  --  --  --
                --------------------------------                                --------------------------------                                --------------------------------                                --------------------------------
               --                              --                              --                              --                              --                              --                              --                              --
              ----                            ----                            ----                            ----                            ----                            ----                            ----                            ----
             --  --                          --  --                          --  --                          --  --                          --  --                          --  --                          --  --                          --  --
            --------                        --------                        --------                        --------                        --------                        --------                        --------                        --------
           --      --                      --      --                      --      --                      --      --                      --      --                      --      --                      --      --                      --      --
          ----    ----                    ----    ----                    ----    ----                    ----    ----                    ----    ----                    ----    ----                    ----    ----                    ----    ----
         --  --  --  --                  --  --  --  --                  --  --  --  --                  --  --  --  --                  --  --  --  --                  --  --  --  --                  --  --  --  --                  --  --  --  --
        ----------------                ----------------                ----------------                ----------------                ----------------                ----------------                ----------------                ----------------
       --              --              --              --              --              --              --              --              --              --              --              --              --              --              --              --
      ----            ----            ----            ----            ----            ----            ----            ----            ----            ----            ----            ----            ----            ----            ----            ----
     --  --          --  --          --  --          --  --          --  --          --  --          --  --          --  --          --  --          --  --          --  --          --  --          --  --          --  --          --  --          --  --
    --------        --------        --------        --------        --------        --------        --------        --------        --------        --------        --------        --------        --------        --------        --------        --------
   --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --      --
  ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----    ----
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Shaggar
Apr 26, 2006
its turtles all the way down

tef
May 30, 2004

-> some l-system crap ->

prefect posted:

hmm... where have i seen that before?

code:
                                                                                                                               __
                                                                                                                              /  \
                                                                                                                              \  /
                                                                                                                            __/  \__
                                                                                                                           /        \
                                                                                                                           \__    __/
                                                                                                                         __   \  /   __
                                                                                                                        /  \__/  \__/  \
                                                                                                                        \              /
                                                                                                                      __/              \__
                                                                                                                     /   __          __   \
                                                                                                                     \__/  \        /  \__/
                                                                                                                   __      /        \      __
                                                                                                                  /  \     \__    __/     /  \
                                                                                                                  \  /   __   \  /   __   \  /
                                                                                                                __/  \__/  \__/  \__/  \__/  \__
                                                                                                               /                                \
                                                                                                               \__                            __/
                                                                                                             __   \                          /   __
                                                                                                            /  \__/                          \__/  \
                                                                                                            \      __                      __      /
                                                                                                          __/     /  \                    /  \     \__
                                                                                                         /   __   \  /                    \  /   __   \
                                                                                                         \__/  \__/  \__                __/  \__/  \__/
                                                                                                       __               \              /               __
                                                                                                      /  \            __/              \__            /  \
                                                                                                      \  /           /   __          __   \           \  /
                                                                                                    __/  \__         \__/  \        /  \__/         __/  \__
                                                                                                   /        \      __      /        \      __      /        \
                                                                                                   \__    __/     /  \     \__    __/     /  \     \__    __/
                                                                                                 __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __
                                                                                                /  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \
                                                                                                \                                                              /
                                                                                              __/                                                              \__
                                                                                             /   __                                                          __   \
                                                                                             \__/  \                                                        /  \__/
                                                                                           __      /                                                        \      __
                                                                                          /  \     \__                                                    __/     /  \
                                                                                          \  /   __   \                                                  /   __   \  /
                                                                                        __/  \__/  \__/                                                  \__/  \__/  \__
                                                                                       /               __                                              __               \
                                                                                       \__            /  \                                            /  \            __/
                                                                                     __   \           \  /                                            \  /           /   __
                                                                                    /  \__/         __/  \__                                        __/  \__         \__/  \
                                                                                    \      __      /        \                                      /        \      __      /
                                                                                  __/     /  \     \__    __/                                      \__    __/     /  \     \__
                                                                                 /   __   \  /   __   \  /   __                                  __   \  /   __   \  /   __   \
                                                                                 \__/  \__/  \__/  \__/  \__/  \                                /  \__/  \__/  \__/  \__/  \__/
                                                                               __                              /                                \                              __
                                                                              /  \                             \__                            __/                             /  \
                                                                              \  /                           __   \                          /   __                           \  /
                                                                            __/  \__                        /  \__/                          \__/  \                        __/  \__
                                                                           /        \                       \      __                      __      /                       /        \
                                                                           \__    __/                     __/     /  \                    /  \     \__                     \__    __/
                                                                         __   \  /   __                  /   __   \  /                    \  /   __   \                  __   \  /   __
                                                                        /  \__/  \__/  \                 \__/  \__/  \__                __/  \__/  \__/                 /  \__/  \__/  \
                                                                        \              /               __               \              /               __               \              /
                                                                      __/              \__            /  \            __/              \__            /  \            __/              \__
                                                                     /   __          __   \           \  /           /   __          __   \           \  /           /   __          __   \
                                                                     \__/  \        /  \__/         __/  \__         \__/  \        /  \__/         __/  \__         \__/  \        /  \__/
                                                                   __      /        \      __      /        \      __      /        \      __      /        \      __      /        \      __
                                                                  /  \     \__    __/     /  \     \__    __/     /  \     \__    __/     /  \     \__    __/     /  \     \__    __/     /  \
                                                                  \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /
                                                                __/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__
                                                               /                                                                                                                                \
                                                               \__                                                                                                                            __/
                                                             __   \                                                                                                                          /   __
                                                            /  \__/                                                                                                                          \__/  \
                                                            \      __                                                                                                                      __      /
                                                          __/     /  \                                                                                                                    /  \     \__
                                                         /   __   \  /                                                                                                                    \  /   __   \
                                                         \__/  \__/  \__                                                                                                                __/  \__/  \__/
                                                       __               \                                                                                                              /               __
                                                      /  \            __/                                                                                                              \__            /  \
                                                      \  /           /   __                                                                                                          __   \           \  /
                                                    __/  \__         \__/  \                                                                                                        /  \__/         __/  \__
                                                   /        \      __      /                                                                                                        \      __      /        \
                                                   \__    __/     /  \     \__                                                                                                    __/     /  \     \__    __/
                                                 __   \  /   __   \  /   __   \                                                                                                  /   __   \  /   __   \  /   __
                                                /  \__/  \__/  \__/  \__/  \__/                                                                                                  \__/  \__/  \__/  \__/  \__/  \
                                                \                              __                                                                                              __                              /
                                              __/                             /  \                                                                                            /  \                             \__
                                             /   __                           \  /                                                                                            \  /                           __   \
                                             \__/  \                        __/  \__                                                                                        __/  \__                        /  \__/
                                           __      /                       /        \                                                                                      /        \                       \      __
                                          /  \     \__                     \__    __/                                                                                      \__    __/                     __/     /  \
                                          \  /   __   \                  __   \  /   __                                                                                  __   \  /   __                  /   __   \  /
                                        __/  \__/  \__/                 /  \__/  \__/  \                                                                                /  \__/  \__/  \                 \__/  \__/  \__
                                       /               __               \              /                                                                                \              /               __               \
                                       \__            /  \            __/              \__                                                                            __/              \__            /  \            __/
                                     __   \           \  /           /   __          __   \                                                                          /   __          __   \           \  /           /   __
                                    /  \__/         __/  \__         \__/  \        /  \__/                                                                          \__/  \        /  \__/         __/  \__         \__/  \
                                    \      __      /        \      __      /        \      __                                                                      __      /        \      __      /        \      __      /
                                  __/     /  \     \__    __/     /  \     \__    __/     /  \                                                                    /  \     \__    __/     /  \     \__    __/     /  \     \__
                                 /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /                                                                    \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \
                                 \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__                                                                __/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/
                               __                                                               \                                                              /                                                               __
                              /  \                                                            __/                                                              \__                                                            /  \
                              \  /                                                           /   __                                                          __   \                                                           \  /
                            __/  \__                                                         \__/  \                                                        /  \__/                                                         __/  \__
                           /        \                                                      __      /                                                        \      __                                                      /        \
                           \__    __/                                                     /  \     \__                                                    __/     /  \                                                     \__    __/
                         __   \  /   __                                                   \  /   __   \                                                  /   __   \  /                                                   __   \  /   __
                        /  \__/  \__/  \                                                __/  \__/  \__/                                                  \__/  \__/  \__                                                /  \__/  \__/  \
                        \              /                                               /               __                                              __               \                                               \              /
                      __/              \__                                             \__            /  \                                            /  \            __/                                             __/              \__
                     /   __          __   \                                          __   \           \  /                                            \  /           /   __                                          /   __          __   \
                     \__/  \        /  \__/                                         /  \__/         __/  \__                                        __/  \__         \__/  \                                         \__/  \        /  \__/
                   __      /        \      __                                       \      __      /        \                                      /        \      __      /                                       __      /        \      __
                  /  \     \__    __/     /  \                                    __/     /  \     \__    __/                                      \__    __/     /  \     \__                                    /  \     \__    __/     /  \
                  \  /   __   \  /   __   \  /                                   /   __   \  /   __   \  /   __                                  __   \  /   __   \  /   __   \                                   \  /   __   \  /   __   \  /
                __/  \__/  \__/  \__/  \__/  \__                                 \__/  \__/  \__/  \__/  \__/  \                                /  \__/  \__/  \__/  \__/  \__/                                 __/  \__/  \__/  \__/  \__/  \__
               /                                \                              __                              /                                \                              __                              /                                \
               \__                            __/                             /  \                             \__                            __/                             /  \                             \__                            __/
             __   \                          /   __                           \  /                           __   \                          /   __                           \  /                           __   \                          /   __
            /  \__/                          \__/  \                        __/  \__                        /  \__/                          \__/  \                        __/  \__                        /  \__/                          \__/  \
            \      __                      __      /                       /        \                       \      __                      __      /                       /        \                       \      __                      __      /
          __/     /  \                    /  \     \__                     \__    __/                     __/     /  \                    /  \     \__                     \__    __/                     __/     /  \                    /  \     \__
         /   __   \  /                    \  /   __   \                  __   \  /   __                  /   __   \  /                    \  /   __   \                  __   \  /   __                  /   __   \  /                    \  /   __   \
         \__/  \__/  \__                __/  \__/  \__/                 /  \__/  \__/  \                 \__/  \__/  \__                __/  \__/  \__/                 /  \__/  \__/  \                 \__/  \__/  \__                __/  \__/  \__/
       __               \              /               __               \              /               __               \              /               __               \              /               __               \              /               __
      /  \            __/              \__            /  \            __/              \__            /  \            __/              \__            /  \            __/              \__            /  \            __/              \__            /  \
      \  /           /   __          __   \           \  /           /   __          __   \           \  /           /   __          __   \           \  /           /   __          __   \           \  /           /   __          __   \           \  /
    __/  \__         \__/  \        /  \__/         __/  \__         \__/  \        /  \__/         __/  \__         \__/  \        /  \__/         __/  \__         \__/  \        /  \__/         __/  \__         \__/  \        /  \__/         __/  \__
   /        \      __      /        \      __      /        \      __      /        \      __      /        \      __      /        \      __      /        \      __      /        \      __      /        \      __      /        \      __      /        \
   \__    __/     /  \     \__    __/     /  \     \__    __/     /  \     \__    __/     /  \     \__    __/     /  \     \__    __/     /  \     \__    __/     /  \     \__    __/     /  \     \__    __/     /  \     \__    __/     /  \     \__    __/
 __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __   \  /   __
/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \__/  \
this is the one you've seen before

tef
May 30, 2004

-> some l-system crap ->

Shaggar posted:

its turtles all the way down

actually yeah, the fractal lesson is called "Lesson 04: Turtles all the way down". Lesson 2 is called "Turtle Power"

Cocoa Crispies
Jul 20, 2001

Vehicular Manslaughter!

Pillbug

prefect posted:

hmm... where have i seen that before?

tef's twitter account

coffeetable
Feb 5, 2006

TELL ME AGAIN HOW GREAT BRITAIN WOULD BE IF IT WAS RULED BY THE MERCILESS JACKBOOT OF PRINCE CHARLES

YES I DO TALK TO PLANTS ACTUALLY

prefect posted:

hmm... where have i seen that before?

it's the sierpinski gasket. probably seen it on the cover of some textbook or other

e: and the other one is the sierpinski arrowhead curve, though i dunno why you'd be more likely to have seen that one than the gasket

Zlodo
Nov 25, 2006

prefect posted:

is there a language where a nice pile of regex isn't going to look like that, though?

regex are gross and only useful to sift through the dejections of another program to find some data

if you need to write regex you are doing a job so unimportant that no one bothered to output the data you need in an usable format

spongeh
Mar 22, 2009

BREADAGRAM OF PROTECTION

tef posted:

aside

remember amqp? the protocol that released a series of incompatible versions before abandoning the architecture for 1.0

anyway, ages ago, imatix went 'gently caress this poo poo' and wrote 0mq

the creator of 0mq then went gently caress this poo poo and forked crossroads.io

anyway, the author of that went gently caress this poo poo and made nanomsg

:v:

isnt that one of the points of actually labeling software was <1.0? the lineage of forks is dumb but i just use rabbitmq and it works

FamDav
Mar 29, 2008

Zombywuf posted:

Koenig Lookup is far more powerful than typeclasses.


Oh man, all the loving time.

koenig lookup is more powerful but doesnt provide me any useful structure, and can cause weird bugs where you end up calling library internal functions because of precedence rules.

Shaggar
Apr 26, 2006

Zlodo posted:

regex are gross and only useful to sift through the dejections of another program to find some data

if you need to write regex you are doing a job so unimportant that no one bothered to output the data you need in an usable format

aka linux

uG
Apr 23, 2003

by Ralp

Zlodo posted:

regex are gross and only useful to sift through the dejections of another program to find some data

if you need to write regex you are doing a job so unimportant that no one bothered to output the data you need in an usable format

https://github.com/rakudo/rakudo/blob/nom/src/core/traits.pm#L136

Zlodo
Nov 25, 2006

:barf:

crazypenguin
Mar 9, 2005
nothing witty here, move along

FamDav posted:

koenig lookup is more powerful

I have no idea why this keeps getting said. are you guys just looking at typeclasses as only a name overloading mechanism or something?

typeclasses also do abstraction (they're way more like concepts than koenig lookup), and even if limited to name overloading, you also get overloading on return type in addition to argument types.

so I'm not sure in what sense it's "more powerful"?

MononcQc
May 29, 2007

prefect posted:

is there a language where a nice pile of regex isn't going to look like that, though?

Schemes and Lisp often toyed with the idea of alternative function-based approaches to regular expressions. One of them (SRE) had the POSIX regex:

code:
"[[:<:]]([b-df-hj-np-tv-zB-DF-HJ-NP-TV-Z])+[[:>]]"
Be represented in Scheme as:

code:
(w/nocase (word+ (~ ("aeiou"))))
Where a sequence of functions would just build a matching expression. The interesting thing you could do with these is that you can define matches as functions and compose them:

code:
(define ws (rx (+ whitespace))) ; Seq of whitespace

(define date (rx (: (| "Jan" "Feb" "Mar" ...) ; A month/day date.
                    ,ws
                    (| ("123456789")          ; 1-9
                       (: ("12") digit)	      ; 10-29
                       "30" "31")))))
In that case we're defining two expression: ws, for whitespace, and date, for a month followed by whitespace and the numbers 1-31. Later on, I can define and compose regular expressions by doing:

code:
(rx ... ,date ... (* ... ,date ...)	    
          ... .... ,date))
This is all macro-time poo poo, but there was run-time stuff prepared for it with a different function (use csl instead of rx)

It's an interesting approach that ultimately seems to have never caught on (much like Scheme itself), and can be somewhat obtained by concatenating strings (although groups of backreferences and poo poo are not safe to merge all willy-nilly)

FamDav
Mar 29, 2008

crazypenguin posted:

I have no idea why this keeps getting said. are you guys just looking at typeclasses as only a name overloading mechanism or something?

typeclasses also do abstraction (they're way more like concepts than koenig lookup), and even if limited to name overloading, you also get overloading on return type in addition to argument types.

so I'm not sure in what sense it's "more powerful"?

i call it more powerful because it's more general and has less structure imposed on it. this can also lead to it interacting poorly with other features of the language resulting in ridiculous errors.

Adbot
ADBOT LOVES YOU

FamDav
Mar 29, 2008
koenig lookup is a bad feature because what you really wanted was something like concepts. instead you got something that allowed you to kind of do concepts but also allowed you to get really weird behavior because you didnt happen to know that the library youre working with has a internal function of the same name as your function and you just happened to introduce it as a viable overload because of reasons.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply