Technical Fraternity : hazing in technical interviews

semaphore

Honorary Master
Joined
Nov 13, 2007
Messages
15,200
http://nim-lang.org/ (used to be nimrod).

Almost like writing Python, BUT, it transpiles to C before it compiles (gcc baby!). Only playing with it, haven't done anything serious yet. Prefer it over Go to be honest (Go is boring AF but great for showing people why NodeJS is a bad idea :D )

Traitor. Rust.
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
http://nim-lang.org/ (used to be nimrod).

Almost like writing Python, BUT, it transpiles to C before it compiles (gcc baby!). Only playing with it, haven't done anything serious yet. Prefer it over Go to be honest (Go is boring AF but great for showing people why NodeJS is a bad idea :D )
... and this improves on C because?

Having a preference over Go doesn't change that it's a "betting the farm" decision; I skip most frameworks for the same reasons.
 

Hamster

Resident Rodent
Joined
Aug 22, 2006
Messages
42,923
[)roi(];18514984 said:
... and this improves on C because?

Having a preference over Go doesn't change that it's a "betting the farm" decision; I skip most frameworks for the same reasons.


It's pwettier
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
It's pwettier
hahaha... but so limited, probably down to 2 main programming leads and a funding dilemma.

...if we look at the commits; it' really a 1 person project, with some interested parties probably helping out with the documentation and the odd bug fix
Screen Shot 2016-10-18 at 1.26.54 PM.png
 
Last edited:

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
...but then picking something from Facebook or Google can also end painfully.
 

Hamster

Resident Rodent
Joined
Aug 22, 2006
Messages
42,923
[)roi(];18515130 said:
hahaha... but so limited, probably down to 2 main programming leads and a funding dilemma.

...if we look at the commits; it' really a 1 person project, with some interested parties probably helping out with the documentation and the odd bug fix
View attachment 395834
Suppose one can ask why so many languages out there need continuous improvement?

I'll leave running nim in production for others. I'm using it in side projects.
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
Suppose one can ask why so many languages out there need continuous improvement?

I'll leave running nim in production for others. I'm using it in side projects.

Languages that don't adapt become.... Javascript...or die..
"Novel idea: Javascript stdlib sucks... so let's build, another language and hitch it to Javascript". Exactly how long did it take Javascript to realise that this wasn't such a good thing, and started to adapt the stdlib, now ECMAScript updates are starting to arrive yearly...

And C certainly isn't Javascript; hence we should probably ask why we need Nim hitched to it?
 
Last edited:

Hamster

Resident Rodent
Joined
Aug 22, 2006
Messages
42,923
[)roi(];18515688 said:
And C certainly isn't Javascript; hence we should probably ask why we need Nim hitched to it?

Syntax. It counts for something.
 

Hamster

Resident Rodent
Joined
Aug 22, 2006
Messages
42,923
[)roi(];18515688 said:
Languages that don't adapt become.... Javascript...or die..
"Novel idea: Javascript stdlib sucks... so let's build, another language and hitch it to Javascript". Exactly how long did it take Javascript to realise that this wasn't such a good thing, and started to adapt the stdlib, now ECMAScript updates are starting to arrive yearly...

And C certainly isn't Javascript; hence we should probably ask why we need Nim hitched to it?


So like I said: syntax. Honest question (since I don't know C), how would you implement this self-hosted REST service in C?

Code:
import jester, asyncdispatch
import marshal

type
    Person* = object
        first_names*, last_name*: string

routes:
    get "/person":
        var p: Person
        p = Person(
            first_names: "Hamster",
            last_name: "of Wheelistan"
        )

        resp $$p, "application/json"

runForever()

Given, jester is a lib written by one of the contributors to give you routes etc.
 

FarligOpptreden

Executive Member
Joined
Mar 5, 2007
Messages
5,396
What the hell did I stumble into? And how did Droid and cguy's lovers quarrel turn into a C vs modern languages discussion?
 

[)roi(]

Executive Member
Joined
Apr 15, 2005
Messages
6,282
[video]https://pbs.twimg.com/tweet_video/ClkmDkHVAAECHSf.mp4[/video]
 

semaphore

Honorary Master
Joined
Nov 13, 2007
Messages
15,200
So like I said: syntax. Honest question (since I don't know C), how would you implement this self-hosted REST service in C?

Code:
import jester, asyncdispatch
import marshal

type
    Person* = object
        first_names*, last_name*: string

routes:
    get "/person":
        var p: Person
        p = Person(
            first_names: "Hamster",
            last_name: "of Wheelistan"
        )

        resp $$p, "application/json"

runForever()

Given, jester is a lib written by one of the contributors to give you routes etc.

:erm:

Code:
#[macro_use] extern crate nickel;

use nickel::{Nickel, MediaType};

fn main() {

    let mut server = Nickel::new();

    server.utilize(router! {
        get "/rust" => |_request, mut response| {
            response.set(MediaType::Json);
            r#"{ "so": "muchbetter" }"#
        }
    });

    server.listen("127.0.0.1:1337");
}
 

Hamster

Resident Rodent
Joined
Aug 22, 2006
Messages
42,923
:erm:

Code:
#[macro_use] extern crate nickel;

use nickel::{Nickel, MediaType};

fn main() {

    let mut server = Nickel::new();

    server.utilize(router! {
        get "/rust" => |_request, mut response| {
            response.set(MediaType::Json);
            r#"{ "so": "muchbetter" }"#
        }
    });

    server.listen("127.0.0.1:1337");
}

Is that Rust or C? I'm assuming /rust .... butt ugly :p
 

Hamster

Resident Rodent
Joined
Aug 22, 2006
Messages
42,923
You're just becoming a python bigot again :(

Started writing a small service in it (bottle), but thinking of deploying it...I just lost interest. Syntax is pretty though :love:

What Nim did with it's whitespacing is not allow tabs. Only spaces allowed for indentation so that is a massive move in the right direction for me.

...

/gets back to C# and Delpho work :crying:
 

semaphore

Honorary Master
Joined
Nov 13, 2007
Messages
15,200
Started writing a small service in it (bottle), but thinking of deploying it...I just lost interest. Syntax is pretty though :love:

What Nim did with it's whitespacing is not allow tabs. Only spaces allowed for indentation so that is a massive move in the right direction for me.

...

/gets back to C# and Delpho work :crying:

HAHA delphi, hows that tab with 1000000 sql connections treating you rofl. I touched it once and said nottafk
 
Top