Better HN
topnewbestaskshowjobs
Log inSign up

yehors

57 karma · joined Oct 23, 2020 (6y ago) · 30 submissions

I am a back-end developer.
Submissions

1.

IRCv3 server implemented using Erlang/OTP with optional voices, files, and E2EE(github.com ↗)

2 points · by yehors · 1w ago · discuss

2.

A high-performance gRPC server library in C(github.com ↗)

1 points · by yehors · 1mo ago · discuss

3.

Self-Contained String and Unicode (v17) Library for ISO C11/C17/C23(github.com ↗)

2 points · by yehors · 1mo ago · discuss

comment 8mo ago · link · parent

when i was building silkworm, unability of uvloop to support Windows was a problem for me, so i added winloop

btw, they seem to be included into uvloop: https://github.com/Vizonex/Winloop/commit/317873329143e8cf82...

comment 8mo ago · link · parent

added support for Windows in v0.1.3

6.

Show HN: An event loop for asyncio written in Rust(github.com ↗)

5 points · by yehors · 8mo ago · 2 comments

7.

Show HN: Native PyAnnote (speaker diarizer) in Rust(github.com ↗)

3 points · by yehors · 10mo ago · discuss

8.

Show HN: Fast (0.5 GB/SEC) dedup utility for the era of LLMs written in C23(github.com ↗)

2 points · by yehors · 10mo ago · discuss

9.

Show HN: Sorting a billion of integers in 7.6 seconds(github.com ↗)

2 points · by yehors · 10mo ago · discuss

comment 11mo ago · link · parent

Also, it supports Free-threaded Python (`PYTHON_GIL=0` env-var).

My little test that extracts title's from webpages (spider https://github.com/BitingSnakes/silkworm/blob/main/examples/...):

- RPS with GIL = ~174 - RPS without GIL: ~242

comment 11mo ago · link · parent

I've built https://github.com/RustedBytes/scraper-rs to parse HTML using Rust with CSS selectors and XPath expressions. This wrapper can be useful for others as well.

12.

Show HN: Async web scraping framework on top of Rust(github.com ↗)

2 points · by yehors · 11mo ago · 2 comments

13.

Show HN: Rust-based translator with KULYK models for English<->Ukrainian MT(github.com ↗)

2 points · by yehors · 1y ago · discuss

comment 1y ago · link · parent

Here's demos:

- https://huggingface.co/spaces/Yehor/en-uk-translator

- https://huggingface.co/spaces/Yehor/uk-en-translator

15.

Show HN: kulyk-uk-en and kulyk-en-uk(huggingface.co ↗)

2 points · by yehors · 1y ago · 1 comment

comment 1y ago · link · parent

Are you using a local Whisper? If yes, what do you use for inference, candle/ort?

comment 1y ago · link · parent

Not easy it sounds. Generated file has JSONL and each has summary or advisory lines. My script just processes them to a Markdown in Go.

comment 1y ago · link · parent

Actually, it's the same. As I understand they use one database.

19.

Show HN: NPM-Audit-to-Report(github.com ↗)

5 points · by yehors · 1y ago · 5 comments

20.

Show HN: Speech Recognition for Ukrainian(github.com ↗)

1 points · by yehors · 4y ago · discuss

comment 4y ago · link · parent

Just added the quantized version of the model

22.

Show HN: An ONNX model for speech recognition of the Ukrainian language(github.com ↗)

1 points · by yehors · 4y ago · 1 comment

comment 6y ago · link · parent

This quote came to my mind after your comment: "It is necessary to light it up so that it shines. (Inscription on Kubachi lamps)".

Yesterday I extended the README file so you can start using information from this section: https://github.com/egorsmkv/openapi3-generator#how-to-use

As I said before the project isn't related to business logic of your APIs but I can show you an example how you could use it. It's an example about how to create an API in Go.

After generating an api.yaml file go to api-spec-converter [1] and convert content of API spec in OpenAPI 3 format to Swagger 2.

Then download an executable file of go-swagger [2] and run this command to generate all boilerplate code for your server:

swagger generate server -f ./swagger.json -A pet-api

This way you can firstly prototype (describe all paths, schemes, and requests) of your API and only then to start to write code. It's hugely simplifying the process of coding in my opinion.

[1]: https://lucybot-inc.github.io/api-spec-converter/

[2]: https://github.com/go-swagger/go-swagger

comment 6y ago · link · parent

I agree with this position. The code and the API spec must be separated. But the project is not meant to write APIs with spec, the project uses Python to create API spec.

comment 6y ago · link · parent

Hello. Yes, I have not prepared enough the description so guys and ladies I am sorry for that. Just added more information to the README.md file on GitHub.

Answers to the questions:

> - Read application code (written in python?) and extract an API specification? Is it flask only?

You can:

1. Construct schema objects and request objects using Python classes with marshmallow [1] library;

2. Split API paths (routes) into separate python modules, files for convenience and then add them in the `api/project.py` file.

> - Does it update the file on disk repeatedly?

No. You need to re-build the `api.yaml` file by yourself, using this command: "python build.py"

> - Does it modify generated application code to add an endpoint for the Swagger UI and host it?

No. You need to write the business logic of your API by yourself. For example, you write an API in Go and describe the API definitions (specifications) using my project just by adding new paths, schemas. Flask is used only for development purposes, it is not meant to create API using Flask, but you can do it as well.

> - Are any modifications to the pre-existing applications necessary?

No.

> - Does it wrap an existing application?

If you meant if this is a wrapper for other apps then it is. These two: marshmallow [1] and apispec [2]

If you meant if this wraps existed API then the answer is yes. You can describe existing APIs using my project.

> ... are there other tools in your space that do what you do, but differently?

Yes, a lot and for many languages. I can mention swagger-php [3], flask-swagger [4] which I know. But the two are using annotations in code (via docstrings) to describe the API definitions/specification when my project is meant to create ONLY API defs/spec.

[1]: https://marshmallow.readthedocs.io/en/stable/

[2]: https://github.com/marshmallow-code/apispec

[3]: https://github.com/zircote/swagger-php

[4]: https://pypi.org/project/flask-swagger/

26.

Show HN: A faster way to prototype your APIs using OpenAPI 3 and Swagger UI(github.com ↗)

77 points · by yehors · 6y ago · 41 comments