theodus / jennet Goto Github PK
View Code? Open in Web Editor NEWA simple HTTP web framework written in Pony
License: BSD 2-Clause "Simplified" License
A simple HTTP web framework written in Pony
License: BSD 2-Clause "Simplified" License
Hi @Theodus,
With the following dockerfile
FROM ponylang/ponyc:0.52.5-alpine
WORKDIR /src/main
COPY corral.json ./
RUN corral fetch
COPY main.pony ./
RUN apk update && apk upgrade --no-cache
RUN apk add openssl-dev
RUN corral run ponyc -- -Dopenssl_1.1.x -Dstatic -bjennet
FROM alpine:3.16
RUN apk --no-cache add libatomic libexecinfo libgcc
WORKDIR /opt/
COPY --from=0 /src/main/jennet ./
CMD ./jennet
I can run jennet
in https://github.com/the-benchmarker/web-frameworks
But I can not use the latest alpine version since libexecinfo.so.1
is not shipped with alpine anymore.
Do you have a replacement, so a the latest alpine could be used ?
Regards,
Hello,
I've saw that the last commit has been made over half of the year ago. Is it stil under the active development?
Best,
Michal
Most official ponylang libraries have been moved to https://github.com/ponylang/corral
Lets do so too!
When I run the main example on Windows, it's either crash (2%) or just hang after several concurrent requests (98%).
Pony should never crash or hang once compiled! At least based on jennet implementation, it doesn't really do that much.
Everything compiled nicely, but once I run the wrk tool via Ubuntu WSL wrk -c100 -d30s --latency http://127.0.0.1:8080/
. It will crash or just hang forever instantly within 2 seconds. No errors, nothing. Just a feeling of emptiness.
I managed to get this working by always adding a Content-Length
header to the BuildableResponse, I pretty much use my own BuildableResponse, instead of using the one provided here:
Original:
Lines 172 to 186 in 6ed62c9
jennet-test
corral init
corral add github.com/ponylang/http_server.git
main
as the main branch so corral will fail. Thus we have to manually clone the jennet git into _corral folder in the jennet_test/_corral/github_com_theodus_jennet
corral run -- ponyc --define openssl_0.9.0
wrk -c100 -d30s --latency http://127.0.0.1:8080/
It works fine when building & running in a linux environment, just 100x much more slower somehow (might be due to WSL?):
Hi,
not sure if im doing something wrong but I'm trying to compile one of the examples and I get this error:
context.pony:11:7: syntax error: expected name after class
class iso Context
^
pony is 0.2.1
thanks
The ponylang changelog bot is now available for non-ponylang repos: https://github.com/ponylang/changelog-bot-action
This will require us to update the labels accordingly.
Requires #16
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.