ebook-reader-dict
preemptible-thread
ebook-reader-dict | preemptible-thread | |
---|---|---|
23 | 16 | |
310 | 23 | |
- | - | |
9.7 | 5.1 | |
4 days ago | 4 months ago | |
Python | C | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ebook-reader-dict
-
How to convert Kobo dictionaries to Kindle supported format (FR-FR specifically), for side loading into the latter?
I just stumbled across Kobo dictionaries, but none in a format which could be imported into Calibre, for further upload to Kindle. Copying the actual files or directories obtained by extraction of one of the Kobo dictionaries, into the documents directories of Kindle (as I've done to Littré and Roberts, to make them avail in the dictionary settings of Kindle) leads nowhere, either, so I am pretty much stuck.
-
[StarDict files with direct inflections lookup] Your help is needed!
I just had a look at a .dict from ebook-reader-dict (where the content comes from Wiktionary too, and they seem to deal with inflections too); "unfortunately" they seem to use .syn file too to store the inflections, so the behavior with the default dictionary app is similar... About further coding, I'll play with their code1 this week to check how the converting/compiling is done (who knows, maybe I/we can help there? :) ). So their is hope for a relatively quick solution :)
-
StarDict files with direct inflections lookup are slowly getting available!
One can also access the whole content of Wikipedia -and a looot more- offline, thank to among others the project "Kiwix" (Wiktionaries can be found here, other readings are available also to download trough the app, and finally, you can always "ZIM it", if you don't find what you want in the lists). Kiwix doesn't have to be used in a "stand-alone" fashion, as you can access it within the pop-up window in NeoReader as shown in the 3rd pic (working on firmware 3.3.1 too). At last but not least, another offline solution based on Wiki AND in the StarDict format is the "e-book-reader-dict" project (thank to cerank for sharing it! I have to admit I didn't find it by myself before starting this...)
-
Dictionaries
I use a stardict version of Wiktionary I have found on Github (others languages are available like French, German, ...)
-
Just bought Kobo Libra 2 and am having a bit of buyers remorse; need some general advice regarding e-readers - this is my very first
I have no experience with studying/reading German books on a Kobo, so I cannot comment on that. However, the Kobo dictionaries are generally not very good for languages with a lot of inflection such as Spanish, Russian, etc. It seems there is a good French dictionary for it (but I don't read French either, so I cannot confirm): https://github.com/BoboTiG/ebook-reader-dict. (They also have a German dictionary that should support conjugated forms - check it out!)
-
Extracting Nickel dictionaries for use in Koreader? ( repost from r/Kobo)
You could look at https://github.com/BoboTiG/ebook-reader-dict
-
Where to get dictionaries for Plato reader?
Wiktionary
-
Help me installing a dictionary on my KOReader on Kobo
I am trying to install these dictionaries using this guide.
-
How do I add a custom dictionary to Kobo Elipsa?
I have not heard of the .dic format. Just check this link: https://github.com/BoboTiG/ebook-reader-dict You just need to download a zip file and copy it where you already tried to copy your other file.
-
where can i get 3rd party updated Spanish dictionaries
Here are other Spanish dictionaries: https://github.com/BoboTiG/ebook-reader-dict/releases/tag/es
preemptible-thread
-
Threads and Goroutines
Thanks for this article.
I want to combine the benefits of kernel threads with coroutines or goroutines/green threads/lightweight threads. (If anybody knows anything specifically about fibers, I'd appreciate that because I'm not familiar with them.)
I have a lightweight thread scheduler https://github.com/samsquire/preemptible-thread which is a 1:M:N scheduler (1 scheduler thread, M kernel threads, N lightweight threads) with the lightweight threads being multiplexed on the kernel threads.
I am working on a multithreaded architecture which I all 3 tier multithreaded architecture. It combines request parallelism with IO and CPU parallelism and intra request parallelism.
We split kernel threads into three groups: app threads, which run lightweight threads, IO threads (liburing/epoll) and traditional CPU threadpool with work stealing.
* The IO threads have buffers that other threads can write to to queue up data for sockets.
-
Async rust – are we doing it all wrong?
How would you do control flow and scheduling and parallelism and async efficiently with this code?
`db.save()`, `download()` are IO intensive whereas `document.query("a")` and `parse` is CPU intensive.
I think its work diagram looks like this: https://github.com/samsquire/dream-programming-language/blob...
I've tried to design a multithreaded architecture that is scalable which combines lightweight threads + thread pools for work + control threads for IO epoll or liburing loops:
Here's the high level diagram:
https://github.com/samsquire/ideas5/blob/main/NonblockingRun...
The secret is modelling control flow as a data flow problem and having a simple but efficient scheduler.
I wrote about schedulers here and binpacking work into time:
https://github.com/samsquire/ideas4#196-binpacking-work-into...
I also have a 1:M:N lightweight thread scheduler/multiplexer:
https://github.com/samsquire/preemptible-thread
-
Coroutines for Go
* I want to keep IO and CPU in flight at all times.
I think I want this schedule:
https://user-images.githubusercontent.com/1983701/254083968-...
I have a toy 1:M:L 1 scheduler thread:M kernel threads:N lightweight threads lightweight scheduler in C, Rust and Java
https://github.com/samsquire/preemptible-thread
This lets me switch between tasks and preempt them from user space without assistance at descheduling time.
I have a simplistic async/await state machine thread pool in Java. My scheduling algorithm is very simple.
I want things like backpressure, circuit breakers, rate limiting, load shedding, rate adjustment, queuing.
-
Goroutines: The concurrency model we wanted all along
Thanks for this article and to ingve for submitting it.
Concurrency and async is my favourite topic. I wrote a very simple toy lightweight 1:M:N (1 scheduler:M kernel threads:N lightweight threads) thread scheduler in C, Rust and Java.
https://github.com/samsquire/preemptible-thread
It works on the principle that hot loops can be interrupted BY ANOTHER THREAD (the scheduler thread) on a timer, to give lightweight threads a chance to execute.
What I think I want today though is an extremely rich process/concurrency API that resembles a stream API but for processes. For example, we should be able to create pipelines that can be paused, resumed, forked, merged, drop_while, iterate_until and whatever else would be useful.
-
Coroutines make robot code easy for high schoolers
I really like this.
Thank you for your comment and sharing.
I have a lightweight 1:M:N runtime (1 scheduler thread, M kernel threads, N lightweight threads) which preempts by setting hot loops to the limit.
https://github.com/samsquire/preemptible-thread (Rust, Java and C)
How do you preempt code that is running?
-
Is Parallel Programming Hard, and, If So, What Can You Do About It? v2023.06.11a
https://github.com/samsquire/ideas5/blob/main/NonblockingRun...
The design is that we have three groupings of thread types. The application starts up some application threads which are not associated with a request, these service multiconsumer multiproducer thread safe ringbuffers in lightweight threads with a Go-erlang-like lightweight process runtime. (My simple lightweight thread runtime is https://github.com/samsquire/preemptible-thread) We also multiplex multiple network clients sockets across a set number of kernel threads which I call control threads. Their responsibility is to dispatch work to a work stealing thread pool ASAP which has its own group of threads. So we pay a thread synchronization cost ONCE per IO which is the dispatch from the control thread to a thread pool thread. (Presumably this is fast, because the thread pool threads are all looping on a submission queue)
We split all IO and CPU tasks into two halves: submit and handle reply. I assume you can use liburing or epoll in the control threads. The same with CPU tasks and use ringbuffers to communicate between threads. We can always serve client's requests because we're never blocked on handling someone else's request. The control thread is always unblocked.
I think this article is good regarding Python's asyncio story:
-
Zig Language Server and Cancellation
I am deeply interested in the multithreading, parallelism, async and coroutine design space and I journal about it everyday in my ideas journal.
I wrote a toy very simple 1:M kernel threads:N lightweight thread runtime in terrible Rust, C and Java.
Hot loops use a structure for its limit and looping variable. Then to cancel the loop, you set the looping variable to the limit from a scheduling thread, cancelling the loop. This is used for process switching and scheduling but it can also be used for cancellation.
Can create very responsive code this way, it's even possible to cancel while (true) loops by replacing them with while (!preempted) {}.
https://github.com/samsquire/preemptible-thread
There is potential for a race, but that can be detected and worked around.
-
Notes on my incomplete JIT compiler
I also have a M:N m kernel threads to N lightweight thread userspace preemptive scheduler at https://github.com/samsquire/preemptible-thread It would be nice to schedule lightweight threads in a JIT compiler. Imagine being capable of running processes similar to BEAM and Go but with JIT.
-
Erlang: More Optimizations in the Compiler and JIT
This is interesting, thank you.
I really should learn from BEAM and the OTP and learn Erlang. I get the feeling it's super robust and reliable and low maintenance. I wrote a userspace multithreaded scheduler which distributes N lightweight threads to M kernel threads.
https://github.com/samsquire/preemptible-thread
I recently wrote a JIT compiler and got lazy compilation of machine code working and I'm nowhere near beginning optimisation
https://github.com/samsquire/compiler
How do you write robust software, that doesn't crash when something unexpected goes on?
I looked at sozo https://github.com/sozu-proxy/sozu
and I'm thinking how to create something that just stays up and running regardless.
-
Erlang's not about lightweight processes and message passing
I wrote a preemptive 1:M:N scheduler in C, Rust and Java.
https://github.com/samsquire/preemptible-thread
It is a 1:M:N scheduler where there is one scheduler thread, M kernel threads and N lightweight threads. I take advantage that loop indexes can be structures and can be modified by other threads. So we can set the thread's looping variable to the limit to end the current loop and pause it and then schedule another thread.
What are some alternatives?
pyglossary - A tool for converting dictionary files aka glossaries. Mainly to help use our offline glossaries in any Open Source dictionary we like on any modern operating system / device.
Melang - A script language of time-sharing scheduling coroutine in single thread
python-benedict - :blue_book: dict subclass with keylist/keypath support, built-in I/O operations (base64, csv, html, ini, json, pickle, plist, query-string, toml, xls, xml, yaml), s3 support and many utilities.
ideas4 - An Additional 100 Ideas for Computing https://samsquire.github.io/ideas4/
kindlewick - collects wiktionary defintions into the kindle format for in-book lookups
quickserv - Dangerously user-friendly web server for quick prototyping and hackathons
ebook_dictionary_creator - Code to create a database with cleaned up Wiktionary data and then to create ebook dictionaries based on this data.
blech - Blech is a language for developing reactive, real-time critical embedded software.
matano - Open source security data lake for threat hunting, detection & response, and cybersecurity analytics at petabyte scale on AWS
quaint-lang - An experimental statically typed procedural language with first-class resumable functions.
odict - A blazingly-fast, offline-first format and toolchain for lexical data 📖
dream-programming-language - notes on my dream programming language