edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [edbrowse-dev] Thread Thoughts
@ 2019-09-09  4:38 Karl Dahlke
  0 siblings, 0 replies; only message in thread
From: Karl Dahlke @ 2019-09-09  4:38 UTC (permalink / raw)
  To: edbrowse-dev

[-- Attachment #1: Type: text/plain, Size: 1443 bytes --]

If we take the plunge, and run js in a background thread for timers or async scripts,
here is a quick scan of the edbrowse commands and the ones that are ok to run,
that is, the ones that don't have to block and wait for the background js to finish.
You'll mostly be looking around the buffer, reading the web page, and that's fine.

B e f
g or v as in global, but the subcommand has to be ok.
g go to an internal link, maybe g?, not g to another web page, it calls onclick etc
Wish you could start filling out a form but each input could have oninput onchange onclick onselect code etc so those must all block.
h H k l n p w X z = &
< but each command in the function has to be ok

The multiletter commands, basically most of them.

db dbcss db> trace demin timers bw
rr number (but not rr)
ua number
re rea sm, though they aren't applicable, you just get an error message
various ls commands though they aren't applicable
sort commands
cd ll fll
pb commands, though not applicable
shc sht fbc shf ds=, database commands, not applicable
jdb but you have to block before each input expression
ib, I think, now that browse doesn't allocate buffers for you, hmm
f/ w/ ft fd fk
ftpa can rl bd pg hr sr xhr vs hf sg sw ci endm su8 iu lna dr dw dx bg jsbg pdc pdd pdq
bglist bflist help

If jsbt is the js background thread, then blocking is easy peasy.

#define js_wait if(jsbt) pthread_join(jsbt)


Karl Dahlke

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-09  4:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09  4:38 [edbrowse-dev] Thread Thoughts Karl Dahlke

edbrowse-dev - development list for edbrowse

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/edbrowse-dev

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 edbrowse-dev edbrowse-dev/ http://inbox.vuxu.org/edbrowse-dev \
		edbrowse-dev@edbrowse.org
	public-inbox-index edbrowse-dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.edbrowse.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git