copygen
insect
copygen | insect | |
---|---|---|
14 | 24 | |
331 | 3,151 | |
- | - | |
0.0 | 4.9 | |
about 2 months ago | 2 months ago | |
Go | PureScript | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
copygen
-
The Icculus Microgrant is giving out 250 dollar grants to open source projects, please brag about your project(s) in this thread so I can see them!
Copygen is a type-based code generator for the Go programming language. Copygen allows developers to generate type-to-type copy functions out-of-the-box without reflection (why?), but it can also be used to generate code. As an example, disgo is a performant, secure, and thread-safe Go Discord API Wrapper that uses Copygen with dasgo to achieve feature completion.
-
sqlc patterns in production
An alternative is to use a reflection based struct copier library or a codegen struct copier library
- How Disgo Used Copygen to Generate 10,000 Lines Of Code
-
What is Disgo? An In-Depth Look.
Disgo is the only Go API Wrapper using a maintainable approach to become feature complete. Disgo is the only Go API Wrapper to provide OAuth2 flows. Disgo is the only wrapper to define API definitions (objects, requests, commands) as structs, allowing for usage of the Discord Producer API without requiring knowledge of an additional API Wrapper Consumer API.
- Copygen v0.4 can generate customized code based on types
- Copygen (v0.4) is a code generator that can generate customized code based on types.
-
Contribute to Copygen v0.4 for Reddit Gold
Copygen allows developers to define types, structs, and more in its setup.go file and has no issues copying them to the output; except for comments. The Go AST makes it "very difficult to update the AST and retain correct comment place (from 2017)" and is not likely to change any time soon. As a result, Copygen sometimes generates free-floating comments (i.e multi.go). Copygen's comments are handled in its Parser. Feel free to use any necessary libraries or rewriting of the comment-parsing mechanism to fix this issue.
- copygen: Generate type-to-type and field-to-field struct code without reflection or dependencies.
- Copygen: Type-Based Code Generator
- Copygen is a code generator that can generate ANY function based on types.
insect
-
Show HN: Numbat – A programming language with physical dimensions as types
Apparently this replaces https://github.com/sharkdp/insect
- Insect – high precision scientific calculator with support for physical units
- The Icculus Microgrant is giving out 250 dollar grants to open source projects, please brag about your project(s) in this thread so I can see them!
-
What projects do you wish there was a self hosted version of
You might like https://insect.sh/ ;)
- Show HN: I made a web-based notepad with a built in unit calculator
-
ka: a calculator language for the command line
For the record I use insect.
-
Looking to build a plugin for logseq. Your problems needed!
https://github.com/sharkdp/insect seems to be somewhat similar, but it's mostly for physical units. However, it's the only opensource one that is embeddable.
-
Ask HN: Do you use a physical calculator in your day job, and why?
Insect: https://github.com/sharkdp/insect
It is a bit slow but has decent features, including some physical units support.
I set up Tilda (or another Guake equivalent; I tried a bunch of them and can’t remember on which I settled in the end) to run it automatically when a terminal is opened, when pressing Scroll Lock. It’s quite neat: when I need to do a quick calculation, I just hit Scroll Lock, which spawns a drop down terminal with the focus; then type whatever I want to calculate; then control-D to dismiss the drop down terminal and I am back in whatever I was doing without moving either hand off the keyboard.
I do more or less the same thing on my Mac with Alfred.
-
Kagi Search – Public Beta
I'm in the same boat and will pay for Kagi, though I have a different interaction with a search engine and thought you might like the counterpoint. Notably, I don't use Google for most of what you described:
Translation: I use DeepL instead (google is doing poorly on Asian languages)
Conversion: not having much need for imperial but I use this for all unit conversion (though usually directly in my terminal): https://insect.sh/
Wikipedia: if I type Wikipedia+something my browser automatically use the wiki engine (chrome can do that too)
Word definition: on OSX I long press on the trackpad and the definition pops up (across languages, translation too for single words)
Lyrics: Spotify show them now! (admittedly that's a recent feature)
-
anyone know a calculator that can count to unreasonably high numbers? I'm talking x*10^1000 and stuff??
insect.sh goes up to about 109 × 1015.
What are some alternatives?
copier - Copier for golang, copy value from struct to struct and more
kalk - Scientific calculator with math syntax that supports user-defined variables and functions, complex numbers, and estimation of derivatives and integrals
goverter - Generate type-safe Go converters by simply defining an interface
TRex - Copy any text on your screen, stop retyping.
Package for fast copying structs of different types - Package for fast copying structs of different types
uom - Units of measurement -- type-safe zero-cost dimensional analysis
jennifer - Jennifer is a code generator for Go
Copyfish - Copy, paste and translate text from images, videos and PDFs with this free Chrome extension
go-zero - A cloud-native Go microservices framework with cli tool for productivity.
macOCR - Get any text on your screen into your clipboard.
convergen - A type-to-type copy function code generator.
calc - C-style arbitrary precision calculator