[ / / / / / / / / / / / / / ] [ dir / ausneets / evogames / leftpol / sonyeon / strek / vg / vor / zenpol ][Options][ watchlist ]

/tech/ - Technology

You can now write text to your AI-generated image at https://aiproto.com It is currently free to use for Proto members.
Name
Email
Subject
Comment *
File
Select/drop/paste files here
Password (Randomized for file and post deletion; you may also set your own.)
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Expand all images

File (hide): b27b25e2b29e19c⋯.png (2.08 MB, 525x295, 105:59, 1426825598298.png) (h) (u)

[–]

 No.917987>>918283 >>918325 [Watch Thread][Show All Posts]

This thread is an invitation for the Unix hater anon to speak his mind and point us to other programming languages and operating systems. I am also curious to hear what OS and software he uses in the meantime.

 No.918009

yes hello this is him

my main os is AmigaOS, and I only program in BASIC

bing bing wahoo fagioli fagioli give me the botnetoli


 No.918026>>918028 >>918048 >>919018

Daily reminder that Lisp will compile this without raising any warnings or throwing an error:

(defun add-5 (x)
(+ x 5))
(defun this-crashes ()
(add-5 "hello"))

You will have no idea that you have a type error until you run it. That is, unless you have provided type annotations and set optimizations to speed, in order to gain the fabled "performance even faster than C", in which case Lisp could make demons fly out of your nose.


 No.918028>>918034 >>918048 >>919018

>>918026

Here is what SBCL does:

* (declaim (optimize (speed 3) (safety 0)))

NIL
* (defun add-5 (x)
(declare (type fixnum x))
(+ x 5))

ADD-5
* (add-5 "hello")

34385326708

Lisp will happily chug along with the wrong result and you'll have no idea where the error lies.


 No.918034

>>918028

Dude, that's useful to find what's wrong. What was anyone thinking?


 No.918048>>918057

>>918026

>Lisp

"Lisp" is not a compiler, nor is it a language. Your complaint sounds like one about a specific compiler.

>>918028

<If I turn off the safety, then my program is unsafe

Certainly.


 No.918057>>918059

>>918048

> "Lisp" is not a compiler, nor is it a language. Your complaint sounds like one about a specific compiler.

All Lisp languages are the same in this regard. As for compilers, the Common Lisp standard says that type annotations exist, but now what they do. Find me any Common Lisp compiler that will give me the performance and the type safety.

> Certainly.

The point is that in order to get Lisp to be useful for systems programming where performance matters you have to throw out all the great things about Lisp. People say that Lisp can be as fast as C, but they never mention that you have to take the safety off, making it even more unsafe than C. That's like saying that a motorbike can be as fast as a car, but you have to take off your helmet to reduce air friction for it. You would have to be crazy to do that.


 No.918059

>>918057

> Find me any Common Lisp compiler that will give me the performance and the type safety.

I don't know of any that currently exist. It is also very difficult to solve this for all cases, but for simple ones like your example it should be possible.


 No.918276>>919018

I like Wirthian languages. I should play around in Oberon

http://www.projectoberon.com/


 No.918283>>919018

>>917987 (OP)

If only lisp machines did not always suck.


 No.918325

>>917987 (OP)

Define Unix.


 No.919018>>919288

>>918026

>>918028

>Lisp will happily chug along with the wrong result and you'll have no idea where the error lies.

ofc lisp will do what you tell it to do. if your program has a bug in it (like your little snippet has) then the problem is that you are an idiot.

>>918283

I am not op, but I am pretty sure that if someone would make a modern lisp machine, then it wouldn't suck

>>918276

Thanks for the link! Oberon looks interesting.


 No.919288>>919289

>>919018

>ofc lisp will do what you tell it to do. if your program has a bug in it (like your little snippet has) then the problem is that you are an idiot.

That's pretty dumb. Of course some kind of bugs are hard to prevent, because the compiler can't know for sure what you really want to do, but with a properly designed language, it should be able to tell what you want to do. Certain types have certain associated operations; this is type theory 101.


 No.919289

>>919288

*it should be able to tell what you don't want to do

Goddamn.


 No.919314>>919337 >>919365

use Windows, games work and you never have to see the command line

peace


 No.919337>>919361 >>919362

>>919314

use xbox, games work and you never have to see the command line

peace


 No.919361

>>919337

use pong, game works and you never have to see the command line

peace


 No.919362

>>919337

exactly friend

cant wait for the telemetry dildo up my ass


 No.919365

File (hide): 148f875e39f8724⋯.webm (794.46 KB, 854x480, 427:240, Terry Davis Command Line-….webm) (h) (u) [play once] [loop]




[Return][Go to top][Catalog][Screencap][Nerve Center][Cancer][Update] ( Scroll to new posts) ( Auto) 5
18 replies | 1 images | Page ???
[Post a Reply]
[ / / / / / / / / / / / / / ] [ dir / ausneets / evogames / leftpol / sonyeon / strek / vg / vor / zenpol ][ watchlist ]