Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.forth > #22509

Re: ok since forth is general purpose, you can get work doen right?

From Bernd Paysan <bernd.paysan@gmx.de>
Newsgroups comp.lang.forth
Subject Re: ok since forth is general purpose, you can get work doen right?
Date 2013-05-11 20:17 +0200
Organization 1&1 Internet AG
Message-ID <kmm1vv$65e$1@online.de> (permalink)
References <81422cb9-3294-47bd-9e72-0fd2dd5d357e@googlegroups.com> <kmclrv$ljm$1@dont-email.me> <kmeq9t$1kk$1@dont-email.me>

Show all headers | View raw


WJ wrote:

> WJ wrote:
> 
>> the_gavino_himself wrote:
>> 
>> > I can't seem to get much done in forth so far...
>> 
>> Like assembly language, Forth is a low-level language.
>> 
>> Programming in Forth is a waste of time.
> 
> Let's say that you want to calculate how many days away
> your birthday is.  Solving that problem would be torture
> for Forth programmers.  All they can easily do is simple
> arithmetic and possibly bubble-sorts.

Fortunately, date calculation *is* simple arithmetics - well, of course not 
for you personally...  Since you like to use libraries, and not do any work 
yourself, put the code here:

http://www.forth-ev.de/wiki/doku.php/examples:daymonthyear

into a file date.fs and then to calculate how many days I'm old, calculate:

require date.fs
2013 5 11 ymd2day  1970 3 3 ymd2day - . 15775  ok

The program above is accurate until about 30 BC.  I wrote this when I head 
of another case of mainstream programmers not being able to write a correct 
date routine.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ok since forth is general purpose, you can get work doen right? the_gavino_himself <visphatesjava@gmail.com> - 2013-05-01 12:11 -0700
  Re: ok since forth is general purpose, you can get work doen right? "Elizabeth D. Rather" <erather@forth.com> - 2013-05-01 10:45 -1000
    Re: ok since forth is general purpose, you can get work doen right? Alex McDonald <blog@rivadpm.com> - 2013-05-01 14:32 -0700
  Re: ok since forth is general purpose, you can get work doen right? "WJ" <w_a_x_man@yahoo.com> - 2013-05-08 04:55 +0000
    Re: ok since forth is general purpose, you can get work doen right? Brad Eckert <hwfwguy@gmail.com> - 2013-05-08 09:33 -0700
    Re: ok since forth is general purpose, you can get work doen right? "WJ" <w_a_x_man@yahoo.com> - 2013-05-09 00:23 +0000
      Re: ok since forth is general purpose, you can get work doen right? Ron Aaron <rambamist@gmail.com> - 2013-05-09 06:05 +0300
        Re: ok since forth is general purpose, you can get work doen right? mhx@iae.nl (Marcel Hendrix) - 2013-05-09 09:28 +0200
          Re: ok since forth is general purpose, you can get work doen right? Coos Haak <chforth@hccnet.nl> - 2013-05-09 22:07 +0200
      Re: ok since forth is general purpose, you can get work doen right? albert@spenarnc.xs4all.nl (Albert van der Horst) - 2013-05-09 17:11 +0000
      Re: ok since forth is general purpose, you can get work doen right? Bernd Paysan <bernd.paysan@gmx.de> - 2013-05-11 20:17 +0200
        Re: ok since forth is general purpose, you can get work doen right? gavino_himself <visploveslisp@gmail.com> - 2013-05-12 13:36 -0700

csiph-web