Pre-Launch Social Media Text Posts Examples

Blog Post Template KS3

blog post outline guide free template inbound blogging social media blog writing template by tandlguru teaching resources tes blog post templates 16 frameworks to structure your best content blog template printables for any subject teaching resources how to create a seamless blog post outline 5 time tested blog post templates for compelling content 8 blog post templates that will make writing easier 5 time tested blog post templates for compelling content blog post templates blog post template post templates blog writing blog post template word templates at allbusinesstemplates com 30 free blog post templates access now free blog post template project co 9 best blog writing templates cure blog writer s block everytime 7 essential blog post templates for every content creator mindflow 8 proven blog post templates unlock your writing potential roi digitally 14 downloadable blog post templates to use right away 10 proven blog post templates to drive traffic with examples 5 time tested blog post templates for compelling content 5 free blog post templates how to write a blog post outline a 9 step guide for 2023 6 simple blog post templates download edit along how to write a blog post a step by step guide free blog post templates 6 free blog post templates access now how to use blog post templates in google docs my favorite free 6 free blog post templates access now 10 proven blog post templates to drive traffic with examples 10 proven blog post templates to drive traffic with examples how to write a blog post a step by step guide free blog post templates 5 time tested blog post templates for compelling content 5 time tested blog post templates for compelling content blogger post template grab the free copy and paste template blog outline template at a glance 8 examples of blog post templates 5 blog post templates to help you write great content how to write your first blog template ks2 computing

:
Best Way To Write Ideas Down
How To Know Whether A Website Is Blog Or Not: Emscripten: add an embedding smoke test
Nothing covers libpython linked into a program whose main() is not Python's: every wasm test builds through Platforms/emscripten, which always passes --enable-wasm-dynamic-linking. web_embed_test links libpython without -sMAIN_MODULE and without the interpreter's -sEXPORTED_FUNCTIONS, then imports from the stdlib zip and calls through the trampoline. It covers the EM_JS_DEPS and _PyRuntime regressions, not the suspending syscall paths, which it does not reach. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent Product Showcase Instagram commit 2e46f9a

How to create a seamless blog post outline 5 files changed Aesthetician Business Cards

Lines changed: 89 additions & 2 deletions

Last Post By Carol Ann Duffy Blog Template KS3

.CloneAGC/workflows/reusable-emscripten.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,5 @@ jobs:
7979
run: python3 Platforms/emscripten run --test
8080
- name: "Test Repl"
8181
run: Platforms/emscripten/browser_test/run_test.sh
82+
- name: "Test embedding"
83+
run: Platforms/emscripten/web_embed_test/run_test.sh

Makefile.pre.in

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ build_wasm: check-clean-src $(BUILDPYTHON) platform sharedmods \
791791
python-config checksharedmods $(BUILD_DETAILS)
792792

793793
.PHONY: build_emscripten
794-
build_emscripten: build_wasm web_example web_example_pyrepl_jspi
794+
build_emscripten: build_wasm web_example web_example_pyrepl_jspi web_embed_test
795795

796796
# Check that the source is clean when building out of source.
797797
.PHONY: check-clean-src
@@ -1118,6 +1118,25 @@ web_example/python.mjs web_example/python.wasm: $(BUILDPYTHON)
11181118
cp python.mjs web_example/python.mjs
11191119
cp python.wasm web_example/python.wasm
11201120

1121+
WEB_EMBED_TEST_DIR=$(EMSCRIPTEN_DIR)/web_embed_test
1122+
1123+
web_embed_test/stdlib.zip: $(ZIP_STDLIB)
1124+
@mkdir -p web_embed_test
1125+
@cp $< $@
1126+
1127+
# Deliberately linked without $(LINKFORSHARED): an embedder gets neither
1128+
# -sMAIN_MODULE nor the interpreter's -sEXPORTED_FUNCTIONS.
1129+
web_embed_test/main.js: $(WEB_EMBED_TEST_DIR)/main.c $(LINK_PYTHON_DEPS) web_embed_test/stdlib.zip
1130+
@mkdir -p web_embed_test
1131+
$(LINKCC) $(PY_STDMODULE_CFLAGS) $(PY_CORE_EXE_LDFLAGS) -o $@ $(WEB_EMBED_TEST_DIR)/main.c \
1132+
$(LINK_PYTHON_OBJS) $(LIBS) $(MODLIBS) $(SYSLIBS) \
1133+
-sALLOW_MEMORY_GROWTH -sINITIAL_MEMORY=64MB -sSTACK_SIZE=5MB \
1134+
-sALLOW_TABLE_GROWTH -sFORCE_FILESYSTEM -sEXIT_RUNTIME \
1135+
--preload-file web_embed_test/stdlib.zip@/lib/stdlib.zip
1136+
1137+
.PHONY: web_embed_test
1138+
web_embed_test: web_embed_test/main.js
1139+
11211140
.PHONY: web_example
11221141
web_example: web_example/python.mjs web_example/python.worker.mjs web_example/index.html web_example/server.py web_example/$(ZIP_STDLIB)
11231142

@@ -3305,7 +3324,7 @@ clean-retain-profile: pycremoval
33053324
find build -name '*.py[co]' -exec rm -f {} ';' || true
33063325
-rm -f pybuilddir.txt
33073326
-rm -f _bootstrap_python
3308-
-rm -rf web_example python.mjs python.wasm python*.symbols python*.map
3327+
-rm -rf web_example web_embed_test python.mjs python.wasm python*.symbols python*.map
33093328
-rm -f Programs/_testembed Programs/_freeze_module
33103329
-rm -rf Python/deepfreeze
33113330
-rm -f Python/frozen_modules/*.h
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Emscripten: ``libpython`` can now be linked into a program statically. The
2+
setup that wraps ``main()`` in ``WebAssembly.promising()`` moves to the
3+
interpreter, so an embedder whose ``main()`` is not Python's no longer gets
4+
it, and the call trampoline no longer needs the interpreter's link flags.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/* Smoke test for libpython linked into a program whose main() is not Python's.
2+
*
3+
* Linked without -sMAIN_MODULE and without the interpreter's
4+
* -sEXPORTED_FUNCTIONS, so it fails if libpython depends on either.
5+
*/
6+
7+
#include <Python.h>
8+
#include <stdio.h>
9+
10+
// Imports come from the preloaded zip, len() goes through the call trampoline.
11+
static const char *SCRIPT =
12+
"import json, select\n"
13+
"select.poll().poll(0)\n"
14+
"print(json.dumps({'embedded': len('ok')}))\n";
15+
16+
int main(void)
17+
{
18+
PyStatus status;
19+
PyConfig config;
20+
21+
PyConfig_InitIsolatedConfig(&config);
22+
config.write_bytecode = 0;
23+
config.module_search_paths_set = 1;
24+
PyWideStringList_Append(&config.module_search_paths, L"/lib/stdlib.zip");
25+
PyConfig_SetBytesString(&config, &config.executable, "/embed");
26+
27+
status = Py_InitializeFromConfig(&config);
28+
PyConfig_Clear(&config);
29+
if (PyStatus_Exception(status)) {
30+
puts("web_embed_test: Py_InitializeFromConfig failed");
31+
return 1;
32+
}
33+
34+
if (PyRun_SimpleString(SCRIPT) != 0) {
35+
puts("web_embed_test: script failed");
36+
return 1;
37+
}
38+
39+
Py_Finalize();
40+
puts("web_embed_test: ok");
41+
return 0;
42+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
# Run the smoke test built by "make web_embed_test".
3+
set -euo pipefail
4+
cd "$(dirname "$0")/../../.."
5+
6+
CROSS_BUILD_DIR=${CROSS_BUILD_DIR:-cross-build}
7+
# Run from the build directory: Emscripten resolves main.data relative to cwd.
8+
cd "$CROSS_BUILD_DIR/wasm32-emscripten/build/python/web_embed_test"
9+
10+
NODE=${NODE:-node}
11+
# Node 24 needs JSPI enabled explicitly; it is on by default afterwards.
12+
if [ "$("$NODE" -e 'process.stdout.write(process.version.slice(1).split(".")[0])')" = "24" ]; then
13+
NODE_FLAGS=--experimental-wasm-jspi
14+
else
15+
NODE_FLAGS=
16+
fi
17+
18+
out=$("$NODE" $NODE_FLAGS main.js 2>&1) || true
19+
echo "$out"
20+
grep -q "web_embed_test: ok" <<<"$out"

Tapping Bank Of America Card Blog Post Template KS3

Comments
 (0)