Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-27-2016, 12:50 PM   #16
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by Cinisajoy View Post
Does the kindle have enough RAM to write even small programs?
I know they only have between 2 and 4 megabytes of storage.
We wrote large programs that ran on minicomputers with RAM measured in kilobytes, so yeah, the kindle has more than enough (and swap files are easy if you need more). That is what native mode programming (and talking to the bare metal) is all about. Megabytes are a THOUSAND times larger, but modern software does not care (except in embedded processors, my specialty). Old-school programming, where every byte counts...

And if you need a high level language, there is microPython on the ESP8266 (which has WAY less RAM than a kindle). And kindles have python and lua and java already, and tinycc (tcc) as well.

Remember that a large app can reside on flash and only cache the parts it needs at this moment in RAM. And native mode programming is easy with data structures residing in memory mapped files.

Last edited by geekmaster; 07-27-2016 at 01:38 PM.
geekmaster is offline   Reply With Quote
Old 07-27-2016, 01:08 PM   #17
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Yep, after all, I'm doing some fairly heavy-duty image processing via ImageMagick for the screensavers hack, and it's been working wonders .
NiLuJe is offline   Reply With Quote
Advert
Old 07-27-2016, 01:45 PM   #18
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by NiLuJe View Post
Yep, after all, I'm doing some fairly heavy-duty image processing via ImageMagick for the screensavers hack, and it's been working wonders .
What you can do is limited only by your imagination, rarely by the hardware.

My first computer had 256 BYTES of RAM and I did awesome things on it. If you think 256 byte programs are impossible for anything interesting, you have not been following the "demoscene" since the dawn of computers. There are lots of 256 byte programs that do amazing things: http://hugi.scene.org/online/hugi35/...ound-table.htm

And if you have a whole 256KB to spare, check out debris (177KB) here:
http://www.pouet.net/prod.php?which=30244

Here is a youtube recording of that realtime 177KB demo:


And remember that we had BASIC interpreters that loaded and ran on our massive memory (at the time) 1K RAM computers, with room left over for useful programs:
https://news.ycombinator.com/item?id=9154319

So yeah, a few dozen megabytes is plenty if you know how to program old-school style.

Last edited by geekmaster; 07-27-2016 at 01:53 PM.
geekmaster is offline   Reply With Quote
Old 07-27-2016, 01:57 PM   #19
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
The Kindle can compile anything which can be compiled in 256 MB of RAM + your use of swap space. Which is a fair bit. We're not exactly planning to compile Firefox here...

Obviously, given the processor in question, it will take a while (~days potentially). But I have it on good authority it is a good way to avoid cross-compilation issues.
eschwartz is offline   Reply With Quote
Old 07-27-2016, 02:03 PM   #20
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by eschwartz View Post
The Kindle can compile anything which can be compiled in 256 MB of RAM + your use of swap space. Which is a fair bit. We're not exactly planning to compile Firefox here...

Obviously, given the processor in question, it will take a while (~days potentially). But I have it on good authority it is a good way to avoid cross-compilation issues.
It took me about 12 hours to compile X11 on my K3, back in the day.

And it kinda sorta actually almost worked too.

Now with a whole 38MB, imagine porting something like this to a kindle with sound (using gmplay video code as a base):


Now if you tell me a kindle does not have enough RAM for "real programs", you have barely begun to learn the craft the way the masters did it in the olden days when RAM was precious and scarce (and still is in some embedded devices).

EDIT: Just for a size reference, Apple-2 diskettes were typically bootable and contained an entire application, from things like accounting and bookkeeping, payroll and taxes, development toolchains, and of course games. My Corvus hard drive held FIFTY Apple-2 diskette images, and it was a whopping FIVE MEGABYTES. I still have a couple of those ginormous 5MB hard drives around here. And it was very unusual to see an Apple-2 with more than 16KB installed. Kids these days don't know just how good they have it compared to the "good old days"...

Last edited by geekmaster; 07-27-2016 at 03:17 PM.
geekmaster is offline   Reply With Quote
Advert
Old 07-27-2016, 02:32 PM   #21
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by geekmaster View Post
We wrote large programs that ran on minicomputers with RAM measured in kilobytes, so yeah, the kindle has more than enough (and swap files are easy if you need more).
- - - -
Another example -

The computer in telephone office switching machines had 16Kwords (32Kbytes) of ram available for both the program and a disk based operating system.

The goal was to complete a dialed call between any two points in the nation (USA) in under 2 seconds.
They did it easily, from 4,000 to 16,000 simultaneous calls each.
(Just in case you needed an example of a hand written, multi-tasking, program (each call was a task) )

The processor in the Kindle has that much ram (each) for i-cache and d-cache.
And it is a 32-bit processor that is running light years faster than those 16-bit mini-computers where running.

Another example -
See our 'Mainframe in a zipper case' thread - about running IBM, OS-360 and its application programs on the Kindle Touch.

You would be impressed if you ever had to stand inline in the hallway, waiting for your job to finish on the mainframe.
knc1 is offline   Reply With Quote
Old 07-27-2016, 02:38 PM   #22
Yourcat
Groupie
Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.Yourcat knows the way to San Jose.
 
Posts: 175
Karma: 54048
Join Date: Mar 2016
Device: PW3 5.6.5-usbnet
Being Euphoric about the new Kindle is fine. Anyhow it is designed as a reader. Kterm may be fine if you use an external keyboard with all keys, not sure if bash autocomplete is supported. Investing some time here may be fun. It has limitations so I would not use it as a computer.
At geekmaster Nice links, a demo app getting out everything of Kindle would be interesting. With video and bt/otg audio one could build an amazing demo. Anyhow I don't follow the scene any more, TZ/The Jungly Kitchen was the last interesting one I saw and can remember. I wonder whether people still take the time to create such amazing demos. Also BW has its own magic.
Yourcat is offline   Reply With Quote
Old 07-27-2016, 02:45 PM   #23
Cinisajoy
Just a Yellow Smiley.
Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.Cinisajoy ought to be getting tired of karma fortunes by now.
 
Cinisajoy's Avatar
 
Posts: 19,161
Karma: 83862859
Join Date: Jul 2015
Location: Texas
Device: K4, K5, fire, kobo, galaxy
Ok my favorite geeks.
I asked a simple yes or no question.
Enjoyed the answers though.
Cinisajoy is offline   Reply With Quote
Old 07-27-2016, 02:59 PM   #24
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
@Yourcat,

/{etc,usr/share/bash-completion}/bash-completion is not installed, just the default command/file completion (baked into the actual shell itself) is supported.
eschwartz is offline   Reply With Quote
Old 07-27-2016, 03:08 PM   #25
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by Cinisajoy View Post
Ok my favorite geeks.
I asked a simple yes or no question.
Enjoyed the answers though.
You opened the can, my dear. Now step aside and let (geek) nature take its course.
geekmaster is offline   Reply With Quote
Old 07-27-2016, 03:41 PM   #26
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Cinisajoy View Post
Does the kindle have enough RAM to write even small programs?
I know they only have between 2 and 4 megabytes of storage.
Yes, they do. For instance, KOreader is not exactly a small program.

And they have 128, 256 or 512 megabytes of ram, depending on model.

For example, one of my PCs (a HP Vectra) has a limit of 512 megabytes of ram and it shipped (to someone else) with Windows 2000 Pro pre-installed.

Last edited by knc1; 07-27-2016 at 03:48 PM.
knc1 is offline   Reply With Quote
Old 07-27-2016, 03:53 PM   #27
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
The "2 or 4" is gigabytes of eMMC, not megabytes of RAM. And you can memory-map some of that eMMC into the CPU address space so it acts like RAM from a software point of view (memory-mapped files and/or a swap file).
geekmaster is offline   Reply With Quote
Old 07-27-2016, 04:10 PM   #28
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
USBNet bundles a full zsh setup, with full support for its complete and utter awesomeness at being a shell that gets shit done .
NiLuJe is offline   Reply With Quote
Old 07-28-2016, 02:25 PM   #29
Euphoric
Member
Euphoric began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2016
Device: KT3W
Ahah, it seems there are some people who are older than me in this forum...
(started programming TRS-80 at the local Radio Shack store on Wednesday afternoons when I couldn't buy this beast, then bought a ZX-81 kit... that's right, with 1KB ram for both the screen ram and the user program, you had to use quirks to save a few bytes...

I'm going on holidays tomorrow and haven't find a way to attach the bluetooth keyboard to the Kindle, so for now I'm using the same trick as http://maxogden.com/kindleberry-wireless.html , excepted that the number of parts is reduced and it doesn't use wires:
- android phone with Corbin Champion's gnuroot, debian Jessie, dropbear ssh server on it
- Kindle 8 with kterm in landscape mode, ssh to my phone, screen command started
- bluetooth keyboard connected to the phone, screen -xR to join the same screen as the kindle

... that's what I wanted : an outdoor screen to type in vi, compile and run...
It's not running on the kindle, and I have 3 parts instead of two... but I would still have needed the android phone with its 3G/4G connection and its Wifi hotspot in order to have the Kindle communicate on the Internet when not in a Wifi area, and the phone has more storage, and apt-get, etc.

So I guess I will stick with this configuration until someone comes with a native debian install on the Kindle (do you know any advances since 2013's https://www.tablix.org/~avian/blog/a...ting_kindle_3/ ?)
Euphoric is offline   Reply With Quote
Old 07-28-2016, 02:41 PM   #30
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
By a few decades at least.

That post was not written by any of us, you will have to contact them for support (and corrections to the posted material.)

You can run (Hmm... KT3 ....) at least Debian/Jessie binaries in USB storage area concurrently with the Kindle's firmware.

See my post today in reply to someone who wanted us to update the thread on running Optware in a chroot.
It simply isn't required (the chroot that is).

Last edited by knc1; 07-28-2016 at 02:45 PM.
knc1 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tools Software Jailbreak for PW2, PW3, PW3W, KT2, KV, KOA and KT3 knc1 Kindle Developer's Corner 3376 05-31-2023 09:43 AM
Converting wreaks havoc on my computer?? squidchip Conversion 3 08-29-2015 11:16 AM
standalone and the editors roger64 ePub 3 04-04-2014 09:53 AM
Standalone FlightCrew capidamonte Sigil 8 04-25-2012 05:20 PM
Standalone flightcrew? bfollowell Sigil 4 06-30-2011 11:21 AM


All times are GMT -4. The time now is 08:27 PM.


MobileRead.com is a privately owned, operated and funded community.