盗んだガンダムで走り出すシャアを
◤本日放送◢
次回「白いガンダム」
本日24時29分から、日テレ系30局ネットで放送!
さらにTV放送終了直後から、PrimeVideoで国内最速配信!放送開始まであと4時間です!
監督:#鶴巻和哉#GQuuuuuuX #ジークアクス pic.twitter.com/d6EaLRNm9l
— 機動戦士Gundam GQuuuuuuX(ジークアクス) (@G_GQuuuuuuX) April 15, 2025
盗んだガンダムで走り出すシャアを
◤本日放送◢
次回「白いガンダム」
本日24時29分から、日テレ系30局ネットで放送!
さらにTV放送終了直後から、PrimeVideoで国内最速配信!放送開始まであと4時間です!
監督:#鶴巻和哉#GQuuuuuuX #ジークアクス pic.twitter.com/d6EaLRNm9l
— 機動戦士Gundam GQuuuuuuX(ジークアクス) (@G_GQuuuuuuX) April 15, 2025
ここを参考に、sshで直接コンテナに入れるように改良。vscodeにDWARF pluginを入れてリモートでコンテナに入りデバッグするとCのソースコードレベルでブレークポイントが効くようになった。
FROM ubuntu:24.04
RUN apt update \
&& apt -y upgrade \
&& apt clean && rm -rf /var/lib/apt/lists/*
RUN apt update \
&& apt -y install tzdata \
&& apt clean && rm -rf /var/lib/apt/lists/*
ENV TZ=Asia/Tokyo
RUN apt update \
&& apt -y install --no-install-recommends build-essential \
&& apt clean && rm -rf /var/lib/apt/lists/*
RUN apt update \
&& apt -y install git cmake wget python3 openssh-server vim \
&& apt clean && rm -rf /var/lib/apt/lists/*
# emscripten ##########################
ARG EMSDKDIR=/opt/emsdk
RUN git clone https://github.com/emscripten-core/emsdk.git ${EMSDKDIR}
RUN cd ${EMSDKDIR} \
&& ./emsdk install latest \
&& ./emsdk activate latest
RUN echo "source ${EMSDKDIR}/emsdk_env.sh" >> ~/.bash_profile
# sshd ################################
RUN mkdir -p /var/run/sshd
RUN echo 'root:password' | chpasswd
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -i 's/#PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
services:
emsdk:
build: ./
extra_hosts:
- "host.docker.internal:192.168.10.180"
working_dir: /root/src
tty: true
stdin_open: true
volumes:
- ./src:/root/src
ports:
- 8080:8080
- 2222:22
- 9223:9223
wasmにソースのfull pathが入ってしまい、dockerでvolumeしてるlocalから拾ってくれない。javascriptはいけるんだが、コンテナ直にsshで入らないとダメか?
chromeの拡張機能に設定があるが効かない、、、
$ EMCC_DEBUG=1 emcc hello.c -o hello.html # default debug build $ emcc -O0 -g3 -gsource-map hello.c -o hello.html # manual debug build $ emcc -O0 -g -gsource-map -gseparate-dwarf=hello.debug.wasm -s \ SEPARATE_DWARF_URL="file://~/source/docker_emscripten/src/hello.debug.wasm" \ hello.c -o hello.html $ emrun --no_browser --port 8080 . # run http test server
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Chrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:8080",
"port": 9223,
"runtimeArgs": [
"--new-window",
"--remote-debugging-port=9223"
],
"runtimeExecutable": "canary",
"webRoot": "${workspaceRoot}/src"
}
}
Linuxのkernel開発でRustも採用されていると聞いてはいたが
中の人たちにも混乱があるようだ。そもそもUNIXのkernel開発用に出来たような高級アセンブラのC言語と近代化されたネイティブコンパイラのRustでは軋轢も生まれようなもんだ。Rustも面白そうな仕様ではあるが、これまでどっぷりとCで書かれたkernelを置き換えるには時間掛かるだろうな。
少なくともSwiftよりは使い勝手良さそう
Powered by WordPress