A synchronous http client for rust? [closed] - http

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm looking for a low overhead HTTP client in Rust to create a custom runtime for AWS lambda. All the implementations that I find (including the official runtime from AWS) are based on hyper/tokio and I don't want the overhead nor the added binary weight.
Do you know one ? Is there a reason all frameworks are based on tokio ?
Thanks,

Is there a reason all frameworks are based on tokio ?
Tokio crate is contributed by many people and maintained by them as well. Since it is developed and maintained well, It is a wise idea to put new crates on top of this base.
This is why many libraries are depending Tokio and it's variant/relevant crates.
Since Tokio is based on minimal sub crates like tokio-tcp, tokio-codec , tokio-io, tokio-executor etc. these crates can be imported seperately so your release size will be considerably small.
If you insist on not using any tokio dependency, there are still some options but they will be developed and maintained by relatively less contributor.
Here are some HTTP Client options which are not using Tokio:
Ureq
Minreq
cHttp
easy-http-request (You can try to build http client on top of that)
cabot
There are plenty options apart from these alternatives, but in my opinion I import the minimal tokio relevant crates and implement my application on top of them.

Related

Is there any up-to-date interactive server-side interpreter/console for dart [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Having done a number of projects in python and node.js, I am missing an interactive interpreter/console in dart that those languages, as well as other like ruby, provide so nicely.
Tests, logging, debuggers, profilers are the instruments we use in application development while digging into issues or trying things out. But in scripting, in server side scripting, it is the interpreter that is the primary tool to try things out. Having experience from both, software development with a long list of languages and a number of scripting domains (python and bash for admin functions, node for http request evaluation, R for data analysis etc.), I fail to see how, if server side scripting is to be taken seriously, any language not providing an interpreter/console can hope for any sensible share of the pie.
Is dart not intended for scripting or am I just missing something obvious?
PS. There is (was) one project addressing the issue, but it did not see any development for the past 3 years: https://github.com/sam-mccall/dart-console
As far as I know the REPL for the Dart language was not originally planned by the development team. The discussion on the REPL took place back in 2012 with no real outcome:
Github: Dart needs a REPL
So the answer is, there exists no interactive interpreter/console for Dart and it does not look like there are any plans to create one.
Observaory, Dartium, and WebStorm debugger allow to interactively execute Dart code.
REPL for dartlang
Is there anyway to invoke a Dart REPL on a website, when using Dartium?
Is there an "Immediate Window" in the Dart Editor / Debugger?

Eclipse RCP/RAP: Can anyone recommend a data-binding framework? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 months ago.
Improve this question
I have been given the task of porting an Access application to Eclipse RCP/RAP. The databases will remain unchanged, just the front-end will be redeveloped.
Having spent some away from eclipse development, I'm wondering what kind of support is available for data-binding to databases. What about controls such as DataGrid (edit/insert/delete rows), multi-line list items and so on?
What frameworks are there? Which ones are still being actively developed?
Thanks!
I'm not aware of any possibility to bind widgets directly to a database. You'll need to build a Java representation of your database models. Depending on the size of your project, Hibernate or EclipseLink will be preferable to JDBC.
JFace provides data binding that is easy to include into an RCP application. And with Grid and NatTable, there are two SWT implementations of advanced tables available, but I don't know how well they are supported by JFace data binding. Check the nebula project for other advanced widgets.
Eclipse Riena also provides advanced data binding (by conveniently wrapping JFace), but this is only one of many features. There is an experimental implementation that allows to run Riena applications on RAP.

Should I write my own licensing program or are there any good, ready made solutions? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am going to be developing a desktop application in C++ that I'd like to protect by requiring a license file.
My initial idea was to have 2 executables. One would the actual program that I ran some sort of symmetric encryption on and the second executable would decrypt and run the program using a license file on the user's computer. However, this is easy to defeat by simply dumping the memory.
Are there any other solutions out there (doesn't have to be free) to manage licenses? I have seen FlexNet and other things like that in mainstream programs, but wasn't sure how difficult/expensive these were to include in my own programs.
I wouldn't stress about making bullet-proof licensing. A dedicated user/hacker will be able to circumvent most anti-piracy techniques you use.
I like to add just enough licensing to make the end user realize they are breaking the rules aka keep honest people honest. The user that goes far enough to dump memory is not concerned about whether they are breaking the rules.
I don't have a specific C++ package I recommend, but I do like FlexNet (formerly FlexLM) for it's support of floating licenses.

Go network programming libs [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've decided to rewrite most of my distributed server programs in Go to replace the existing c# based ones.
Can someone point me to a Go TCP libs or a Go general network programming lib.
Thanks
Edi: ... and how do i complile this code is visual stuido 2008? Thanks
Here's the official API docs for the net package.
Regarding how to compile: See the installation guide. As of yet there doesn't seem to be an obvious way to compile in VS:
The Go tool chain is written in C. To
build it, you need to have GCC, the
standard C libraries, the parser
generator Bison, and the text editor
ed installed.
So in order to develop on Windows, the easiest route would be to use cygwin.
Depending on the needs of your distributed software, you may also want to check out the rpc package which makes it quite easy to register an object's public methods and call them remotely.

What embedded HTTP server library options should I look at? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking to write a small proxy server for kicks and giggles.
Apart from the options in libWWW, can anyone recommend any opensource options for the HTTP server and client code? Thinking of a library of some kind similar to libWWW.
Chosen language is C/C++ but open to Java, C#, Python... etc. :-)
If you choose the Java way, take a look at Jetty. It's full featured HTTP server which is very easy to embed and pretty lightweight.
Jetty is great indeed. However, if you want a proxy server, take a look at RabbIT proxy. It is well designed and amenable to modifications. e.g. We implemented a filter that serialized certain XML text in requests to Java objects, and similarly deserialized responses.
There's a wide array of choices depending on what you want to do. For example, to handle NTLM authentication, you have cNTLM (C) or NTLMAPS (Python) or jCIFS library (Java).
If you're considering to make your proxy server in Asynchronous way in C/C++.
Here's some of open source projects you might want to check out:
libevent provides one - good choice for light use. but recursion on large data is not provided..
mongoose - nice API, good abstraction, but it uses select() and realloc() based i/o buffer, Also dual license for commercial use.
libevhtp - developed as a replacement of libevent's http module.
GNU's libmicrohttpd - good feature set.
libasyncd - I'm the author. It features general asynchronous framework and comes with HTTP handler.
I'm only able to make 2 links on my answer, but you can easily find the project homes by googling them.

Resources