Thread about the languages ( another one ? )

Coders forum. Discuss techniques, swap code snippets, ask for help etc. relating to all forms of software development.
Post Reply
User avatar
gilesgoat
Sheepie Whore
Sheepie Whore
Posts: 27259
Joined: Wed Sep 03, 2003 7:54 am 0
Location: Monfalcone, Italy
Contact:

Thread about the languages ( another one ? )

Post by gilesgoat »

Ok I think "it would be better" to move that discussion about languages on another - specific - thread leaving Javascript where it was :)

I think certainly there has to be "a completely different vision/perception" of what coding is, language are for and of course type of coding one does that completely modifies/creates 'the vision' of 'what is your preferred language'.

To me a computer is a thing made of chips, rams, gates, busses, transistors, registers and such and so I like to see it.

"I like to know where bytes are and what every single piece of that thing is doing and why it's doing it", for as much as it possible to.

Must be said that "at the core" before to even touch coding I am "born" as an hw "fiddler" ( let's dare to say 'designer' as well ) and THEN I went into coding, I see "coding" as an 'extension' of that process.

In short essence "I don't like much abstraction, I don't like virtualization, I don't like much things that take me too far away from that kind of feeling/vision".

I understand perfectly why some people like the opposite and in how many circumstances that opposite can be useful however "I like what I like".

So in a way "ASM" is "the perfect language" followed by C because C is "just a bit above it" but still allows you to do "almost all the stuff you could do in ASM nearly the same way you could do in ASM", CPP I like it because it extends C but still keeping C for what it is.

I start to bend my nose in the other direction the moment words like "interpreted" and "scripting" comes out, never been a fan of interpreted languages unless for 'quick and dirt test of something' and then 'when you found the idea that works, code it in C again'.

I don't like much 'abstraction' ( from the HW/CPU/etc. ) in a programming language, unless that thing is done in a very cpu efficient way but I still like to be able to see some things "in the same way I like to see them".

Altough I can see some abstract languages as a useful tool let's say for "algorithms exploration" then what I found what I look for C comes again.

In short : I love C, I like C to bits, I don't think there's anything else ( apart ASM and VHDL maybe ) I like as much as C.

I think also if we are looking for that "absolute abstract purity/perfection" then probably very few languages have it and many of other tried but still failed then again I don't know/am sure if it ever will be possible to have "the perfect language that fits everything and everyone".

I think also there's a kind of "mental block" that separates some people from others, when you see things "in one way" you can't see them in another, something of you just rejects another vision like me trying to learn German or something like that :lol:

When I open a book about LISP and arrive at chapter 3 I am already at the stage of "... but I don't want to do things this way why on earth should I code that way ?" .. that's why I'll never learn LISP

I am sure you get at a point where the brain is so strongly hardwired in one way that trying to re-wire it another is probably close to impossible, in fact you have already self-programmed yourself in a way.

I think maybe there's also that fact can't remember how is called when "what it's presented to you does not match with what normally that thing is", like if someone would give you a glass filled with a blue liquid and would tell you "eat that apple, it's an apple".

However of course must be said that some jobs you really would do not in C ( well maybe ), I can't see coding web stuff using C, for that there's PHP.

Again "in short" :mrgreen: anyting that compiles into ASM and generates ASM and goes as ASM into a machine ? "Ok I can buy that" .. anything interpreted or generates some sort of bytecode and/or abstract too much the machine ? No thanks.

Unless it's really some sort of application where speed is not much of an issue and the language simplifies it so much what you are doing that is useful only for that reason.

I can only remotely accept stuff like GLSL/HLSL only because they really cut off everything and there's nothing else can be done in that context, I just hope the compiler/drivers are really very efficient ( not sure if GLSL or so is really 'compiled' into some sort of GPU asm or yet another something intermediate thing ) but from what I've seen so far I think they really are compiled into "asm" at some point.

Anyway C lovers put a tag in here :wink:

I repeat "it's a matter of taste" :)

"If it does the job for you is good for you even if it may not be good for me".

But don't force me to use what I don't like to use.
Giles the billy goat
"Baa"
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Thread about the languages ( another one ? )

Post by gravy »

I don't think anyone's disputing C has value.

It's this C++ being transcendently beautiful that's raised some eyebrows.
User avatar
gilesgoat
Sheepie Whore
Sheepie Whore
Posts: 27259
Joined: Wed Sep 03, 2003 7:54 am 0
Location: Monfalcone, Italy
Contact:

Re: Thread about the languages ( another one ? )

Post by gilesgoat »

In this thread, mainly, I'd be just curious to find out "what people prefers and why their motivations" :)
Giles the billy goat
"Baa"
User avatar
Colonius
Baaaa!
Baaaa!
Posts: 787
Joined: Tue Dec 13, 2005 8:41 pm 0
Location: Wiltshire

Thread about the languages ( another one ? )

Post by Colonius »

OK, I also love C and it is my 'home' language but I've spent the last year doing C# and after some struggles now really like it. For the work I'm doing where most performance bottlenecks are in the DBMS then I'd rather have the great .Net support for null and string handling than messing about with strcpy and malloc.

C still has a place for me but when I want a quick utility to read from an SQL DB then C# wins.
I made my song a coat
Covered with embroideries
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Thread about the languages ( another one ? )

Post by gravy »

What languages have you any experience in giles? It's hard to understand where you're coming from without any context.
User avatar
venusian
Baaaaaaa!
Baaaaaaa!
Posts: 6653
Joined: Wed Nov 06, 2002 2:22 pm 0
Location: South Gloucestershire

Re: Thread about the languages ( another one ? )

Post by venusian »

C/C++ is okay for old processors but sucks for anything modern. It's only an acceptable solution these days because processors are designed for it as much as the language is designed for them.
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Thread about the languages ( another one ? )

Post by GoatFoam »

So. er. c++ sucks on modern processors, except that it doesn't, but you hate it so it does?

I'm sure I am going to hear about functional programming saving the world in a minute, but so far it hasn't delivered. I wouldn't mind if it did, as concurrency in C likes is a ballache and I have better things to do, but it hasn't.
User avatar
korruptor
Baaaaaa!
Baaaaaa!
Posts: 4291
Joined: Sun Sep 22, 2002 10:35 am 0
Location: Under The Northern Lights
Contact:

Re: Thread about the languages ( another one ? )

Post by korruptor »

gilesgoat wrote: I am sure you get at a point where the brain is so strongly hardwired in one way that trying to re-wire it another is probably close to impossible, in fact you have already self-programmed yourself in a way.
I hate that attitude.

The older I get, the faster it is to learn. I have more experience, know where to look, have a better feeling of what to avoid, and know who to ask for help.

Fuck not learning and changing.
"Don't go into a trance boys..." :: DJ Mixes
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Thread about the languages ( another one ? )

Post by GoatFoam »

I'll go with that. Even if you never, ever plan to use a new language at work it's worth learning one.

Knowing functional programming has made my C++ better. Learning new ways of looking at a problem, and understanding how and why they map to the "old" ways can be insanely useful.

A few weeks with erlang and caml can work wonders for anyone looking at parallel system design. SISAL is sadly defunct, but dataflow graphs are brilliant for designing image processing code, while the low level part of the brain that worries about cache lines etc. can keep you from going overboard.

More is always better.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Thread about the languages ( another one ? )

Post by gravy »

GoatFoam wrote:I'll go with that. Even if you never, ever plan to use a new language at work it's worth learning one.

Knowing functional programming has made my C++ better. Learning new ways of looking at a problem, and understanding how and why they map to the "old" ways can be insanely useful.

A few weeks with erlang and caml can work wonders for anyone looking at parallel system design. SISAL is sadly defunct, but dataflow graphs are brilliant for designing image processing code, while the low level part of the brain that worries about cache lines etc. can keep you from going overboard.

More is always better.
I really enjoyed this book:

http://pragprog.com/book/btlang/seven-l ... even-weeks

I wouldn't be surprised to see something from the functional programming world become pretty big. Being careful about state management is THE challenge for upcoming computer HW. Imperative languages like C / C++ are pretty awful for that sort of thing.

As machines grow to more procs I reckon it's going to be more about self management of replicating state rather than letting the HW do it by cache coherency etc, it'll just be too expensive or the latency too high.
User avatar
korruptor
Baaaaaa!
Baaaaaa!
Posts: 4291
Joined: Sun Sep 22, 2002 10:35 am 0
Location: Under The Northern Lights
Contact:

Re: Thread about the languages ( another one ? )

Post by korruptor »

GoatFoam wrote: More is always better.
TBF, I'm firmly a master of fuck all. Might have something to do with this approach :D
"Don't go into a trance boys..." :: DJ Mixes
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Thread about the languages ( another one ? )

Post by GoatFoam »

The FP ideas are already very valuable, but you don't need an fp language to implement a lot of them. The big problem is that the implementations are currently hopelessly inefficient. Who cares if you scale linearly up to x cores if your constant overheads are so high that you are still slower than the "crap" version when amdahls law kicks in?

Fortunately things always get better rather than worse so we may see the back of some of these problems. For now the imperatives will continue to dominate I think.
User avatar
venusian
Baaaaaaa!
Baaaaaaa!
Posts: 6653
Joined: Wed Nov 06, 2002 2:22 pm 0
Location: South Gloucestershire

Re: Thread about the languages ( another one ? )

Post by venusian »

GoatFoam wrote:So. er. c++ sucks on modern processors, except that it doesn't, but you hate it so it does?
Yes, that's precisely what I said.
GoatFoam wrote:I'm sure I am going to hear about functional programming saving the world in a minute, but so far it hasn't delivered. I wouldn't mind if it did, as concurrency in C likes is a ballache and I have better things to do, but it hasn't.
There are certainly a class of problems for which functional languages are better than C/C++. But not for systems and low-level programming, not for the sort of thing Giles is talking about.

C is great on old processors because it reflects the hardware's capabilities, particularly of the VAX. It doesn't reflect most of the hardware capabilities of modern processors - ooo execution, threading, complex caches, asymmetric memories, branch prediction, SIMD, shared memories. Desktop processors (both Arm and x86) employ many of these things then try to hide them behind a VAX-like facade to make C/C++ programs happy.
User avatar
GoatFoam
Baaaaa!
Baaaaa!
Posts: 1255
Joined: Tue Dec 12, 2006 11:05 am 0
Location: Brizzle
Contact:

Re: Thread about the languages ( another one ? )

Post by GoatFoam »

I haven't yet encountered a functional language runtime that makes particularly good use of any of the things you mentioned. It would be brilliant if I did, but I'm still waiting unfortunately.
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: Thread about the languages ( another one ? )

Post by Dio »

I like C++ an awful lot because it fits the way my brain works very well. I understand completely how OOP fits the method of reducing complexity by clearly defining how different bits of the program talk to each other. In fact, my biggest criticism of it is that the 'public' interface is far too coarse a brush; I would much prefer to be able to say "This bit of the interface is for this part of the program and nobody else".

The 'optional' nature of OO in it also makes it very amenable to a rapid prototype / refactor cycle, and STL (and, to a lesser extent, boost) provide a lot of solid basic functionality.

My natural mindset is extremely imperative though. Assembly language is the easiest thing for me to learn, while I struggle with the functional paradigm and with other lanugages with more mathematical underpinnings like LISP.
Post Reply