Search found 473 matches

by bbanelli
Sun Jul 11, 2021 3:06 pm
Forum: Announcement
Topic: PureBasic 6.00 Beta 1 released !
Replies: 305
Views: 64748

Re: PureBasic 6.00 Alpha 3 released !

Wow!

PCI-Z (~7k LoC) runs smoothly (heavy WinAPI involved) and only gives less than 10% size overhead.

Great work, looking forward seeing "full" version! :)
by bbanelli
Sun May 03, 2020 1:39 pm
Forum: Feature Requests and Wishlists
Topic: Support of ARM CPU
Replies: 60
Views: 18903

Re: Support of ARM CPU

I shouldn't say it because it's way to early (no ETA, only very small programs works), but I'm actually working on it ! Now, back to code :) Well now, this makes sense. ARM works on Linux for ages, Windows also supports it solidly, and now Apple appears to be turning to it on desktops/laptops as we...
by bbanelli
Mon Nov 04, 2019 9:24 pm
Forum: Coding Questions
Topic: Error: Linker - without any additional message
Replies: 0
Views: 987

Error: Linker - without any additional message

Greetings to all, I am not really sure what is going on here (bug?), however, I suppose some sort of error message is required to be produced after linker error. My case is here: https://www.purebasic.fr/english/viewtopic.php?f=12&p=544084#p544084 Everything works with dynamic library and relate...
by bbanelli
Mon Nov 04, 2019 8:47 pm
Forum: Tricks 'n' Tips
Topic: WebSocket Server
Replies: 34
Views: 19008

Re: WebSocket Server

Well, I got myself a third, dirty option. :) I used GoLang and Gorilla library to produce the following: package main import "C" import ( "github.com/gorilla/websocket" "net/url" "sync" ) //export NewWebSocketClientConnection func NewWebSocketClientConnection ...
by bbanelli
Mon Nov 04, 2019 4:17 pm
Forum: Tricks 'n' Tips
Topic: WebSocket Server
Replies: 34
Views: 19008

Re: WebSocket Server

Hi Dadido3 (and others), I have build TLS capable version of libwebsockets but I am completely clueless how to start doing something with PB. Using regular ws (non TLS) is basically useless for anything but internal prototyping. Only needing client side, though, since server is done in Golang, but l...
by bbanelli
Thu Jun 27, 2019 3:25 pm
Forum: Coding Questions
Topic: Numbers of lines in a text file
Replies: 29
Views: 5472

Re: Numbers of lines in a text file

The optimized PB version is not fully optimized :wink: This one seems to be only negligible faster than the former... PS C:\> Measure-Command {.\wc.exe -l .\text.txt} Days : 0 Hours : 0 Minutes : 0 Seconds : 0 Milliseconds : 489 Ticks : 4898609 TotalDays : 5,66968634259259E-06 TotalHours : 0,000136...
by bbanelli
Thu Jun 27, 2019 2:34 pm
Forum: Coding Questions
Topic: Numbers of lines in a text file
Replies: 29
Views: 5472

Re: Numbers of lines in a text file

Sorry for bringing such an old thread up, but I was wondering - how come "standard" wc (compiled for Windows!) is twice as fast as most optimized version here? File tested has ~500MB and exactly 2.5M lines of unique data. EnableExplicit Define *loc Define.i count3, filesize If ReadFile(0,&...
by bbanelli
Wed Jun 12, 2019 1:17 pm
Forum: Coding Questions
Topic: You must have a server running on localhost
Replies: 2
Views: 1011

Re: You must have a server running on localhost

In a nutshell, this is not how it works. MySQL is a client-server database, therefor, you ought to have a server installed somewhere. It can be, as said, installed on localhost, meaning you will be running your client connected to a database locally. You can most certainly find installation for MySQ...
by bbanelli
Thu Jan 31, 2019 9:04 am
Forum: Coding Questions
Topic: WaitWindowEvent() in DLL?
Replies: 0
Views: 727

WaitWindowEvent() in DLL?

Greetings to all, is it valid-legal-practical to use WaitWindowEvent() within a DLL? Use case it the following - I'd like to use another programming language for "logic" and remain on PB for GUI. Nothing much, basically, MessageRequesters, Inputs, ShellNotify menus and such. But can I depl...
by bbanelli
Fri Dec 14, 2018 1:39 pm
Forum: Announcement
Topic: PureBasic Interface to OpenCV
Replies: 869
Views: 597401

Re: PureBasic Interface to OpenCV

JHPJHP is live and kicking!!! :) :) :)

Thank you so much for maintenance!

Bruno
by bbanelli
Sun Nov 11, 2018 8:49 pm
Forum: Coding Questions
Topic: Multithreaded read/write/parsing of files
Replies: 4
Views: 954

Multithreaded read/write/parsing of files

Greetings to all, I have a large file, 150GB+, that needs to be parsed. So, that probably excludes reading whole file to memory since it would require quite a machine. Would it be better to write chunks of file to memory and than let thread do the work while reading rest of the file and repeat proce...
by bbanelli
Mon Sep 24, 2018 8:54 pm
Forum: General Discussion
Topic: Compiling Questions
Replies: 5
Views: 1772

Re: Compiling Questions

vwidmer wrote:1. Is it possible to run a script (bash) automatically after "Create Executable"?
Tools -> Configure Tools.
by bbanelli
Fri Aug 24, 2018 12:44 pm
Forum: Off Topic
Topic: DDR3 1.65v @ 1.5v ?
Replies: 2
Views: 779

Re: DDR3 1.65v @ 1.5v ?

Read the manufacture name of the chip, get the datasheet and check operational voltages. The easiest way, but as always, YMMV according to the general (in)compatibility of your board with certain modules.
by bbanelli
Sun Aug 19, 2018 1:07 pm
Forum: Linux
Topic: [QT] How to use enumeration in QML?
Replies: 0
Views: 1293

[QT] How to use enumeration in QML?

http://doc.qt.io/qt-5/qml-enumeration.html For backwards compatibility, the enumeration value may also be specified as a string, e.g. "AlignRight". This form is not recommended for new code. This actually works just fine, i.e.: If OpenWindow(0, 0, 0, 322, 205, "qt placeholder", #...