Author Topic: Identify network devices  (Read 1758 times)

dbannon

  • Hero Member
  • *****
  • Posts: 3889
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Identify network devices
« Reply #30 on: August 11, 2026, 09:28:32 am »
Yeah, I think understand what Warfley means. Its not the basics of the language that matters here, what is more important is the frameworks and tools that are available to help you get that server going with not much critical code contributed by yourself. Having a lot of people using those tools helps too !

But I don't think FCL-Web is that hard to use, there are some pretty useful examples there. Sadly no other documentation.

And, honestly, what Warfly said about having code you want to reuse is, perhaps, a good reason to use FCL-Web. I made a server that syncs notes from my app to a webservice, as I had a lot of note handling code that I could reuse, FPC-Web was a good choice.

We still have not had a response from LemonParty about where his system is to be used (ie private network behind a firewall or on the open inter-web thing. Nor any mention about what authentication system is being used. As I said earlier no one really should be answering questions without that information.

Davo
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

LemonParty

  • Hero Member
  • *****
  • Posts: 651
Re: Identify network devices
« Reply #31 on: August 11, 2026, 11:53:27 am »
Quote
We still have not had a response from LemonParty about where his system is to be used (ie private network behind a firewall or on the open inter-web thing. Nor any mention about what authentication system is being used.
Currently I use my server inside a firewall, but I may use it as open intra-web thing in future.
The authentication system is a regular post request with login and password.
Lazarus v. 4.99. FPC v. 3.3.1. Windows 11

Warfley

  • Hero Member
  • *****
  • Posts: 2085
Re: Identify network devices
« Reply #32 on: August 11, 2026, 03:26:51 pm »
Warfley, why Pascal is unsafe language?
Python, Javascript and PHP there is a problem with all described languages. They all are sometimes extremely slow. I built some time ago an application with JS that working a lot with strings and performance and resource usage was absolutely disappointing. Warfley, what do you say about Rust, is it safe enough for web servers?
Unsafe with programming languages refers to type and memory safety. Pascal is relatively typesafe (as long as you dont cast around to much, use untyped pointers or use absolute or other such constructs), but is absolutely not memory safe.
You can avoid some of those safety issues with CGI apps, which is why I always recommend to write your webserver as such when using pascal.

About performance, HTTP is a plaintext based request response protocol that requires TLS handshakes for each connection and then to be handled by the Browser. This means any request will just because of network traffic take tens if not hundreds of milliseconds to complete. The execution time of the programming language is absolutely negligible in those cases.
For most Webservers a jit compiled java, js or python app will be more than enough. Even relatively complex computations like string processing in those languages will not impact the overall response time simply because the deciding factor here is network delay. It doesn't matter if your code takes 10ms instead of 100nanos if the HTTP overhead is 200ms.

About rust, yes rust is safe and fast and has some good frameworks for web servers. But again you are optimizing something that you probably don't need to optimize. Execution speed is rarely if ever the bottle neck for web apps
« Last Edit: August 11, 2026, 03:28:40 pm by Warfley »

gidesa

  • Sr. Member
  • ****
  • Posts: 264
Re: Identify network devices
« Reply #33 on: August 11, 2026, 06:01:48 pm »
Execution speed is rarely if ever the bottle neck for web apps

Yes. But there are also web services, that can sometimes require maximum performance. Could be Pascal better than Python, Javascript (not Java or C#)?

Warfley

  • Hero Member
  • *****
  • Posts: 2085
Re: Identify network devices
« Reply #34 on: August 11, 2026, 10:55:13 pm »
If you need maximum performance, you also shouldn't use pascal because it's not very optimized (both on compiler and language level). There C, C++ or Rust are much better suited.

There are reasons to use pascal, like I said, if you have existing pascal code or integrate with other pascal code, then it's really good for that. E.g. i wrote a teamspeak 3 admin bot in pascal and when I wanted to create a web interface for it I just put the existing units into an fcl web app. Or when I had a system to upload and analize binary files I much prefer pascal over other languages.

But its not that good for.speed

 

TinyPortal © 2005-2018