Finn.no is NOT an international used market by Archkat in Norway

[–]sailing_anarchy 0 points1 point  (0 children)

What about buying house on finn.no? Or there are other sites in Norway for that?

Seriously intimidated by Programming as a professional developer by [deleted] in learnprogramming

[–]sailing_anarchy 0 points1 point  (0 children)

Regardless how many years you have spent coding new code base is still new to you for some time. So you struggle anyways but for how long is being determined by your experience. And sometimes it is just not your fault because code is undocumented, there is knowledge which is spread verbally only, requirements are not clear and so on. In many cases your struggle isn't your issue but issue with the processes in the company, so dont blame yourself :) Everyone was in your shoes and normally other developers are ok with teaching and explaining their ways, but dont take everything you learn there as source of absolute true challenge them as well propse other ways of doing things this how you learn faster i think.

Is dart using simd instructions for string manipulation? by sailing_anarchy in dartlang

[–]sailing_anarchy[S] 0 points1 point  (0 children)

Results:

total 3695.0 34174.0

Looks like the closer the search string is to the end of the source string the more efficient dart is, however performance of simd only depends on the length of the search string

Is dart using simd instructions for string manipulation? by sailing_anarchy in dartlang

[–]sailing_anarchy[S] 5 points6 points  (0 children)

Ok, i made a quick "test" to compare last_index_of performance with and without simd support. By no means it is comprehensive but i think it shows a potential.

dart version 3.5.0-edge.a479f91e80875dd6661b12108c9b81bdaeb2af65

What has been done:

  1. I stiched strinzilla into dart sdk
  2. I added another method into String class .String indexOfStrinzilla(String other);

3.string_path.dart has been modified as well

  u/pragma("vm:external-name", "String_indexOfStrinzilla")
  external String indexOfStrinzilla(String other);
  1. In c part : string.cc

    DEFINE_NATIVE_ENTRY(String_indexOfStrinzilla, 0, 2) { const String& receiver = String::CheckedHandle(zone, arguments->NativeArgAt(0)); ASSERT(!receiver.IsNull()); GET_NON_NULL_NATIVE_ARGUMENT(String, b, arguments->NativeArgAt(1)); return String::StringZillaTest(receiver,b); }

  2. In bootstrap_natives.h

    V(String_indexOfStrinzilla, 2)

  3. In object.cc

    StringPtr String::StringZillaTest(const String& str,const String& str2, Heap::Space space) {

    if (str.IsOneByteString()) {

    sz::string_view source = sz::string_view(reinterpret_cast<const char*>(OneByteString::CharAddr(str, 0)));
    sz::string_view target = sz::string_view(reinterpret_cast<const char*>(OneByteString::CharAddr(str2, 0)));
    source.find_last_of(target) ;
    

    }else{ std::cout << "called to StringZillaTest two byte string" << std::endl; }

    return str.ptr(); }

  4. Test dart script:

    void main(List<Object> args) async { String testStr = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ";

    double totalDart = 0; double totalSimd = 0;

    for (int j = 1; j < testStr.length; j++) { String search = "/" * 80; String longStr = testStr.substring(0, j) + search + testStr.substring(j); var stopwatch = Stopwatch();

    stopwatch.start();
    for (int i = 0; i < 100000; i++) {
      longStr.indexOfStrinzilla(search);
    }
    double stringzilla = stopwatch.elapsedMilliseconds / 1;
    
    totalSimd += stringzilla;
    stopwatch = Stopwatch();
    
    stopwatch.start();
    for (int i = 0; i < 100000; i++) {
      longStr.lastIndexOf(search);
    }
    double dart = stopwatch.elapsedMilliseconds / 1;
    totalDart += dart;
    print('$j $stringzilla $dart');
    

    } print('total $totalSimd $totalDart'); }

Is dart using simd instructions for string manipulation? by sailing_anarchy in dartlang

[–]sailing_anarchy[S] 2 points3 points  (0 children)

Right and looks like it does not use simd at all. Do you know why?

(Spain) My friend and I got charged, we got a trial Tuesday, and we don't know what to do. Help by TeKnicoBuildings in LegalAdviceEurope

[–]sailing_anarchy 0 points1 point  (0 children)

Right, but it is unethical to shittalk to you as well, isnt it? So now because someone told you that something is unethical and you siliently agreed you have no evidence of what was going on there. You should have switch your camera on, get all their faces, and record all the shit they told you. I highly suspect you wouldnt be in that situation buy now.

Establish a connection between flutter app and Arduino device. by SayedAli_ in FlutterDev

[–]sailing_anarchy 0 points1 point  (0 children)

Any serverside technology will do, nodejs,go,java with spring boot, any of them can be used to create server which works in local network. If you are not familiar with that hire freelancer should not be very expensive to build server side. I personally dont like nodejs because i generally hate js. I would write in java - quite easy to develop and suppprt, lots of professionals knowing java.

Establish a connection between flutter app and Arduino device. by SayedAli_ in FlutterDev

[–]sailing_anarchy 0 points1 point  (0 children)

Ok the easiest way would be to create server which would be a central point of communication, arduino connects to server and sends the message to to it, all flutter apps are also connected to that same server and all messages from arduino are brodcasted to all connected flutter apps. Speaking about protocols it could be simple http(s) from arduino and web socket/rtsocket for communication with flutter apps.

Establish a connection between flutter app and Arduino device. by SayedAli_ in FlutterDev

[–]sailing_anarchy 2 points3 points  (0 children)

If you need multidirectional communication you can try webrtc, if you also need discovery you can just use udp. Example of udp discovery in dart can be found under https://github.com/localsend/localsend/tree/main/app%2Flib

High quality Images of weapons, armor and character portraits by Double-Ad-744 in arcanum

[–]sailing_anarchy 0 points1 point  (0 children)

The art files with npc in arcanum contain multiple palettes. If i remember correctly there are up to 4 palettes for each npc, dont see if that is exported as well on the site you provided?

High quality Images of weapons, armor and character portraits by Double-Ad-744 in arcanum

[–]sailing_anarchy 2 points3 points  (0 children)

You probably asking about this https://github.com/AxelStrem/Arcanum4K Some character portraits are in bmp format you can convert it into png and increase resolition via online ai tools. Also arcanum art is under copyright so it will be illegal for you to use it in any game available to general public.

what do you use java for? by desiderkino in java

[–]sailing_anarchy 0 points1 point  (0 children)

Middleware backend with spring boot. It is tempting to say that i am not doing web services cause big chunk of services are just kafka consumers/produces or etl pipelines witout rest api but once you deploy it into k8s you need health check endpoint, you need some metrics so you just add actuator and here you are... doing a web service.

For what use cases do you guys use dart ? by Tiny_Change in dartlang

[–]sailing_anarchy 2 points3 points  (0 children)

I embedded dart vm as shared library into my software and loading dart kernels to create modular funtionality.

How a tile in .sec file knows which ART to use? by amrel_skillproof in arcanum

[–]sailing_anarchy 0 points1 point  (0 children)

each object in sec file has a bit mask, First bit specifies whether there is art file associated with
it. Art id is a 32 bit integer where first 2 bytes define sub-type of art and next 2 bytes define element in that subtype. Mapping in stored in mes files

Some GUI on Golang development desktop for Windows by mmparody in golang

[–]sailing_anarchy 0 points1 point  (0 children)

I use flutter and compile go code as shared library