473,666 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python / scheme implement

Can somebody tell me what s exactly the difference beetween scheme and
python languages

i m thiking to learn one of them but i m not sure wich one

somebody told me python is better and have much library
somebody told me scheme is much smarter and have nice structure

i also see a project about a scheme/python implementation
here is the url
http://plt-spy.sourceforge.net/home.html
i m not sure what s really but seems cool if someone know more about it
or have some concrete exemple it can be more understable

i m not sure what to do
ps i want programming some open source soft for network with gui
thankx a lot

east wind
Jul 18 '05 #1
4 1849
Vent d'Est - East Wind <po*********@pa ndora.be> wrote:
: Can somebody tell me what s exactly the difference beetween scheme and
: python languages

: i m thiking to learn one of them but i m not sure wich one

: somebody told me python is better and have much library
: somebody told me scheme is much smarter and have nice structure

Hello!
What programming language experience do you already have?
If you're looking for Scheme learning resources, you may want to look
at the PLT web site:

http://www.plt-scheme.org/

In particular, the Scheme folks have written a few books for learning
the language; the link above has an online version of "How to Design
Programs", which is an excellent book. Another great book whose
implementation language is Scheme is "The Structure And Interpretation
of Computer Programs":

http://mitpress.mit.edu/sicp/

On the Python side, you may want to look at:

http://www.python.org/topics/learn/

If you are a beginner to programming, visit:

http://www.python.org/topics/learn/non-prog.html

which includes links to introductory programming tutorials.

: i also see a project about a scheme/python implementation
: here is the url
: http://plt-spy.sourceforge.net/home.html
: i m not sure what s really but seems cool if someone know more about it
: or have some concrete exemple it can be more understable

If you are interested in the other direction, I have a weak Scheme
interpreter that's written in Python:

http://hkn.eecs.berkeley.edu/~dyoo/python/pyscheme/

It's not perfect (and frankly, is a little outdated!), but it's a
proof-of-concept that one language can model the other.
Personally, I like both languages, so my advice would be to look at
them both. (But perhaps not at the same time... *grin*)
Good luck to you!
Jul 18 '05 #2
Daniel Yoo wrote:
Vent d'Est - East Wind <po*********@pa ndora.be> wrote:
: Can somebody tell me what s exactly the difference beetween scheme and
: python languages

: i m thiking to learn one of them but i m not sure wich one

: somebody told me python is better and have much library
: somebody told me scheme is much smarter and have nice structure

Hello!
What programming language experience do you already have?

beginner i like script-fu and python-fu in gimp but it s not the only
soft to do i m think to write a network gui soft
i have some problem with scheme on my debian

Running the PLT installer...
../bin/mzscheme: relocation error: ./bin/mzscheme: symbol
__libc_stack_en d, version GLIBC_2.1 not defined in file ld-linux.so.2
with link time reference
Error: PLT installer failed.

i installed one on my windows and work fine but i dont want to stay to
long on windows because too buggy too unstable and to virus
and i begin learn linux it s quite cool

If you're looking for Scheme learning resources, you may want to look
at the PLT web site:

http://www.plt-scheme.org/
yeah i saw it thankx
In particular, the Scheme folks have written a few books for learning
the language; the link above has an online version of "How to Design
Programs", which is an excellent book. Another great book whose
implementation language is Scheme is "The Structure And Interpretation
of Computer Programs":

http://mitpress.mit.edu/sicp/

i see some free ebook in html format but seems difficult
i think to begin with these book if i do scheme Little Schemer and
Seasonned Scheme from Mit press
unfortunatly still not free edition so i will surely buy on amazon.com

On the Python side, you may want to look at:

http://www.python.org/topics/learn/

If you are a beginner to programming, visit:

http://www.python.org/topics/learn/non-prog.html

which includes links to introductory programming tutorials.

: i also see a project about a scheme/python implementation
: here is the url
: http://plt-spy.sourceforge.net/home.html
: i m not sure what s really but seems cool if someone know more about it
: or have some concrete exemple it can be more understable

If you are interested in the other direction, I have a weak Scheme
interpreter that's written in Python:

http://hkn.eecs.berkeley.edu/~dyoo/python/pyscheme/

It's not perfect (and frankly, is a little outdated!), but it's a
proof-of-concept that one language can model the other.
your soft seems very intersting but i m too beginner for understand it
good in fact but in future can be cool


Personally, I like both languages, so my advice would be to look at
them both. (But perhaps not at the same time... *grin*)
it s also why i cant choice ok i choice to learn them both if not same
times wich ones first ??


Good luck to you!

THANKXX for your precious advis i m gratefull to your hint
Jul 18 '05 #3
Daniel Yoo <dy**@hkn.eecs. berkeley.edu> writes:
It's not perfect (and frankly, is a little outdated!), but it's a
proof-of-concept that one language can model the other.


how does python model call-with-current-continuation?
Klaus Schilling
Jul 18 '05 #4
51************* **@t-online.de wrote:
: Daniel Yoo <dy**@hkn.eecs. berkeley.edu> writes:
:> It's not perfect (and frankly, is a little outdated!), but it's a
:> proof-of-concept that one language can model the other.

: how does python model call-with-current-continuation?
Hi Klaus,

I'm not sure if you meant that question to be a challenge, but I'll
take it up! *grin*
The question is slightly off: there's nothing about Python in
particular that prevents us from implementing call/cc. It does,
however, take a bit of work: implementing call/cc involves a rewrite
of the interpreter into a CPS form.
It's actually not too bad, and I have now done this. As a nice side
effect, we also get proper tail recursion! Hurrah!

You can take a look at the updated code here:

http://hkn.eecs.berkeley.edu/~dyoo/p...-1.5pre.tar.gz

For example:

;;;;;;
volado:~/Documents/work/pyscheme/trunk/src dyoo$ python scheme.py
Welcome to PyScheme! Type: (QUIT) to quit.

[PyScheme] >>> (+ 1 (call/cc (lambda (k) (+ 2 (k 3)))))
4
;;;;;;
The improvements are due to ideas I stole from Shriram Krishnamurthi's
"Programmin g Languages: Application and Interpretation" :

http://www.cs.brown.edu/~sk/Publicat...oks/ProgLangs/

and Friedman, Wand, and Haynes "Essentials of Programming Languages":

http://www.cs.indiana.edu/eip/eopl.html
I'm psyched now: I think I finally understand continuations! *grin*
I do have to fix a major bug with pair representation in pyscheme.
But as soon as I get that outstanding fixed, I'll send a more formal
announcement.
Hope this helps!
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
19001
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have any preconceived ideas about it. I have noticed, however, that every programmer I talk to who's aware of Python is also talking about Ruby. So it seems that Ruby has the potential to compete with and displace Python. I'm curious on what basis it...
699
33870
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
226
12535
by: Stephen C. Waterbury | last post by:
This seems like it ought to work, according to the description of reduce(), but it doesn't. Is this a bug, or am I missing something? Python 2.3.2 (#1, Oct 20 2003, 01:04:35) on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> d1 = {'a':1} >>> d2 = {'b':2} >>> d3 = {'c':3}
37
2794
by: michele.simionato | last post by:
Paul Rubin wrote: > How about macros? Some pretty horrible things have been done in C > programs with the C preprocessor. But there's a movememnt afloat to > add hygienic macros to Python. Got any thoughts about that? "Movement" seems quite an exaggeration. Maybe 2-3 people made some experiments, but nobody within the core Python developers seems to be willing to advocate the introduction of macros. > Why should you care whether the...
0
8352
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8863
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8780
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7378
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4358
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2005
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.