09-26-2013, 08:10 AM | #46 | |
Bookish
Posts: 907
Karma: 1803094
Join Date: Jun 2011
Device: PC, t1, t2, t3, aura 2 v1, clara HD, Libra 2, Nxtpaper 11
|
Quote:
|
|
09-26-2013, 09:14 AM | #47 | |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
Those two, along with the automatic memory management translate into a order of magnitude higher real world developer productivity. I remember discussing rewriting Sigil in python with you when you were first taking over from Valloric, it's a pity that never happened. If it were in python, I'd have been willing to fold it into calibre and take over development. As it is, with the current code base, over the long term, it would actually be less effort for me to re-implement something like Sigil than maintain it. |
|
Advert | |
|
09-26-2013, 11:14 AM | #48 | |
Connoisseur
Posts: 92
Karma: 17950
Join Date: Mar 2013
Device: Xodo
|
I think this forum has a problem about keeping threads on-topic
Quote:
That said, perhaps the only way to really "save" the project is to convince a copule of serious developers joining the team. Now, back to COBOL discussion. |
|
09-28-2013, 09:26 PM | #49 | |||
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Concepts like pointers and manual memory management require a certain design considerations. These are difficult concepts and it's difficult to do right. If it's not something you employ regularly it becomes a barrier to entry because it's additional things that you need to learn before you can contribute. Quote:
Quote:
Taking over Sigil and immediately throwing all the code away and starting over didn't really feel like taking over... At that point I would be working on a completely different and new project. The only thing in common would be the name. Honestly I don't think that would be necessary (though it would probably happen) if Sigil was written in Python because it would have more contributors. |
|||
09-28-2013, 10:27 PM | #50 | |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
Sad but true. I was introduced to programming with Algol, and structrured programming was drilled into my head, even with assembler language(s). This was back in the late 1960's at Stanford. Don Knuth was a "god". If you do assembler programming, with its indirect addressing, the concept of pointers and dereferecing of pointers is not that big of a deal. But as was said, you gotta keep track of what you're doing. And yes, you can even use structured programming concepts in assembler language. The point being, I am sadend fromm your remarks, at the implied thought that the concepts of structured programming (which can be implemented even in Fortran or Basic, but are "forced" in Algol, PL/1, Pascal, C, etc.) have fallen by the wayside. I can't comment about Python, Ruby, etc. but I suspect that structured progamming principles can apply there too, even though they are not "forced" by the nature of the language. If you can do it in Basic (whch I did), you can do it in any language. But as for OOP principles: I was never required to grasp them, though I tried to grasp on my own, but gave up for lack of suitible exercises. I know this thread has veered off topic, but hopefully somebody can glean some insight as to (a) the reasons that Sigil must stay a C++ project (at > a million lines of code) or can be ported / recoded in some other language. [/rant] Last edited by st_albert; 09-28-2013 at 10:28 PM. Reason: spelling errors. |
|
Advert | |
|
09-29-2013, 07:39 AM | #51 |
Color me gone
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
|
I looked online for anything which could convert C++ to python and the responses were all the same: No easy way.
It seems the reason it must stay C++ is because if you don't you are pretty much starting over. The problem is that there are not very many hobbyist programmers in C++ and the professional programmers have full time jobs that occupy their time just like user none. The user base is just not big enough to make it pay as a job either. BAH HUMBUG (a little bit early.) A way out of this is for someone to read this who is already fiddling with python code that can be modified to do a large part of this and can find other bits of code to cobble something together. |
09-29-2013, 08:20 AM | #52 |
Wizard
Posts: 4,520
Karma: 121692313
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-T1, Kobo Touch, Kobo Aura
|
This is basically what we said all along. Conversion is a no go, so it would be building up from the start if it needs to be another language.
I never had the hart to start with c++. I did a small attempt about ten years ago, but remained at Delphi at the time. Now it is vb.net or sometimes c# if I don't have a choice. |
09-29-2013, 12:07 PM | #53 |
Guru
Posts: 696
Karma: 150000
Join Date: Feb 2010
Device: none
|
In terms of starting over, the Java project mentioned by elibrarian in post #6 of this thread looks promising on the surface, but seems to be stalled. They have 6 project members, but there have been no commits since the end of May.
Perhaps we should all bow our heads and pray "that the Lord of the harvest will send more java programmers to the project." Albert |
10-01-2013, 12:38 AM | #54 |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2012
Device: Nook
|
Seems to me that if Kovidgoyal is willing to accept Sigil as a child product in Calibre, but only if it's written in python, then maybe the best thing for Sigil users to do is get some funding together so that he can spend lots of time working on it.
At the very least, the UI and feature set could be a beginning specification for what's needed in a new python based Sigil program. |
10-01-2013, 02:53 PM | #55 | |
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
With all due respect for your idea, if we had that type of funding, this discussion wouldn't be happening. The whole point of this thread is that putting Sigil into Python is a major project. Righty-o? Hitch |
|
10-01-2013, 09:45 PM | #56 | |
Junior Member
Posts: 2
Karma: 10
Join Date: May 2012
Device: Nook
|
Quote:
Sigil's problem is that it violates one of the open source paradigms, in that the people who USE it also are able to MODIFY it. In Sigil's case, it seems like the vast majority of users are writers who are great at writing prose, but not so good at writing C++ or python. Kovidgoyal already said that if Sigil had been written in python that he'd consider adopting it and adding it to Calibre. So my thought, which wasn't very detailed, is that while no one aside from Mark Shuttleworth could afford to hire a full-time programmer to rebuild Sigil in python, that perhaps some of the 41 contributors to Calibre could be incentivized to take on that work. Maybe we could raise enough money to get a Google Summer of Code project, or maybe a python user group or a community member would be willing to take it on. All those, however, require some kind of promotion or flag waving. It would probably also require user_none's buyin, and Kovidgoyal really didn't talk about it beyond the bare idea of adoption. |
|
10-02-2013, 04:41 AM | #57 | ||
Bookmaker & Cat Slave
Posts: 11,460
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
|
Quote:
The same is true here; the reality of the situation is simply that we have a much smaller user base to begin with than, say, Joomla or Mambo or the like. Sigil occupies a niche spot; it's a halfway house for people who want to build their OWN ePUBs, but want some shortcuts. It's not a word-processor for the nine bajillion people who come here thinking it's really WYSIWYG ePUB-making, and it's not real "coding," either (I mean by that, it's HTML and CSS, not...assembler, or PHP or what-have-you). The number of people who want the finite control really making an ePUB in X/HTML is limited, by the very nature of humans, who obey the laws of physics and take the easiest path. I suspect Jutoh already has more users than Sigil, even though it costs $40, just because it's far easier to learn. And let's not forget AWP, which runs about the same, and can output an ePUB that's not bad, for the average DIY'er. Quote:
Let's face it, most regular users of Calibre aren't interested in something like Sigil--that's why they are using Calibre. So they don't have to learn something like Sigil. The intersection of the sets is likely small, or those people who are primarily Calibre users first, and Sigil users second, are using Sigil for the minor tweaking that they can't already do with ePUBTweak. The base Sigil users likely don't have a large or heavy use of Calibre, either--for making ePUBs, anyway. If they are like me, they use it for what it's intended for--cataloging purposes. So it's not clear to me that there's funding that could be had by the "simple" expedient of saying, let's roll it into Calibre, and I would be the first to say I have very dismal hopes that some volunteer Python user group would be willing to take it on. There's a bajillion crowd-sourcing hopefuls out there, and this particular project, for such a small base...dunno. Most self-publishers aren't even interested in ePUB, because they don't know what it is, or understand it, so the demand from the general public is extremely small (I cannot tell you how many of our clients don't even download their final ePUB copies, FWIW). Don't know. It's very disheartening. Hitch |
||
10-02-2013, 07:35 PM | #58 | ||||
Sigil & calibre developer
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
|
Quote:
Saying that Sigil violates open source paradigms because people don't know how to code could be said about EVERY open source application out there. This statement is the same as stating that Ford prevents people from changing their own oil because they don't know how to use a wrench. Quote:
Fact is, calibre developers aren't interested in Sigil. They are completely different projects for different markets. Quote:
If someone wants to work on Sigil they can. If no one wants to then it doesn't get updated. Quote:
I have considered starting a rewrite in Python myself. Consider that it took 4 years to get Sigil where it is. If we estimate 1 person working full time on Sigil over that time period (which I think is a reasonable estimate) and we estimate that Python is 4 times more productive than C++ we can assume it will take 1 year of full time development to get to the same level Sigil is currently at. Working part time on Sigil we can estimate 2 years to get a rewrite to the level Sigil is at now. So is it worth years worth of effort to get to the point we're already at? For me right now the answer is no. I'd rather spend my time on other projects. Sigil isn't fun anymore so I don't have much motivation to work on it. Also, Sigil's community is a major turn off. While people on Mobile Read are very friendly and great most of Sigil's users aren't on Mobile Read and ridiculously entitled and abusive. |
||||
10-02-2013, 08:37 PM | #59 | ||
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
Could one... 1. Use QT as the GUI framework using PySide or PyQT? 2. Use QScintilla (Scintilla's QT counterpart) as the editor? 3. Use Webkit as the browser? 4. Port Sigil's EPUB capabilities into a library to use as a springboard to get the editor running as an EPUB-editor, instead of merely another SciTE clone? 5. Glue all of that stuff together using Python? (Cython, Swig, Ctype, etc...) Then we would have the very basics: a program that can open, save, edit and preview EPUB's, but it won't have any other stuff like TOC-editing, Metatag-editor and such, but those could be created one at a time. Then later on, the Sigil EPUB library could be rewritten in Python piece by piece. How much would development time possibly be shortened? For me, the greatest roadblock is the EPUB-stuff. I just don't know anything about it. I know how an EPUB looks like from the inside of course, but I don't know all the details that are necessary... that's why I use Sigil. I for one *can* program in C and C++, but I won't do it in my spare time as well as for work (I mainly write stuff in C and sometimes C++ for microcontrollers.) Quote:
Heh. I've found C# to be "Delphi with C-syntax". Not too strange, since they have the same architect. Last edited by Katsunami; 10-02-2013 at 08:52 PM. |
||
10-02-2013, 08:57 PM | #60 | |
Grand Sorcerer
Posts: 6,111
Karma: 34000001
Join Date: Mar 2008
Device: KPW1, KA1
|
Quote:
I've met many people who can otherwise program more than well enough, but don't know pointers, and when required to use them, they actually don't "get it". They get confused like hell. I found that quite strange, but it seems that pointers are slowly becoming a thing of the past, except for very low level coding. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how many tocs does Sigil make? | Gregg Bell | Sigil | 17 | 01-31-2013 09:39 AM |
Sigil 0.3.4 / Problème CSS entre Sigil et iPad | Grivels | Software | 10 | 07-03-2011 09:06 AM |
using sigil to make changes befote conversion | alansplace | Sigil | 11 | 06-07-2011 07:50 AM |
i can't make sigil run in fedora 14 | nastarovia | Sigil | 1 | 01-20-2011 05:02 AM |