473,406 Members | 2,273 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Tiddlywiki type project in Python?

jkn
Hi all
I'm trying out, and in general finding really useful, the various
TiddlyWiki variants that I guess many people here know about, for
organising my activities in a GTD way. One mild annoyance is in the
speed of the Javascript applications. I fancy having a go at writing
something like this for myself, where update speed would be a higher
priority.

I don't know Javascript (although it looks moderately simple from a
brief peruse, and I know enough languages to know I'll be able to pick
it up); however I do know and use Python, although not nuch in a
web-oriented way. Since unlike JS, python is at least pre-compiled, I
have hopes that this would make things quicker. I do appreciate that JS
is built into the browser, which might make my Python approach slower.
I'm not sure of the 'architectural' approach to this; any suggestions,
and maybe pointers to previous work?

Thanks in advance
Jon N

Jun 14 '06 #1
8 2106
jkn wrote:
Hi all
I'm trying out, and in general finding really useful, the various
TiddlyWiki variants that I guess many people here know about, for
organising my activities in a GTD way. One mild annoyance is in the
speed of the Javascript applications. I fancy having a go at writing
something like this for myself, where update speed would be a higher
priority.

I don't know Javascript (although it looks moderately simple from a
brief peruse,
It's not as simple as it may seem at first look. There are some real
gotchas. But if you want a more pythonic javascript, you should have a
look at mochikit.
and I know enough languages to know I'll be able to pick
it up); however I do know and use Python, although not nuch in a
web-oriented way. Since unlike JS, python is at least pre-compiled, I
have hopes that this would make things quicker. I do appreciate that JS
is built into the browser, which might make my Python approach slower.
I'm not sure of the 'architectural' approach to this; any suggestions,
and maybe pointers to previous work?


I don't really understand what you're after here, since TiddlyWikiLikes
can *not* work without javascript.

Anyway, there's at least a Zope-based TiddlyWikiLike, so you may want to
have a look here:
http://ziddlywiki.org/

HTH
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Jun 14 '06 #2
jkn
Hi Bruno

[...]

I don't know Javascript (although it looks moderately simple from a
brief peruse,
It's not as simple as it may seem at first look. There are some real
gotchas. But if you want a more pythonic javascript, you should have a
look at mochikit.


OK, thanks for the pointer

[...]
and I know enough languages to know I'll be able to pick
it up); however I do know and use Python, although not nuch in a
web-oriented way. Since unlike JS, python is at least pre-compiled, I
have hopes that this would make things quicker. I do appreciate that JS
is built into the browser, which might make my Python approach slower.
I'm not sure of the 'architectural' approach to this; any suggestions,
and maybe pointers to previous work?
I don't really understand what you're after here, since TiddlyWikiLikes
can *not* work without javascript.


Well, that may be an/the answer, since another form of my question
would be 'how can I write a TiddlyWikiLike using Python instead of JS'
;-). I appreciate that it might involve, for instance, a local server.
Does the idea of embedding python in a browser instead of Javascript
make any sense at all?

Anyway, there's at least a Zope-based TiddlyWikiLike, so you may want to
have a look here:
http://ziddlywiki.org/


Thanks again

jon N

Jun 14 '06 #3
jkn wrote:
(snip)
Does the idea of embedding python in a browser instead of Javascript
make any sense at all?


From a purely theoretical POV, yes, this idea makes sens - Python could
be an interesting alternative to javascript for client-side scripting
(and I'd really prefer using Python for this - but I may be a bit biased
!-). But note that there may be some issues wrt/ significative
indentation and security.

Now the problem is that no browser actually supports Python for
client-side scripting. And I really doubt this will change in a near
future.

--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom.gro'.split('@')])"
Jun 14 '06 #4
> Well, that may be an/the answer, since another form of my question
would be 'how can I write a TiddlyWikiLike using Python instead of JS'
;-). I appreciate that it might involve, for instance, a local server.
Does the idea of embedding python in a browser instead of Javascript
make any sense at all?


Nope. Not really.
Diez
Jun 14 '06 #5
Diez B. Roggisch wrote:


[Quoting jkn...]
Well, that may be an/the answer, since another form of my question
would be 'how can I write a TiddlyWikiLike using Python instead of JS'
;-). I appreciate that it might involve, for instance, a local server.
Does the idea of embedding python in a browser instead of Javascript
make any sense at all?


Nope. Not really.


While I think TiddlyWiki is interesting from the perspective of
creating sites that are editable in the browser without having to
install or configure server-side Wiki software (which many people find
intimidating, even if it's a ten line program that uses
BaseHTTPServer), the drawbacks are numerous: even moderately small
Wikis are slow since browser-based DOMs aren't designed for storing and
manipulating large documents; published Wikis can be edited and saved,
but their changes remain unmerged with the original unless you install
various server-side extensions, compromising the simple "all in one
place" storage model; last time I looked, production of non-Wiki,
navigable sites from TiddlyWiki wasn't supported unless you wrote your
own tools. A lot of the effort getting around these problems is
arguably better invested in coming to terms with installing some
traditional Wiki software.

But where I don't agree with a negative assessment of Python in the
browser is in one area that TiddlyWiki inadvertently illustrates quite
nicely: the ability to conveniently distribute a sandbox to other
people which has its own rather nice, widely-supported input/output
system. People have been more enthusiastic about virtualisation
recently: "safe Python" in the browser (or with other visualisation
front-ends) would be a good lightweight virtualisation solution of
sorts, I think.

Paul

Jun 14 '06 #6
I've been doing some work on a didiwiki-like program written in Python.
Since Python is embedded in browsers, the didwiki approach make sense:
write the server in your language of choice (didwiki uses C), and lay
the necessary (simple) wiki code on top of the server. Roll the entire
thing into a single executable, and you have a personal wiki. The catch
is that you must run the executable before you can access your wiki, but
it is a small price to pay IMHO.

Anyway, I'll either GPL or public-domain my code when I'm finished with
it and I'll post it here. My hope is it will be as fast on a reasonably
modern computer as didiwiki is.

Rick

jkn wrote:
Hi Bruno

[...]
I don't know Javascript (although it looks moderately simple from a
brief peruse,

It's not as simple as it may seem at first look. There are some real
gotchas. But if you want a more pythonic javascript, you should have a
look at mochikit.


OK, thanks for the pointer

[...]
and I know enough languages to know I'll be able to pick
it up); however I do know and use Python, although not nuch in a
web-oriented way. Since unlike JS, python is at least pre-compiled, I
have hopes that this would make things quicker. I do appreciate that JS
is built into the browser, which might make my Python approach slower.
I'm not sure of the 'architectural' approach to this; any suggestions,
and maybe pointers to previous work?

I don't really understand what you're after here, since TiddlyWikiLikes
can *not* work without javascript.


Well, that may be an/the answer, since another form of my question
would be 'how can I write a TiddlyWikiLike using Python instead of JS'
;-). I appreciate that it might involve, for instance, a local server.
Does the idea of embedding python in a browser instead of Javascript
make any sense at all?
Anyway, there's at least a Zope-based TiddlyWikiLike, so you may want to
have a look here:
http://ziddlywiki.org/


Thanks again

jon N


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jun 15 '06 #7
That should have said "Since Python _isn't_ embedded in browsers"!

Rick

R. P. Dillon wrote:
I've been doing some work on a didiwiki-like program written in Python.
Since Python is embedded in browsers, the didwiki approach make sense:
write the server in your language of choice (didwiki uses C), and lay
the necessary (simple) wiki code on top of the server. Roll the entire
thing into a single executable, and you have a personal wiki. The catch
is that you must run the executable before you can access your wiki, but
it is a small price to pay IMHO.

Anyway, I'll either GPL or public-domain my code when I'm finished with
it and I'll post it here. My hope is it will be as fast on a reasonably
modern computer as didiwiki is.

Rick

jkn wrote:
Hi Bruno

[...]
I don't know Javascript (although it looks moderately simple from a
brief peruse,
It's not as simple as it may seem at first look. There are some real
gotchas. But if you want a more pythonic javascript, you should have a
look at mochikit.


OK, thanks for the pointer

[...]
and I know enough languages to know I'll be able to pick
it up); however I do know and use Python, although not nuch in a
web-oriented way. Since unlike JS, python is at least pre-compiled, I
have hopes that this would make things quicker. I do appreciate that JS
is built into the browser, which might make my Python approach slower.
I'm not sure of the 'architectural' approach to this; any suggestions,
and maybe pointers to previous work?
I don't really understand what you're after here, since TiddlyWikiLikes
can *not* work without javascript.


Well, that may be an/the answer, since another form of my question
would be 'how can I write a TiddlyWikiLike using Python instead of JS'
;-). I appreciate that it might involve, for instance, a local server.
Does the idea of embedding python in a browser instead of Javascript
make any sense at all?
Anyway, there's at least a Zope-based TiddlyWikiLike, so you may want to
have a look here:
http://ziddlywiki.org/


Thanks again

jon N


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet
News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+
Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Jun 15 '06 #8
jkn
Hi Rick

R. P. Dillon wrote:
I've been doing some work on a didiwiki-like program written in Python.
Since Python is [_not_] embedded in browsers, the didwiki approach make sense:
write the server in your language of choice (didwiki uses C), and lay
the necessary (simple) wiki code on top of the server. Roll the entire
thing into a single executable, and you have a personal wiki. The catch
is that you must run the executable before you can access your wiki, but
it is a small price to pay IMHO.

Anyway, I'll either GPL or public-domain my code when I'm finished with
it and I'll post it here. My hope is it will be as fast on a reasonably
modern computer as didiwiki is.

Rick


That sounds interesting ... thanks. I'd never heard of didiwiki and
from a brief browse it seems similar to what I have in mind. I will
download it and have a proper look at it ... & will be glad to hear
more of your project.

Regards
Jon N

Jun 15 '06 #9

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

Similar topics

3
by: Isaac Jones | last post by:
Hello Python Community. I bring greetings from the Haskell community (http://www.haskell.org) ;) There has been a lot of discussion of late about creating a grand-unified build & distribution...
11
by: Faheem Mitha | last post by:
Hi, I'm not sure what would be more appropriate, so I'm ccing it to both alt.comp.lang.learn.c-c++ and comp.lang.python, with followup to alt.comp.lang.learn.c-c++. While working with a...
2
by: Hal Vaughan | last post by:
I'm self taught and most of what I've been working on for the past several years has been entirely in Perl and Java. I've noticed that I can code about 5 times faster in Perl than Java, in part...
1
by: HopfZ | last post by:
Tiddlywiki has two impossible-looking feature: 1. modifying itself. 2. creating a backup of itself. How can javascript do these? I've look at its code, but it's really complicated.
2
by: CracKPod | last post by:
Hello, I wrote a Python class to interact with the TiddlyWiki. In case you are interested you can find it on my blog: http://crackpod.bplaced.net/ CracKPod
3
by: James Mills | last post by:
On Thu, Oct 9, 2008 at 2:26 PM, Warren DeLano <warren@delsci.comwrote: Yes it does :) I second this. It's far better to use Data Structures rather than Programming Constructs
20
by: Mr.SpOOn | last post by:
Hi, I need a structure to represent a set of integers. I also need to perform on this set some basic set operations, such as adding or removing elements, joining with other sets and checking for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.